Index: test/cctest/interpreter/bytecode_expectations/WideRegisters.golden |
diff --git a/test/cctest/interpreter/bytecode_expectations/WideRegisters.golden b/test/cctest/interpreter/bytecode_expectations/WideRegisters.golden |
index 402b9aea80c25ac23d80397a406413fc1967ce47..ef5261f4ef3e310aebb2697bd04e056be4b24ac0 100644 |
--- a/test/cctest/interpreter/bytecode_expectations/WideRegisters.golden |
+++ b/test/cctest/interpreter/bytecode_expectations/WideRegisters.golden |
@@ -167,16 +167,19 @@ snippet: " |
x0 = x127; |
return x0; |
" |
-frame size: 157 |
+frame size: 158 |
parameter count: 1 |
-bytecode array length: 10 |
+bytecode array length: 16 |
bytecodes: [ |
/* 30 E> */ B(StackCheck), |
- /* 1494 S> */ B(Wide), B(Mov), R16(127), R16(0), |
+ /* 1494 S> */ B(LdaConstant), U8(0), |
+ B(Wide), B(Star), R16(157), |
+ B(Wide), B(Mov), R16(127), R16(0), |
/* 1505 S> */ B(Ldar), R(0), |
/* 1516 S> */ B(Return), |
] |
constant pool: [ |
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["x0"], |
] |
handlers: [ |
] |
@@ -343,16 +346,19 @@ snippet: " |
x127 = x126; |
return x127; |
" |
-frame size: 157 |
+frame size: 158 |
parameter count: 1 |
-bytecode array length: 12 |
+bytecode array length: 18 |
bytecodes: [ |
/* 30 E> */ B(StackCheck), |
- /* 1494 S> */ B(Wide), B(Mov), R16(126), R16(127), |
+ /* 1494 S> */ B(LdaConstant), U8(0), |
+ B(Wide), B(Star), R16(157), |
+ B(Wide), B(Mov), R16(126), R16(127), |
/* 1507 S> */ B(Wide), B(Ldar), R16(127), |
/* 1520 S> */ B(Return), |
] |
constant pool: [ |
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["x127"], |
] |
handlers: [ |
] |
@@ -701,20 +707,24 @@ snippet: " |
if (x2 > 3) { return x0; } |
return x129; |
" |
-frame size: 157 |
+frame size: 158 |
parameter count: 1 |
-bytecode array length: 37 |
+bytecode array length: 49 |
bytecodes: [ |
/* 30 E> */ B(StackCheck), |
- /* 1503 S> */ B(LdaZero), |
+ /* 1503 S> */ B(LdaConstant), U8(0), |
+ B(Wide), B(Star), R16(157), |
+ B(LdaZero), |
B(Star), R(0), |
/* 1506 S> */ B(LdaSmi), I8(3), |
- /* 1515 E> */ B(Wide), B(TestEqual), R16(129), U16(2), |
- B(JumpIfFalse), U8(10), |
- /* 1534 S> */ B(Wide), B(Mov), R16(0), R16(129), |
+ /* 1515 E> */ B(Wide), B(TestEqual), R16(129), U16(4), |
+ B(JumpIfFalse), U8(16), |
+ /* 1534 S> */ B(LdaConstant), U8(1), |
+ B(Wide), B(Star), R16(157), |
+ B(Wide), B(Mov), R16(0), R16(129), |
B(Ldar), R(0), |
/* 1540 S> */ B(LdaSmi), I8(3), |
- /* 1547 E> */ B(TestGreaterThan), R(2), U8(3), |
+ /* 1547 E> */ B(TestGreaterThan), R(2), U8(7), |
B(JumpIfFalse), U8(5), |
/* 1554 S> */ B(Ldar), R(0), |
/* 1580 S> */ B(Return), |
@@ -722,6 +732,8 @@ bytecodes: [ |
/* 1580 S> */ B(Return), |
] |
constant pool: [ |
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["x0"], |
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["x129"], |
] |
handlers: [ |
] |
@@ -889,33 +901,44 @@ snippet: " |
var x1 = 0; |
for (x128 = 0; x128 < 64; x128++) { x1 += x128;}return x128; |
" |
-frame size: 158 |
+frame size: 159 |
parameter count: 1 |
-bytecode array length: 56 |
+bytecode array length: 80 |
bytecodes: [ |
/* 30 E> */ B(StackCheck), |
- /* 1503 S> */ B(LdaZero), |
+ /* 1503 S> */ B(LdaConstant), U8(0), |
+ B(Wide), B(Star), R16(157), |
+ B(LdaZero), |
B(Star), R(0), |
- /* 1515 S> */ B(LdaZero), |
+ /* 1515 S> */ B(LdaConstant), U8(1), |
+ B(Wide), B(Star), R16(157), |
+ B(LdaZero), |
B(Star), R(1), |
- /* 1523 S> */ B(LdaZero), |
+ /* 1523 S> */ B(LdaConstant), U8(2), |
+ B(Wide), B(Star), R16(157), |
+ B(LdaZero), |
B(Wide), B(Star), R16(128), |
/* 1538 S> */ B(LdaSmi), I8(64), |
- /* 1538 E> */ B(Wide), B(TestLessThan), R16(128), U16(2), |
- B(JumpIfFalse), U8(31), |
+ /* 1538 E> */ B(Wide), B(TestLessThan), R16(128), U16(8), |
+ B(JumpIfFalse), U8(37), |
/* 1518 E> */ B(StackCheck), |
- /* 1555 S> */ B(Wide), B(Ldar), R16(128), |
- /* 1561 E> */ B(Add), R(1), U8(4), |
- B(Wide), B(Mov), R16(1), R16(157), |
+ /* 1555 S> */ B(LdaConstant), U8(1), |
+ B(Wide), B(Star), R16(157), |
+ B(Wide), B(Ldar), R16(128), |
+ /* 1561 E> */ B(Add), R(1), U8(10), |
+ B(Wide), B(Mov), R16(1), R16(158), |
B(Star), R(1), |
/* 1548 S> */ B(Wide), B(Ldar), R16(128), |
- B(Inc), U8(3), |
+ B(Inc), U8(9), |
B(Wide), B(Star), R16(128), |
- B(JumpLoop), U8(36), I8(0), |
+ B(JumpLoop), U8(42), I8(0), |
/* 1567 S> */ B(Wide), B(Ldar), R16(128), |
/* 1580 S> */ B(Return), |
] |
constant pool: [ |
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["x0"], |
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["x1"], |
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["x128"], |
] |
handlers: [ |
] |
@@ -1083,39 +1106,47 @@ snippet: " |
var x1 = 0; |
for (x128 in x0) { x1 += x128;}return x1; |
" |
-frame size: 163 |
+frame size: 164 |
parameter count: 1 |
-bytecode array length: 85 |
+bytecode array length: 103 |
bytecodes: [ |
/* 30 E> */ B(StackCheck), |
- /* 1503 S> */ B(Wide), B(LdaSmi), I16(1234), |
+ /* 1503 S> */ B(LdaConstant), U8(0), |
+ B(Wide), B(Star), R16(157), |
+ B(Wide), B(LdaSmi), I16(1234), |
B(Star), R(0), |
- /* 1518 S> */ B(LdaZero), |
+ /* 1518 S> */ B(LdaConstant), U8(1), |
+ B(Wide), B(Star), R16(157), |
+ B(LdaZero), |
B(Star), R(1), |
/* 1534 S> */ B(Ldar), R(0), |
- B(JumpIfUndefined), U8(70), |
- B(JumpIfNull), U8(68), |
+ B(JumpIfUndefined), U8(76), |
+ B(JumpIfNull), U8(74), |
B(Wide), B(ToObject), R16(157), |
B(Wide), B(ForInPrepare), R16(157), R16(158), |
B(LdaZero), |
B(Wide), B(Star), R16(161), |
/* 1526 S> */ B(Wide), B(ForInContinue), R16(161), R16(160), |
- B(JumpIfFalse), U8(45), |
- B(Wide), B(ForInNext), R16(157), R16(161), R16(158), U16(3), |
- B(JumpIfUndefined), U8(22), |
+ B(JumpIfFalse), U8(51), |
+ B(Wide), B(ForInNext), R16(157), R16(161), R16(158), U16(9), |
+ B(JumpIfUndefined), U8(28), |
B(Wide), B(Star), R16(128), |
/* 1521 E> */ B(StackCheck), |
- /* 1541 S> */ B(Wide), B(Ldar), R16(128), |
- /* 1547 E> */ B(Add), R(1), U8(2), |
- B(Wide), B(Mov), R16(1), R16(162), |
+ /* 1541 S> */ B(LdaConstant), U8(1), |
+ B(Wide), B(Star), R16(162), |
+ B(Wide), B(Ldar), R16(128), |
+ /* 1547 E> */ B(Add), R(1), U8(6), |
+ B(Wide), B(Mov), R16(1), R16(163), |
B(Star), R(1), |
/* 1544 E> */ B(Wide), B(ForInStep), R16(161), |
B(Wide), B(Star), R16(161), |
- B(JumpLoop), U8(48), I8(0), |
+ B(JumpLoop), U8(54), I8(0), |
/* 1553 S> */ B(Ldar), R(1), |
/* 1564 S> */ B(Return), |
] |
constant pool: [ |
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["x0"], |
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["x1"], |
] |
handlers: [ |
] |
@@ -1284,24 +1315,30 @@ snippet: " |
%TheHole(); |
return x1; |
" |
-frame size: 159 |
+frame size: 160 |
parameter count: 1 |
-bytecode array length: 53 |
+bytecode array length: 65 |
bytecodes: [ |
/* 30 E> */ B(StackCheck), |
- /* 1494 S> */ B(Wide), B(Mov), R16(64), R16(157), |
- B(Wide), B(Mov), R16(63), R16(158), |
- /* 1509 E> */ B(Wide), B(CallRuntime), U16(Runtime::kAdd), R16(157), U16(2), |
+ /* 1494 S> */ B(LdaConstant), U8(0), |
+ B(Wide), B(Star), R16(157), |
+ B(Wide), B(Mov), R16(64), R16(158), |
+ B(Wide), B(Mov), R16(63), R16(159), |
+ /* 1509 E> */ B(Wide), B(CallRuntime), U16(Runtime::kAdd), R16(158), U16(2), |
B(Star), R(0), |
- /* 1515 S> */ B(Wide), B(Mov), R16(27), R16(157), |
- B(Wide), B(Mov), R16(143), R16(158), |
- /* 1530 E> */ B(Wide), B(CallRuntime), U16(Runtime::kAdd), R16(157), U16(2), |
+ /* 1515 S> */ B(LdaConstant), U8(1), |
+ B(Wide), B(Star), R16(157), |
+ B(Wide), B(Mov), R16(27), R16(158), |
+ B(Wide), B(Mov), R16(143), R16(159), |
+ /* 1530 E> */ B(Wide), B(CallRuntime), U16(Runtime::kAdd), R16(158), U16(2), |
B(Star), R(1), |
/* 1537 S> */ B(CallRuntime), U16(Runtime::kTheHole), R(0), U8(0), |
/* 1549 S> */ B(Ldar), R(1), |
/* 1560 S> */ B(Return), |
] |
constant pool: [ |
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["x0"], |
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["x1"], |
] |
handlers: [ |
] |