Index: test/cctest/interpreter/bytecode_expectations/ObjectLiterals.golden |
diff --git a/test/cctest/interpreter/bytecode_expectations/ObjectLiterals.golden b/test/cctest/interpreter/bytecode_expectations/ObjectLiterals.golden |
index 7eeac723e2a20ea5a15e87a5a47457cf58f60819..831218d573e3b092e11ff037b1453c2d2c651a91 100644 |
--- a/test/cctest/interpreter/bytecode_expectations/ObjectLiterals.golden |
+++ b/test/cctest/interpreter/bytecode_expectations/ObjectLiterals.golden |
@@ -15,10 +15,10 @@ frame size: 1 |
parameter count: 1 |
bytecode array length: 8 |
bytecodes: [ |
- B(StackCheck), |
- B(CreateObjectLiteral), U8(0), U8(0), U8(35), |
- B(Star), R(0), |
- B(Return), |
+ /* 30 E> */ B(StackCheck), |
+ /* 34 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(35), |
+ B(Star), R(0), |
+ /* 46 S> */ B(Return), |
] |
constant pool: [ |
InstanceType::FIXED_ARRAY_TYPE, |
@@ -34,10 +34,10 @@ frame size: 1 |
parameter count: 1 |
bytecode array length: 8 |
bytecodes: [ |
- B(StackCheck), |
- B(CreateObjectLiteral), U8(0), U8(0), U8(1), |
- B(Star), R(0), |
- B(Return), |
+ /* 30 E> */ B(StackCheck), |
+ /* 34 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), |
+ B(Star), R(0), |
+ /* 71 S> */ B(Return), |
] |
constant pool: [ |
InstanceType::FIXED_ARRAY_TYPE, |
@@ -53,15 +53,15 @@ frame size: 2 |
parameter count: 1 |
bytecode array length: 20 |
bytecodes: [ |
- B(StackCheck), |
- B(LdaSmi), U8(1), |
- B(Star), R(0), |
- B(CreateObjectLiteral), U8(0), U8(0), U8(1), |
- B(Star), R(1), |
- B(Ldar), R(0), |
- B(StoreICSloppy), R(1), U8(1), U8(1), |
- B(Ldar), R(1), |
- B(Return), |
+ /* 30 E> */ B(StackCheck), |
+ /* 42 S> */ B(LdaSmi), U8(1), |
+ /* 42 E> */ B(Star), R(0), |
+ /* 45 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), |
+ B(Star), R(1), |
+ /* 75 E> */ B(Ldar), R(0), |
+ B(StoreICSloppy), R(1), U8(1), U8(1), |
+ B(Ldar), R(1), |
+ /* 80 S> */ B(Return), |
] |
constant pool: [ |
InstanceType::FIXED_ARRAY_TYPE, |
@@ -78,18 +78,18 @@ frame size: 3 |
parameter count: 1 |
bytecode array length: 26 |
bytecodes: [ |
- B(StackCheck), |
- B(LdaSmi), U8(1), |
- B(Star), R(0), |
- B(CreateObjectLiteral), U8(0), U8(0), U8(1), |
- B(Star), R(1), |
- B(Ldar), R(0), |
- B(Star), R(2), |
- B(LdaSmi), U8(1), |
- B(Add), R(2), |
- B(StoreICSloppy), R(1), U8(1), U8(1), |
- B(Ldar), R(1), |
- B(Return), |
+ /* 30 E> */ B(StackCheck), |
+ /* 42 S> */ B(LdaSmi), U8(1), |
+ /* 42 E> */ B(Star), R(0), |
+ /* 45 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), |
+ B(Star), R(1), |
+ /* 59 E> */ B(Ldar), R(0), |
+ /* 67 E> */ B(Star), R(2), |
+ B(LdaSmi), U8(1), |
+ B(Add), R(2), |
+ B(StoreICSloppy), R(1), U8(1), U8(1), |
+ B(Ldar), R(1), |
+ /* 76 S> */ B(Return), |
] |
constant pool: [ |
InstanceType::FIXED_ARRAY_TYPE, |
@@ -106,13 +106,13 @@ frame size: 1 |
parameter count: 1 |
bytecode array length: 17 |
bytecodes: [ |
- B(StackCheck), |
- B(CreateObjectLiteral), U8(0), U8(0), U8(1), |
- B(Star), R(0), |
- B(CreateClosure), U8(1), U8(0), |
- B(StoreICSloppy), R(0), U8(2), U8(1), |
- B(Ldar), R(0), |
- B(Return), |
+ /* 30 E> */ B(StackCheck), |
+ /* 34 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), |
+ B(Star), R(0), |
+ B(CreateClosure), U8(1), U8(0), |
+ B(StoreICSloppy), R(0), U8(2), U8(1), |
+ B(Ldar), R(0), |
+ /* 67 S> */ B(Return), |
] |
constant pool: [ |
InstanceType::FIXED_ARRAY_TYPE, |
@@ -130,13 +130,13 @@ frame size: 1 |
parameter count: 1 |
bytecode array length: 17 |
bytecodes: [ |
- B(StackCheck), |
- B(CreateObjectLiteral), U8(0), U8(0), U8(1), |
- B(Star), R(0), |
- B(CreateClosure), U8(1), U8(0), |
- B(StoreICSloppy), R(0), U8(2), U8(1), |
- B(Ldar), R(0), |
- B(Return), |
+ /* 30 E> */ B(StackCheck), |
+ /* 34 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), |
+ B(Star), R(0), |
+ B(CreateClosure), U8(1), U8(0), |
+ B(StoreICSloppy), R(0), U8(2), U8(1), |
+ B(Ldar), R(0), |
+ /* 68 S> */ B(Return), |
] |
constant pool: [ |
InstanceType::FIXED_ARRAY_TYPE, |
@@ -154,21 +154,21 @@ frame size: 6 |
parameter count: 1 |
bytecode array length: 33 |
bytecodes: [ |
- B(StackCheck), |
- B(CreateObjectLiteral), U8(0), U8(0), U8(1), |
- B(Star), R(0), |
- B(Mov), R(0), R(1), |
- B(LdaConstant), U8(1), |
- B(Star), R(2), |
- B(CreateClosure), U8(2), U8(0), |
- B(Star), R(3), |
- B(LdaNull), |
- B(Star), R(4), |
- B(LdaZero), |
- B(Star), R(5), |
- B(CallRuntime), U16(Runtime::kDefineAccessorPropertyUnchecked), R(1), U8(5), |
- B(Ldar), R(0), |
- B(Return), |
+ /* 30 E> */ B(StackCheck), |
+ /* 34 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), |
+ B(Star), R(0), |
+ B(Mov), R(0), R(1), |
+ B(LdaConstant), U8(1), |
+ B(Star), R(2), |
+ B(CreateClosure), U8(2), U8(0), |
+ B(Star), R(3), |
+ B(LdaNull), |
+ B(Star), R(4), |
+ B(LdaZero), |
+ B(Star), R(5), |
+ B(CallRuntime), U16(Runtime::kDefineAccessorPropertyUnchecked), R(1), U8(5), |
+ B(Ldar), R(0), |
+ /* 68 S> */ B(Return), |
] |
constant pool: [ |
InstanceType::FIXED_ARRAY_TYPE, |
@@ -186,21 +186,21 @@ frame size: 6 |
parameter count: 1 |
bytecode array length: 35 |
bytecodes: [ |
- B(StackCheck), |
- B(CreateObjectLiteral), U8(0), U8(0), U8(1), |
- B(Star), R(0), |
- B(Mov), R(0), R(1), |
- B(LdaConstant), U8(1), |
- B(Star), R(2), |
- B(CreateClosure), U8(2), U8(0), |
- B(Star), R(3), |
- B(CreateClosure), U8(3), U8(0), |
- B(Star), R(4), |
- B(LdaZero), |
- B(Star), R(5), |
- B(CallRuntime), U16(Runtime::kDefineAccessorPropertyUnchecked), R(1), U8(5), |
- B(Ldar), R(0), |
- B(Return), |
+ /* 30 E> */ B(StackCheck), |
+ /* 34 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), |
+ B(Star), R(0), |
+ B(Mov), R(0), R(1), |
+ B(LdaConstant), U8(1), |
+ B(Star), R(2), |
+ B(CreateClosure), U8(2), U8(0), |
+ B(Star), R(3), |
+ B(CreateClosure), U8(3), U8(0), |
+ B(Star), R(4), |
+ B(LdaZero), |
+ B(Star), R(5), |
+ B(CallRuntime), U16(Runtime::kDefineAccessorPropertyUnchecked), R(1), U8(5), |
+ B(Ldar), R(0), |
+ /* 102 S> */ B(Return), |
] |
constant pool: [ |
InstanceType::FIXED_ARRAY_TYPE, |
@@ -219,21 +219,21 @@ frame size: 6 |
parameter count: 1 |
bytecode array length: 33 |
bytecodes: [ |
- B(StackCheck), |
- B(CreateObjectLiteral), U8(0), U8(0), U8(1), |
- B(Star), R(0), |
- B(Mov), R(0), R(1), |
- B(LdaConstant), U8(1), |
- B(Star), R(2), |
- B(LdaNull), |
- B(Star), R(3), |
- B(CreateClosure), U8(2), U8(0), |
- B(Star), R(4), |
- B(LdaZero), |
- B(Star), R(5), |
- B(CallRuntime), U16(Runtime::kDefineAccessorPropertyUnchecked), R(1), U8(5), |
- B(Ldar), R(0), |
- B(Return), |
+ /* 30 E> */ B(StackCheck), |
+ /* 34 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), |
+ B(Star), R(0), |
+ B(Mov), R(0), R(1), |
+ B(LdaConstant), U8(1), |
+ B(Star), R(2), |
+ B(LdaNull), |
+ B(Star), R(3), |
+ B(CreateClosure), U8(2), U8(0), |
+ B(Star), R(4), |
+ B(LdaZero), |
+ B(Star), R(5), |
+ B(CallRuntime), U16(Runtime::kDefineAccessorPropertyUnchecked), R(1), U8(5), |
+ B(Ldar), R(0), |
+ /* 74 S> */ B(Return), |
] |
constant pool: [ |
InstanceType::FIXED_ARRAY_TYPE, |
@@ -251,21 +251,21 @@ frame size: 6 |
parameter count: 1 |
bytecode array length: 33 |
bytecodes: [ |
- B(StackCheck), |
- B(LdaSmi), U8(1), |
- B(Star), R(0), |
- B(CreateObjectLiteral), U8(0), U8(0), U8(1), |
- B(Star), R(1), |
- B(Mov), R(1), R(2), |
- B(LdaSmi), U8(1), |
- B(Star), R(3), |
- B(Ldar), R(0), |
- B(Star), R(4), |
- B(LdaZero), |
- B(Star), R(5), |
- B(CallRuntime), U16(Runtime::kSetProperty), R(2), U8(4), |
- B(Ldar), R(1), |
- B(Return), |
+ /* 30 E> */ B(StackCheck), |
+ /* 42 S> */ B(LdaSmi), U8(1), |
+ /* 42 E> */ B(Star), R(0), |
+ /* 45 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), |
+ B(Star), R(1), |
+ B(Mov), R(1), R(2), |
+ B(LdaSmi), U8(1), |
+ B(Star), R(3), |
+ /* 57 E> */ B(Ldar), R(0), |
+ B(Star), R(4), |
+ B(LdaZero), |
+ B(Star), R(5), |
+ B(CallRuntime), U16(Runtime::kSetProperty), R(2), U8(4), |
+ B(Ldar), R(1), |
+ /* 62 S> */ B(Return), |
] |
constant pool: [ |
InstanceType::FIXED_ARRAY_TYPE, |
@@ -281,15 +281,15 @@ frame size: 3 |
parameter count: 1 |
bytecode array length: 21 |
bytecodes: [ |
- B(StackCheck), |
- B(CreateObjectLiteral), U8(0), U8(0), U8(35), |
- B(Star), R(0), |
- B(Mov), R(0), R(1), |
- B(LdaNull), |
- B(Star), R(2), |
- B(CallRuntime), U16(Runtime::kInternalSetPrototype), R(1), U8(2), |
- B(Ldar), R(0), |
- B(Return), |
+ /* 30 E> */ B(StackCheck), |
+ /* 34 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(35), |
+ B(Star), R(0), |
+ B(Mov), R(0), R(1), |
+ B(LdaNull), |
+ B(Star), R(2), |
+ B(CallRuntime), U16(Runtime::kInternalSetPrototype), R(1), U8(2), |
+ B(Ldar), R(0), |
+ /* 62 S> */ B(Return), |
] |
constant pool: [ |
InstanceType::FIXED_ARRAY_TYPE, |
@@ -305,24 +305,24 @@ frame size: 7 |
parameter count: 1 |
bytecode array length: 37 |
bytecodes: [ |
- B(StackCheck), |
- B(LdaConstant), U8(0), |
- B(Star), R(0), |
- B(CreateObjectLiteral), U8(1), U8(0), U8(35), |
- B(Star), R(1), |
- B(Mov), R(1), R(2), |
- B(Ldar), R(0), |
- B(ToName), |
- B(Star), R(3), |
- B(LdaSmi), U8(1), |
- B(Star), R(4), |
- B(LdaZero), |
- B(Star), R(5), |
- B(LdaZero), |
- B(Star), R(6), |
- B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(2), U8(5), |
- B(Ldar), R(1), |
- B(Return), |
+ /* 30 E> */ B(StackCheck), |
+ /* 42 S> */ B(LdaConstant), U8(0), |
+ /* 42 E> */ B(Star), R(0), |
+ /* 50 S> */ B(CreateObjectLiteral), U8(1), U8(0), U8(35), |
+ B(Star), R(1), |
+ B(Mov), R(1), R(2), |
+ /* 60 E> */ B(Ldar), R(0), |
+ B(ToName), |
+ B(Star), R(3), |
+ B(LdaSmi), U8(1), |
+ B(Star), R(4), |
+ B(LdaZero), |
+ B(Star), R(5), |
+ B(LdaZero), |
+ B(Star), R(6), |
+ B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(2), U8(5), |
+ B(Ldar), R(1), |
+ /* 69 S> */ B(Return), |
] |
constant pool: [ |
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
@@ -339,26 +339,26 @@ frame size: 7 |
parameter count: 1 |
bytecode array length: 43 |
bytecodes: [ |
- B(StackCheck), |
- B(LdaConstant), U8(0), |
- B(Star), R(0), |
- B(CreateObjectLiteral), U8(1), U8(0), U8(1), |
- B(Star), R(1), |
- B(Ldar), R(0), |
- B(StoreICSloppy), R(1), U8(2), U8(1), |
- B(Mov), R(1), R(2), |
- B(Ldar), R(0), |
- B(ToName), |
- B(Star), R(3), |
- B(LdaSmi), U8(1), |
- B(Star), R(4), |
- B(LdaZero), |
- B(Star), R(5), |
- B(LdaZero), |
- B(Star), R(6), |
- B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(2), U8(5), |
- B(Ldar), R(1), |
- B(Return), |
+ /* 30 E> */ B(StackCheck), |
+ /* 42 S> */ B(LdaConstant), U8(0), |
+ /* 42 E> */ B(Star), R(0), |
+ /* 50 S> */ B(CreateObjectLiteral), U8(1), U8(0), U8(1), |
+ B(Star), R(1), |
+ /* 64 E> */ B(Ldar), R(0), |
+ B(StoreICSloppy), R(1), U8(2), U8(1), |
+ B(Mov), R(1), R(2), |
+ /* 68 E> */ B(Ldar), R(0), |
+ B(ToName), |
+ B(Star), R(3), |
+ B(LdaSmi), U8(1), |
+ B(Star), R(4), |
+ B(LdaZero), |
+ B(Star), R(5), |
+ B(LdaZero), |
+ B(Star), R(6), |
+ B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(2), U8(5), |
+ B(Ldar), R(1), |
+ /* 77 S> */ B(Return), |
] |
constant pool: [ |
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
@@ -376,29 +376,29 @@ frame size: 7 |
parameter count: 1 |
bytecode array length: 53 |
bytecodes: [ |
- B(StackCheck), |
- B(LdaConstant), U8(0), |
- B(Star), R(0), |
- B(CreateObjectLiteral), U8(1), U8(1), U8(35), |
- B(Star), R(1), |
- B(Mov), R(1), R(2), |
- B(Ldar), R(0), |
- B(ToName), |
- B(Star), R(3), |
- B(LdaSmi), U8(1), |
- B(Star), R(4), |
- B(LdaZero), |
- B(Star), R(5), |
- B(LdaZero), |
- B(Star), R(6), |
- B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(2), U8(5), |
- B(Mov), R(1), R(2), |
- B(CreateObjectLiteral), U8(1), U8(0), U8(35), |
- B(Star), R(4), |
- B(Star), R(3), |
- B(CallRuntime), U16(Runtime::kInternalSetPrototype), R(2), U8(2), |
- B(Ldar), R(1), |
- B(Return), |
+ /* 30 E> */ B(StackCheck), |
+ /* 42 S> */ B(LdaConstant), U8(0), |
+ /* 42 E> */ B(Star), R(0), |
+ /* 50 S> */ B(CreateObjectLiteral), U8(1), U8(1), U8(35), |
+ B(Star), R(1), |
+ B(Mov), R(1), R(2), |
+ /* 60 E> */ B(Ldar), R(0), |
+ B(ToName), |
+ B(Star), R(3), |
+ B(LdaSmi), U8(1), |
+ B(Star), R(4), |
+ B(LdaZero), |
+ B(Star), R(5), |
+ B(LdaZero), |
+ B(Star), R(6), |
+ B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(2), U8(5), |
+ B(Mov), R(1), R(2), |
+ B(CreateObjectLiteral), U8(1), U8(0), U8(35), |
+ B(Star), R(4), |
+ B(Star), R(3), |
+ B(CallRuntime), U16(Runtime::kInternalSetPrototype), R(2), U8(2), |
+ B(Ldar), R(1), |
+ /* 84 S> */ B(Return), |
] |
constant pool: [ |
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
@@ -415,40 +415,40 @@ frame size: 7 |
parameter count: 1 |
bytecode array length: 77 |
bytecodes: [ |
- B(StackCheck), |
- B(LdaConstant), U8(0), |
- B(Star), R(0), |
- B(CreateObjectLiteral), U8(1), U8(0), U8(35), |
- B(Star), R(1), |
- B(Mov), R(1), R(2), |
- B(Ldar), R(0), |
- B(ToName), |
- B(Star), R(3), |
- B(LdaConstant), U8(2), |
- B(Star), R(4), |
- B(LdaZero), |
- B(Star), R(5), |
- B(LdaZero), |
- B(Star), R(6), |
- B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(2), U8(5), |
- B(Mov), R(1), R(2), |
- B(LdaConstant), U8(3), |
- B(Star), R(3), |
- B(CreateClosure), U8(4), U8(0), |
- B(Star), R(4), |
- B(LdaZero), |
- B(Star), R(5), |
- B(CallRuntime), U16(Runtime::kDefineGetterPropertyUnchecked), R(2), U8(4), |
- B(Mov), R(1), R(2), |
- B(LdaConstant), U8(3), |
- B(Star), R(3), |
- B(CreateClosure), U8(5), U8(0), |
- B(Star), R(4), |
- B(LdaZero), |
- B(Star), R(5), |
- B(CallRuntime), U16(Runtime::kDefineSetterPropertyUnchecked), R(2), U8(4), |
- B(Ldar), R(1), |
- B(Return), |
+ /* 30 E> */ B(StackCheck), |
+ /* 42 S> */ B(LdaConstant), U8(0), |
+ /* 42 E> */ B(Star), R(0), |
+ /* 50 S> */ B(CreateObjectLiteral), U8(1), U8(0), U8(35), |
+ B(Star), R(1), |
+ B(Mov), R(1), R(2), |
+ /* 60 E> */ B(Ldar), R(0), |
+ B(ToName), |
+ B(Star), R(3), |
+ B(LdaConstant), U8(2), |
+ B(Star), R(4), |
+ B(LdaZero), |
+ B(Star), R(5), |
+ B(LdaZero), |
+ B(Star), R(6), |
+ B(CallRuntime), U16(Runtime::kDefineDataPropertyInLiteral), R(2), U8(5), |
+ B(Mov), R(1), R(2), |
+ B(LdaConstant), U8(3), |
+ B(Star), R(3), |
+ B(CreateClosure), U8(4), U8(0), |
+ B(Star), R(4), |
+ B(LdaZero), |
+ B(Star), R(5), |
+ B(CallRuntime), U16(Runtime::kDefineGetterPropertyUnchecked), R(2), U8(4), |
+ B(Mov), R(1), R(2), |
+ B(LdaConstant), U8(3), |
+ B(Star), R(3), |
+ B(CreateClosure), U8(5), U8(0), |
+ B(Star), R(4), |
+ B(LdaZero), |
+ B(Star), R(5), |
+ B(CallRuntime), U16(Runtime::kDefineSetterPropertyUnchecked), R(2), U8(4), |
+ B(Ldar), R(1), |
+ /* 99 S> */ B(Return), |
] |
constant pool: [ |
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |