Index: test/cctest/interpreter/bytecode_expectations/DoExpression.golden |
diff --git a/test/cctest/interpreter/bytecode_expectations/DoExpression.golden b/test/cctest/interpreter/bytecode_expectations/DoExpression.golden |
index 412c5ccbe60ecd635bce95abf006ed3c0c5e0695..4193db0c48acf1d20adfdae1c34a6648e3696287 100644 |
--- a/test/cctest/interpreter/bytecode_expectations/DoExpression.golden |
+++ b/test/cctest/interpreter/bytecode_expectations/DoExpression.golden |
@@ -10,16 +10,19 @@ do expressions: yes |
snippet: " |
var a = do { }; return a; |
" |
-frame size: 2 |
+frame size: 3 |
parameter count: 1 |
-bytecode array length: 7 |
+bytecode array length: 11 |
bytecodes: [ |
/* 30 E> */ B(StackCheck), |
- /* 42 S> */ B(Mov), R(0), R(1), |
+ /* 42 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(2), |
+ B(Mov), R(0), R(1), |
/* 50 S> */ B(Ldar), R(1), |
/* 60 S> */ B(Return), |
] |
constant pool: [ |
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
] |
handlers: [ |
] |
@@ -28,20 +31,29 @@ handlers: [ |
snippet: " |
var a = do { var x = 100; }; return a; |
" |
-frame size: 3 |
+frame size: 5 |
parameter count: 1 |
-bytecode array length: 12 |
+bytecode array length: 24 |
bytecodes: [ |
/* 30 E> */ B(StackCheck), |
- /* 55 S> */ B(LdaSmi), I8(100), |
+ /* 42 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ /* 55 S> */ B(LdaConstant), U8(1), |
+ B(Star), R(4), |
+ B(LdaSmi), I8(100), |
B(Star), R(0), |
- /* 42 S> */ B(LdaUndefined), |
+ /* 42 S> */ B(LdaConstant), U8(2), |
+ B(Star), R(4), |
+ B(LdaUndefined), |
B(Star), R(1), |
B(Star), R(2), |
/* 63 S> */ B(Nop), |
/* 73 S> */ B(Return), |
] |
constant pool: [ |
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], |
+ ONE_BYTE_INTERNALIZED_STRING_TYPE [".result"], |
] |
handlers: [ |
] |
@@ -50,15 +62,22 @@ handlers: [ |
snippet: " |
while(true) { var a = 10; a = do { ++a; break; }; a = 20; } |
" |
-frame size: 2 |
+frame size: 4 |
parameter count: 1 |
-bytecode array length: 16 |
+bytecode array length: 30 |
bytecodes: [ |
/* 30 E> */ B(StackCheck), |
/* 34 E> */ B(StackCheck), |
- /* 56 S> */ B(LdaSmi), I8(10), |
+ /* 56 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(2), |
+ B(LdaSmi), I8(10), |
B(Star), R(0), |
- /* 69 S> */ B(Inc), U8(2), |
+ /* 60 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(2), |
+ /* 69 S> */ B(LdaConstant), U8(1), |
+ B(Star), R(3), |
+ B(Ldar), R(0), |
+ B(Inc), U8(4), |
B(Star), R(0), |
B(Star), R(1), |
/* 74 S> */ B(Jump), U8(2), |
@@ -66,6 +85,8 @@ bytecodes: [ |
/* 94 S> */ B(Return), |
] |
constant pool: [ |
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
+ ONE_BYTE_INTERNALIZED_STRING_TYPE [".result"], |
] |
handlers: [ |
] |