Permalink
Browse files

Version 3.1.2.

Added better security checks when accessing properties via Object.getOwnPropertyDescriptor.

Fixed bug in Object.defineProperty and related access bugs (issues 992, 1083 and 1092).

Added LICENSE.v8, LICENSE.strongtalk and LICENSE.valgrind to ease copyright notice generation for embedders.


git-svn-id: https://v8.googlecode.com/svn/trunk@6662 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
  • Loading branch information...
ricow@chromium.org
ricow@chromium.org committed Feb 7, 2011
1 parent 2f41c9a commit 71c3858f529970b63a5045f203e6ee1ac9db3b55
Showing with 5,877 additions and 1,765 deletions.
  1. +1 −0 .gitignore
  2. +2 −1 AUTHORS
  3. +12 −0 ChangeLog
  4. +5 −5 src/third_party/strongtalk/LICENSE → LICENSE.strongtalk
  5. +26 −0 LICENSE.v8
  6. +45 −0 LICENSE.valgrind
  7. +8 −8 src/arm/assembler-arm.cc
  8. +7 −11 src/arm/assembler-arm.h
  9. +355 −91 src/arm/code-stubs-arm.cc
  10. +39 −0 src/arm/code-stubs-arm.h
  11. +9 −3 src/arm/codegen-arm.cc
  12. +1 −0 src/arm/codegen-arm.h
  13. +17 −7 src/arm/constants-arm.h
  14. +1 −1 src/arm/deoptimizer-arm.cc
  15. +8 −2 src/arm/full-codegen-arm.cc
  16. +12 −13 src/arm/ic-arm.cc
  17. +93 −24 src/arm/lithium-arm.cc
  18. +109 −134 src/arm/lithium-arm.h
  19. +166 −30 src/arm/lithium-codegen-arm.cc
  20. +5 −0 src/arm/lithium-codegen-arm.h
  21. +141 −17 src/arm/macro-assembler-arm.cc
  22. +31 −5 src/arm/macro-assembler-arm.h
  23. +142 −71 src/arm/simulator-arm.cc
  24. +5 −3 src/arm/simulator-arm.h
  25. +147 −83 src/arm/stub-cache-arm.cc
  26. +5 −3 src/array.js
  27. +7 −5 src/assembler.cc
  28. +27 −8 src/assembler.h
  29. +2 −1 src/code-stubs.h
  30. +4 −0 src/codegen-inl.h
  31. +13 −8 src/compilation-cache.cc
  32. +2 −1 src/compilation-cache.h
  33. +12 −2 src/compiler.cc
  34. +12 −1 src/compiler.h
  35. +32 −46 src/conversions.cc
  36. +2 −2 src/deoptimizer.cc
  37. +2 −2 src/disassembler.cc
  38. +5 −1 src/extensions/gc-extension.cc
  39. +1 −1 src/full-codegen.cc
  40. +3 −0 src/full-codegen.h
  41. +1 −1 src/handles.cc
  42. +2 −1 src/heap-profiler.cc
  43. +11 −0 src/heap.cc
  44. +9 −2 src/heap.h
  45. +9 −1 src/hydrogen-instructions.cc
  46. +85 −29 src/hydrogen-instructions.h
  47. +60 −32 src/hydrogen.cc
  48. +2 −0 src/hydrogen.h
  49. +48 −0 src/ia32/code-stubs-ia32.cc
  50. +19 −0 src/ia32/code-stubs-ia32.h
  51. +8 −2 src/ia32/codegen-ia32.cc
  52. +1 −0 src/ia32/codegen-ia32.h
  53. +48 −67 src/ia32/deoptimizer-ia32.cc
  54. +90 −63 src/ia32/full-codegen-ia32.cc
  55. +9 −13 src/ia32/ic-ia32.cc
  56. +37 −8 src/ia32/lithium-codegen-ia32.cc
  57. +80 −18 src/ia32/lithium-ia32.cc
  58. +107 −131 src/ia32/lithium-ia32.h
  59. +15 −5 src/ia32/macro-assembler-ia32.cc
  60. +11 −0 src/ia32/macro-assembler-ia32.h
  61. +31 −0 src/ia32/stub-cache-ia32.cc
  62. +30 −18 src/ic.cc
  63. +140 −0 src/lithium-allocator-inl.h
  64. +55 −116 src/lithium-allocator.cc
  65. +50 −68 src/lithium-allocator.h
  66. +76 −0 src/lithium.h
  67. +3 −6 src/messages.js
  68. +20 −8 src/objects-inl.h
  69. +42 −13 src/objects.cc
  70. +15 −8 src/objects.h
  71. +97 −29 src/parser.cc
  72. +7 −1 src/parser.h
  73. +21 −10 src/preparser.cc
  74. +2 −0 src/preparser.h
  75. +4 −21 src/prettyprinter.cc
  76. +164 −28 src/runtime.cc
  77. +2 −2 src/runtime.h
  78. +21 −1 src/safepoint-table.cc
  79. +8 −3 src/safepoint-table.h
  80. +55 −6 src/scanner-base.cc
  81. +8 −1 src/scanner-base.h
  82. +18 −1 src/scanner.cc
  83. +9 −0 src/scanner.h
  84. +1 −2 src/scopes.cc
  85. +33 −0 src/stub-cache.cc
  86. +4 −0 src/stub-cache.h
  87. +0 −18 src/third_party/strongtalk/README.chromium
  88. +5 −32 src/token.h
  89. +1 −1 src/top.h
  90. +3 −3 src/type-info.h
  91. +1 −2 src/uri.js
  92. +6 −0 src/v8globals.h
  93. +96 −50 src/v8natives.js
  94. +1 −1 src/version.cc
  95. +27 −0 src/x64/assembler-x64.cc
  96. +29 −3 src/x64/assembler-x64.h
  97. +433 −64 src/x64/code-stubs-x64.cc
  98. +24 −0 src/x64/code-stubs-x64.h
  99. +8 −2 src/x64/codegen-x64.cc
  100. +1 −0 src/x64/codegen-x64.h
  101. +117 −30 src/x64/deoptimizer-x64.cc
  102. +2 −0 src/x64/disasm-x64.cc
  103. +2 −3 src/x64/frames-x64.h
  104. +19 −22 src/x64/full-codegen-x64.cc
  105. +11 −15 src/x64/ic-x64.cc
  106. +366 −43 src/x64/lithium-codegen-x64.cc
  107. +176 −61 src/x64/lithium-x64.cc
  108. +50 −15 src/x64/lithium-x64.h
  109. +3 −1 src/x64/macro-assembler-x64.cc
  110. +28 −1 src/x64/macro-assembler-x64.h
  111. +29 −0 src/x64/stub-cache-x64.cc
  112. +1 −1 test/cctest/cctest.status
  113. +317 −12 test/cctest/test-api.cc
  114. +167 −49 test/cctest/test-assembler-arm.cc
  115. +2 −2 test/cctest/test-bignum-dtoa.cc
  116. +1 −1 test/cctest/test-dtoa.cc
  117. +1 −1 test/cctest/test-fast-dtoa.cc
  118. +213 −7 test/es5conform/es5conform.status
  119. +16 −0 test/mjsunit/get-own-property-descriptor.js
  120. +4 −0 test/mjsunit/mjsunit.status
  121. +135 −2 test/mjsunit/object-define-property.js
  122. +38 −0 test/mjsunit/regress/regress-1083.js
  123. +35 −0 test/mjsunit/regress/regress-1092.js
  124. +46 −0 test/mjsunit/regress/regress-1099.js
  125. +2 −0 test/mjsunit/regress/regress-900966.js
  126. +43 −0 test/mjsunit/regress/regress-992.js
  127. +49 −0 test/mjsunit/regress/regress-deopt-gc.js
  128. +82 −0 test/mjsunit/strict-mode-eval.js
  129. +65 −0 test/mjsunit/strict-mode.js
  130. +5 −10 test/mozilla/mozilla.status
  131. +1 −0 tools/gyp/v8.gyp
  132. +20 −0 tools/visual_studio/v8_base.vcproj
  133. +4 −0 tools/visual_studio/v8_base_arm.vcproj
  134. +108 −8 tools/visual_studio/v8_base_x64.vcproj
View
@@ -20,6 +20,7 @@ d8_g
shell
shell_g
/obj/
+/test/sputnik/sputniktests/
/tools/oom_dump/oom_dump
/tools/oom_dump/oom_dump.o
/tools/visual_studio/Debug
View
@@ -26,6 +26,7 @@ Kun Zhang <zhangk@codeaurora.org>
Matt Hanselman <mjhanselman@gmail.com>
Martyn Capewell <martyn.capewell@arm.com>
Michael Smith <mike@w3.org>
+Mike Gilbert <floppymaster@gmail.com>
Paolo Giarrusso <p.giarrusso@gmail.com>
Patrick Gansterer <paroga@paroga.com>
Rafal Krypa <rafal@krypa.net>
@@ -35,4 +36,4 @@ Ryan Dahl <coldredlemur@gmail.com>
Sanjoy Das <sanjoy@playingwithpointers.com>
Subrato K De <subratokde@codeaurora.org>
Vlad Burlik <vladbph@gmail.com>
-Mike Gilbert <floppymaster@gmail.com>
+Zaheer Ahmad <zahmad@codeaurora.org>
View
@@ -1,3 +1,15 @@
+2011-02-07: Version 3.1.2
+
+ Added better security checks when accessing properties via
+ Object.getOwnPropertyDescriptor.
+
+ Fixed bug in Object.defineProperty and related access bugs (issues
+ 992, 1083 and 1092).
+
+ Added LICENSE.v8, LICENSE.strongtalk and LICENSE.valgrind to ease
+ copyright notice generation for embedders.
+
+
2011-02-02: Version 3.1.1
Perform security checks before fetching the value in
@@ -6,15 +6,15 @@ modification, are permitted provided that the following conditions are
met:
- Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
+this list of conditions and the following disclaimer.
- Redistribution in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in the
- documentation and/or other materials provided with the distribution.
+notice, this list of conditions and the following disclaimer in the
+documentation and/or other materials provided with the distribution.
- Neither the name of Sun Microsystems or the names of contributors may
- be used to endorse or promote products derived from this software without
- specific prior written permission.
+be used to endorse or promote products derived from this software without
+specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
View
@@ -0,0 +1,26 @@
+Copyright 2006-2011, the V8 project authors. All rights reserved.
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are
+met:
+
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above
+ copyright notice, this list of conditions and the following
+ disclaimer in the documentation and/or other materials provided
+ with the distribution.
+ * Neither the name of Google Inc. nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
View
@@ -0,0 +1,45 @@
+----------------------------------------------------------------
+
+Notice that the following BSD-style license applies to this one
+file (valgrind.h) only. The rest of Valgrind is licensed under the
+terms of the GNU General Public License, version 2, unless
+otherwise indicated. See the COPYING file in the source
+distribution for details.
+
+----------------------------------------------------------------
+
+This file is part of Valgrind, a dynamic binary instrumentation
+framework.
+
+Copyright (C) 2000-2007 Julian Seward. All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+2. The origin of this software must not be misrepresented; you must
+ not claim that you wrote the original software. If you use this
+ software in a product, an acknowledgment in the product
+ documentation would be appreciated but is not required.
+
+3. Altered source versions must be plainly marked as such, and must
+ not be misrepresented as being the original software.
+
+4. The name of the author may not be used to endorse or promote
+ products derived from this software without specific prior written
+ permission.
+
+THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
+OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
+DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
View
@@ -2124,7 +2124,7 @@ static Instr EncodeVCVT(const VFPType dst_type,
const int dst_code,
const VFPType src_type,
const int src_code,
- Assembler::ConversionMode mode,
+ VFPConversionMode mode,
const Condition cond) {
ASSERT(src_type != dst_type);
int D, Vd, M, Vm;
@@ -2167,7 +2167,7 @@ static Instr EncodeVCVT(const VFPType dst_type,
void Assembler::vcvt_f64_s32(const DwVfpRegister dst,
const SwVfpRegister src,
- ConversionMode mode,
+ VFPConversionMode mode,
const Condition cond) {
ASSERT(CpuFeatures::IsEnabled(VFP3));
emit(EncodeVCVT(F64, dst.code(), S32, src.code(), mode, cond));
@@ -2176,7 +2176,7 @@ void Assembler::vcvt_f64_s32(const DwVfpRegister dst,
void Assembler::vcvt_f32_s32(const SwVfpRegister dst,
const SwVfpRegister src,
- ConversionMode mode,
+ VFPConversionMode mode,
const Condition cond) {
ASSERT(CpuFeatures::IsEnabled(VFP3));
emit(EncodeVCVT(F32, dst.code(), S32, src.code(), mode, cond));
@@ -2185,7 +2185,7 @@ void Assembler::vcvt_f32_s32(const SwVfpRegister dst,
void Assembler::vcvt_f64_u32(const DwVfpRegister dst,
const SwVfpRegister src,
- ConversionMode mode,
+ VFPConversionMode mode,
const Condition cond) {
ASSERT(CpuFeatures::IsEnabled(VFP3));
emit(EncodeVCVT(F64, dst.code(), U32, src.code(), mode, cond));
@@ -2194,7 +2194,7 @@ void Assembler::vcvt_f64_u32(const DwVfpRegister dst,
void Assembler::vcvt_s32_f64(const SwVfpRegister dst,
const DwVfpRegister src,
- ConversionMode mode,
+ VFPConversionMode mode,
const Condition cond) {
ASSERT(CpuFeatures::IsEnabled(VFP3));
emit(EncodeVCVT(S32, dst.code(), F64, src.code(), mode, cond));
@@ -2203,7 +2203,7 @@ void Assembler::vcvt_s32_f64(const SwVfpRegister dst,
void Assembler::vcvt_u32_f64(const SwVfpRegister dst,
const DwVfpRegister src,
- ConversionMode mode,
+ VFPConversionMode mode,
const Condition cond) {
ASSERT(CpuFeatures::IsEnabled(VFP3));
emit(EncodeVCVT(U32, dst.code(), F64, src.code(), mode, cond));
@@ -2212,7 +2212,7 @@ void Assembler::vcvt_u32_f64(const SwVfpRegister dst,
void Assembler::vcvt_f64_f32(const DwVfpRegister dst,
const SwVfpRegister src,
- ConversionMode mode,
+ VFPConversionMode mode,
const Condition cond) {
ASSERT(CpuFeatures::IsEnabled(VFP3));
emit(EncodeVCVT(F64, dst.code(), F32, src.code(), mode, cond));
@@ -2221,7 +2221,7 @@ void Assembler::vcvt_f64_f32(const DwVfpRegister dst,
void Assembler::vcvt_f32_f64(const SwVfpRegister dst,
const DwVfpRegister src,
- ConversionMode mode,
+ VFPConversionMode mode,
const Condition cond) {
ASSERT(CpuFeatures::IsEnabled(VFP3));
emit(EncodeVCVT(F32, dst.code(), F64, src.code(), mode, cond));
View
@@ -942,37 +942,33 @@ class Assembler : public Malloced {
void vmov(const Register dst,
const SwVfpRegister src,
const Condition cond = al);
- enum ConversionMode {
- FPSCRRounding = 0,
- RoundToZero = 1
- };
void vcvt_f64_s32(const DwVfpRegister dst,
const SwVfpRegister src,
- ConversionMode mode = RoundToZero,
+ VFPConversionMode mode = kDefaultRoundToZero,
const Condition cond = al);
void vcvt_f32_s32(const SwVfpRegister dst,
const SwVfpRegister src,
- ConversionMode mode = RoundToZero,
+ VFPConversionMode mode = kDefaultRoundToZero,
const Condition cond = al);
void vcvt_f64_u32(const DwVfpRegister dst,
const SwVfpRegister src,
- ConversionMode mode = RoundToZero,
+ VFPConversionMode mode = kDefaultRoundToZero,
const Condition cond = al);
void vcvt_s32_f64(const SwVfpRegister dst,
const DwVfpRegister src,
- ConversionMode mode = RoundToZero,
+ VFPConversionMode mode = kDefaultRoundToZero,
const Condition cond = al);
void vcvt_u32_f64(const SwVfpRegister dst,
const DwVfpRegister src,
- ConversionMode mode = RoundToZero,
+ VFPConversionMode mode = kDefaultRoundToZero,
const Condition cond = al);
void vcvt_f64_f32(const DwVfpRegister dst,
const SwVfpRegister src,
- ConversionMode mode = RoundToZero,
+ VFPConversionMode mode = kDefaultRoundToZero,
const Condition cond = al);
void vcvt_f32_f64(const SwVfpRegister dst,
const DwVfpRegister src,
- ConversionMode mode = RoundToZero,
+ VFPConversionMode mode = kDefaultRoundToZero,
const Condition cond = al);
void vabs(const DwVfpRegister dst,
Oops, something went wrong.

0 comments on commit 71c3858

Please sign in to comment.