| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // TODO(rmcilroy): Remove this define after this flag is turned on globally | 5 // TODO(rmcilroy): Remove this define after this flag is turned on globally |
| 6 #define V8_IMMINENT_DEPRECATION_WARNINGS | 6 #define V8_IMMINENT_DEPRECATION_WARNINGS |
| 7 | 7 |
| 8 #include "src/v8.h" | 8 #include "src/v8.h" |
| 9 | 9 |
| 10 #include "src/compiler.h" | 10 #include "src/compiler.h" |
| (...skipping 3321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3332 B(CallRuntime), U16(Runtime::kInternalSetPrototype), R(1), U8(2), // | 3332 B(CallRuntime), U16(Runtime::kInternalSetPrototype), R(1), U8(2), // |
| 3333 B(Ldar), R(1), // | 3333 B(Ldar), R(1), // |
| 3334 B(Return), // | 3334 B(Return), // |
| 3335 }, | 3335 }, |
| 3336 2, | 3336 2, |
| 3337 {InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 3337 {InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
| 3338 InstanceType::FIXED_ARRAY_TYPE}}, | 3338 InstanceType::FIXED_ARRAY_TYPE}}, |
| 3339 {"var n = 'name'; return { [n]: 'val', get a() { }, set a(b) {} };", | 3339 {"var n = 'name'; return { [n]: 'val', get a() { }, set a(b) {} };", |
| 3340 5 * kPointerSize, | 3340 5 * kPointerSize, |
| 3341 1, | 3341 1, |
| 3342 69, | 3342 67, |
| 3343 { | 3343 { |
| 3344 B(LdaConstant), U8(0), // | 3344 B(LdaConstant), U8(0), // |
| 3345 B(Star), R(0), // | 3345 B(Star), R(0), // |
| 3346 B(LdaConstant), U8(1), // | 3346 B(LdaConstant), U8(1), // |
| 3347 B(CreateObjectLiteral), U8(0), U8(simple_flags), // | 3347 B(CreateObjectLiteral), U8(0), U8(simple_flags), // |
| 3348 B(Star), R(1), // | 3348 B(Star), R(1), // |
| 3349 B(Ldar), R(0), // | 3349 B(Ldar), R(0), // |
| 3350 B(ToName), // | 3350 B(ToName), // |
| 3351 B(Star), R(2), // | 3351 B(Star), R(2), // |
| 3352 B(LdaConstant), U8(2), // | 3352 B(LdaConstant), U8(2), // |
| 3353 B(Star), R(3), // | 3353 B(Star), R(3), // |
| 3354 B(LdaZero), // | 3354 B(LdaZero), // |
| 3355 B(Star), R(4), // | 3355 B(Star), R(4), // |
| 3356 B(CallRuntime), U16(Runtime::kDefineDataPropertyUnchecked), R(1), // | 3356 B(CallRuntime), U16(Runtime::kDefineDataPropertyUnchecked), R(1), // |
| 3357 U8(4), // | 3357 U8(4), // |
| 3358 B(LdaConstant), U8(3), // | 3358 B(LdaConstant), U8(3), // |
| 3359 B(ToName), // | |
| 3360 B(Star), R(2), // | 3359 B(Star), R(2), // |
| 3361 B(LdaConstant), U8(4), // | 3360 B(LdaConstant), U8(4), // |
| 3362 B(CreateClosure), U8(0), // | 3361 B(CreateClosure), U8(0), // |
| 3363 B(Star), R(3), // | 3362 B(Star), R(3), // |
| 3364 B(LdaZero), // | 3363 B(LdaZero), // |
| 3365 B(Star), R(4), // | 3364 B(Star), R(4), // |
| 3366 B(CallRuntime), U16(Runtime::kDefineGetterPropertyUnchecked), // | 3365 B(CallRuntime), U16(Runtime::kDefineGetterPropertyUnchecked), // |
| 3367 R(1), U8(4), // | 3366 R(1), U8(4), // |
| 3368 B(LdaConstant), U8(3), // | 3367 B(LdaConstant), U8(3), // |
| 3369 B(ToName), // | |
| 3370 B(Star), R(2), // | 3368 B(Star), R(2), // |
| 3371 B(LdaConstant), U8(5), // | 3369 B(LdaConstant), U8(5), // |
| 3372 B(CreateClosure), U8(0), // | 3370 B(CreateClosure), U8(0), // |
| 3373 B(Star), R(3), // | 3371 B(Star), R(3), // |
| 3374 B(LdaZero), // | 3372 B(LdaZero), // |
| 3375 B(Star), R(4), // | 3373 B(Star), R(4), // |
| 3376 B(CallRuntime), U16(Runtime::kDefineSetterPropertyUnchecked), // | 3374 B(CallRuntime), U16(Runtime::kDefineSetterPropertyUnchecked), // |
| 3377 R(1), U8(4), // | 3375 R(1), U8(4), // |
| 3378 B(Ldar), R(1), // | 3376 B(Ldar), R(1), // |
| 3379 B(Return), // | 3377 B(Return), // |
| (...skipping 2099 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5479 for (size_t i = 0; i < arraysize(snippets); i++) { | 5477 for (size_t i = 0; i < arraysize(snippets); i++) { |
| 5480 Handle<BytecodeArray> bytecode_array = | 5478 Handle<BytecodeArray> bytecode_array = |
| 5481 helper.MakeBytecodeForFunctionBody(snippets[i].code_snippet); | 5479 helper.MakeBytecodeForFunctionBody(snippets[i].code_snippet); |
| 5482 CheckBytecodeArrayEqual(snippets[i], bytecode_array); | 5480 CheckBytecodeArrayEqual(snippets[i], bytecode_array); |
| 5483 } | 5481 } |
| 5484 } | 5482 } |
| 5485 | 5483 |
| 5486 } // namespace interpreter | 5484 } // namespace interpreter |
| 5487 } // namespace internal | 5485 } // namespace internal |
| 5488 } // namespace v8 | 5486 } // namespace v8 |
| OLD | NEW |