Index: test/cctest/interpreter/bytecode_expectations/ConstVariable.golden |
diff --git a/test/cctest/interpreter/bytecode_expectations/ConstVariable.golden b/test/cctest/interpreter/bytecode_expectations/ConstVariable.golden |
index 6ba2ad4d9467368018f8508ef9f6a5c297b2f387..c7b767ad01766df44cac8c677a290702133b5d45 100644 |
--- a/test/cctest/interpreter/bytecode_expectations/ConstVariable.golden |
+++ b/test/cctest/interpreter/bytecode_expectations/ConstVariable.golden |
@@ -9,19 +9,22 @@ wrap: yes |
snippet: " |
const x = 10; |
" |
-frame size: 1 |
+frame size: 2 |
parameter count: 1 |
-bytecode array length: 10 |
+bytecode array length: 14 |
bytecodes: [ |
B(LdaTheHole), |
B(Star), R(0), |
/* 30 E> */ B(StackCheck), |
- /* 44 S> */ B(LdaSmi), I8(10), |
+ /* 44 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(1), |
+ B(LdaSmi), I8(10), |
B(Star), R(0), |
B(LdaUndefined), |
/* 48 S> */ B(Return), |
] |
constant pool: [ |
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], |
] |
handlers: [ |
] |
@@ -30,19 +33,22 @@ handlers: [ |
snippet: " |
const x = 10; return x; |
" |
-frame size: 1 |
+frame size: 2 |
parameter count: 1 |
-bytecode array length: 10 |
+bytecode array length: 14 |
bytecodes: [ |
B(LdaTheHole), |
B(Star), R(0), |
/* 30 E> */ B(StackCheck), |
- /* 44 S> */ B(LdaSmi), I8(10), |
+ /* 44 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(1), |
+ B(LdaSmi), I8(10), |
B(Star), R(0), |
/* 48 S> */ B(Nop), |
/* 58 S> */ B(Return), |
] |
constant pool: [ |
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], |
] |
handlers: [ |
] |
@@ -51,20 +57,24 @@ handlers: [ |
snippet: " |
const x = ( x = 20); |
" |
-frame size: 3 |
+frame size: 5 |
parameter count: 1 |
-bytecode array length: 30 |
+bytecode array length: 38 |
bytecodes: [ |
B(LdaTheHole), |
B(Star), R(0), |
/* 30 E> */ B(StackCheck), |
- /* 48 S> */ B(LdaSmi), I8(20), |
+ /* 48 S> */ B(LdaConstant), U8(0), |
B(Star), R(1), |
+ B(LdaConstant), U8(0), |
+ B(Star), R(2), |
+ B(LdaSmi), I8(20), |
+ B(Star), R(3), |
B(Ldar), R(0), |
B(JumpIfNotHole), U8(11), |
B(LdaConstant), U8(0), |
- B(Star), R(2), |
- /* 48 E> */ B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), |
+ B(Star), R(4), |
+ /* 48 E> */ B(CallRuntime), U16(Runtime::kThrowReferenceError), R(4), U8(1), |
B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0), |
B(Star), R(0), |
B(LdaUndefined), |
@@ -80,21 +90,25 @@ handlers: [ |
snippet: " |
const x = 10; x = 20; |
" |
-frame size: 1 |
+frame size: 2 |
parameter count: 1 |
-bytecode array length: 17 |
+bytecode array length: 23 |
bytecodes: [ |
B(LdaTheHole), |
B(Star), R(0), |
/* 30 E> */ B(StackCheck), |
- /* 44 S> */ B(LdaSmi), I8(10), |
+ /* 44 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(1), |
+ B(LdaSmi), I8(10), |
B(Star), R(0), |
- /* 48 S> */ B(LdaSmi), I8(20), |
+ /* 48 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(1), |
/* 50 E> */ B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0), |
B(LdaUndefined), |
/* 56 S> */ B(Return), |
] |
constant pool: [ |
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], |
] |
handlers: [ |
] |