Index: test/cctest/interpreter/bytecode_expectations/Switch.golden |
diff --git a/test/cctest/interpreter/bytecode_expectations/Switch.golden b/test/cctest/interpreter/bytecode_expectations/Switch.golden |
index a1025e5ba463dfd729ff9611fc04f5ba81bcb981..35efbf9b87b0d5c3e973cdc0099a92c0f96c2ced 100644 |
--- a/test/cctest/interpreter/bytecode_expectations/Switch.golden |
+++ b/test/cctest/interpreter/bytecode_expectations/Switch.golden |
@@ -15,18 +15,22 @@ snippet: " |
" |
frame size: 3 |
parameter count: 1 |
-bytecode array length: 34 |
+bytecode array length: 43 |
bytecodes: [ |
/* 30 E> */ B(StackCheck), |
- /* 42 S> */ B(LdaSmi), I8(1), |
+ /* 42 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(2), |
+ B(LdaSmi), I8(1), |
B(Star), R(0), |
- B(Star), R(1), |
+ B(LdaConstant), U8(1), |
+ B(Star), R(2), |
+ B(Mov), R(0), R(1), |
/* 45 S> */ B(LdaSmi), I8(1), |
- B(TestEqualStrict), R(1), U8(2), |
+ B(TestEqualStrict), R(1), U8(6), |
B(Mov), R(0), R(2), |
B(JumpIfToBooleanTrue), U8(11), |
B(LdaSmi), I8(2), |
- B(TestEqualStrict), R(2), U8(3), |
+ B(TestEqualStrict), R(2), U8(7), |
B(JumpIfTrue), U8(7), |
B(Jump), U8(8), |
/* 66 S> */ B(LdaSmi), I8(2), |
@@ -37,6 +41,8 @@ bytecodes: [ |
/* 97 S> */ B(Return), |
] |
constant pool: [ |
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
+ ONE_BYTE_INTERNALIZED_STRING_TYPE [".switch_tag"], |
] |
handlers: [ |
] |
@@ -49,32 +55,42 @@ snippet: " |
case 2: a = 3; break; |
} |
" |
-frame size: 3 |
+frame size: 4 |
parameter count: 1 |
-bytecode array length: 40 |
+bytecode array length: 57 |
bytecodes: [ |
/* 30 E> */ B(StackCheck), |
- /* 42 S> */ B(LdaSmi), I8(1), |
+ /* 42 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(2), |
+ B(LdaSmi), I8(1), |
B(Star), R(0), |
- B(Star), R(1), |
+ B(LdaConstant), U8(1), |
+ B(Star), R(2), |
+ B(Mov), R(0), R(1), |
/* 45 S> */ B(LdaSmi), I8(1), |
- B(TestEqualStrict), R(1), U8(2), |
+ B(TestEqualStrict), R(1), U8(8), |
B(Mov), R(0), R(2), |
B(JumpIfToBooleanTrue), U8(11), |
B(LdaSmi), I8(2), |
- B(TestEqualStrict), R(2), U8(3), |
- B(JumpIfTrue), U8(10), |
- B(Jump), U8(14), |
- /* 66 S> */ B(LdaSmi), I8(2), |
+ B(TestEqualStrict), R(2), U8(11), |
+ B(JumpIfTrue), U8(14), |
+ B(Jump), U8(22), |
+ /* 66 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 73 S> */ B(Jump), U8(8), |
- /* 89 S> */ B(LdaSmi), I8(3), |
+ /* 73 S> */ B(Jump), U8(12), |
+ /* 89 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(3), |
B(Star), R(0), |
/* 96 S> */ B(Jump), U8(2), |
B(LdaUndefined), |
/* 105 S> */ B(Return), |
] |
constant pool: [ |
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
+ ONE_BYTE_INTERNALIZED_STRING_TYPE [".switch_tag"], |
] |
handlers: [ |
] |
@@ -87,31 +103,41 @@ snippet: " |
case 2: a = 3; break; |
} |
" |
-frame size: 3 |
+frame size: 4 |
parameter count: 1 |
-bytecode array length: 38 |
+bytecode array length: 55 |
bytecodes: [ |
/* 30 E> */ B(StackCheck), |
- /* 42 S> */ B(LdaSmi), I8(1), |
+ /* 42 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(2), |
+ B(LdaSmi), I8(1), |
B(Star), R(0), |
- B(Star), R(1), |
+ B(LdaConstant), U8(1), |
+ B(Star), R(2), |
+ B(Mov), R(0), R(1), |
/* 45 S> */ B(LdaSmi), I8(1), |
- B(TestEqualStrict), R(1), U8(2), |
+ B(TestEqualStrict), R(1), U8(8), |
B(Mov), R(0), R(2), |
B(JumpIfToBooleanTrue), U8(11), |
B(LdaSmi), I8(2), |
- B(TestEqualStrict), R(2), U8(3), |
- B(JumpIfTrue), U8(8), |
- B(Jump), U8(12), |
- /* 66 S> */ B(LdaSmi), I8(2), |
+ B(TestEqualStrict), R(2), U8(11), |
+ B(JumpIfTrue), U8(12), |
+ B(Jump), U8(20), |
+ /* 66 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 98 S> */ B(LdaSmi), I8(3), |
+ /* 98 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(3), |
B(Star), R(0), |
/* 105 S> */ B(Jump), U8(2), |
B(LdaUndefined), |
/* 114 S> */ B(Return), |
] |
constant pool: [ |
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
+ ONE_BYTE_INTERNALIZED_STRING_TYPE [".switch_tag"], |
] |
handlers: [ |
] |
@@ -125,31 +151,39 @@ snippet: " |
default: a = 1; break; |
} |
" |
-frame size: 3 |
+frame size: 4 |
parameter count: 1 |
-bytecode array length: 38 |
+bytecode array length: 51 |
bytecodes: [ |
/* 30 E> */ B(StackCheck), |
- /* 42 S> */ B(LdaSmi), I8(1), |
+ /* 42 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(2), |
+ B(LdaSmi), I8(1), |
B(Star), R(0), |
- B(Star), R(1), |
+ B(LdaConstant), U8(1), |
+ B(Star), R(2), |
+ B(Mov), R(0), R(1), |
/* 45 S> */ B(LdaSmi), I8(2), |
- B(TestEqualStrict), R(1), U8(2), |
+ B(TestEqualStrict), R(1), U8(6), |
B(Mov), R(0), R(2), |
B(JumpIfToBooleanTrue), U8(11), |
B(LdaSmi), I8(3), |
- B(TestEqualStrict), R(2), U8(3), |
+ B(TestEqualStrict), R(2), U8(7), |
B(JumpIfTrue), U8(6), |
B(Jump), U8(6), |
- /* 66 S> */ B(Jump), U8(10), |
- /* 82 S> */ B(Jump), U8(8), |
- /* 99 S> */ B(LdaSmi), I8(1), |
+ /* 66 S> */ B(Jump), U8(14), |
+ /* 82 S> */ B(Jump), U8(12), |
+ /* 99 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(1), |
B(Star), R(0), |
/* 106 S> */ B(Jump), U8(2), |
B(LdaUndefined), |
/* 115 S> */ B(Return), |
] |
constant pool: [ |
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
+ ONE_BYTE_INTERNALIZED_STRING_TYPE [".switch_tag"], |
] |
handlers: [ |
] |
@@ -163,36 +197,49 @@ snippet: " |
default: a = 3; break; |
} |
" |
-frame size: 3 |
+frame size: 4 |
parameter count: 1 |
-bytecode array length: 47 |
+bytecode array length: 69 |
bytecodes: [ |
/* 30 E> */ B(StackCheck), |
- /* 42 S> */ B(LdaSmi), I8(1), |
+ /* 42 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(2), |
+ B(LdaSmi), I8(1), |
B(Star), R(0), |
+ B(LdaConstant), U8(1), |
+ B(Star), R(2), |
+ B(Ldar), R(0), |
/* 42 E> */ B(TypeOf), |
B(Star), R(1), |
/* 45 S> */ B(LdaSmi), I8(2), |
- B(TestEqualStrict), R(1), U8(2), |
+ B(TestEqualStrict), R(1), U8(8), |
B(Mov), R(1), R(2), |
B(JumpIfToBooleanTrue), U8(11), |
B(LdaSmi), I8(3), |
- B(TestEqualStrict), R(2), U8(3), |
- B(JumpIfTrue), U8(10), |
- B(Jump), U8(14), |
- /* 74 S> */ B(LdaSmi), I8(1), |
- B(Star), R(0), |
- /* 81 S> */ B(Jump), U8(14), |
- /* 97 S> */ B(LdaSmi), I8(2), |
+ B(TestEqualStrict), R(2), U8(11), |
+ B(JumpIfTrue), U8(14), |
+ B(Jump), U8(22), |
+ /* 74 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(1), |
+ B(Star), R(0), |
+ /* 81 S> */ B(Jump), U8(22), |
+ /* 97 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 104 S> */ B(Jump), U8(8), |
- /* 121 S> */ B(LdaSmi), I8(3), |
+ /* 104 S> */ B(Jump), U8(12), |
+ /* 121 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(3), |
B(Star), R(0), |
/* 128 S> */ B(Jump), U8(2), |
B(LdaUndefined), |
/* 137 S> */ B(Return), |
] |
constant pool: [ |
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
+ ONE_BYTE_INTERNALIZED_STRING_TYPE [".switch_tag"], |
] |
handlers: [ |
] |
@@ -205,29 +252,40 @@ snippet: " |
default: a = 2; break; |
} |
" |
-frame size: 3 |
+frame size: 4 |
parameter count: 1 |
-bytecode array length: 32 |
+bytecode array length: 51 |
bytecodes: [ |
/* 30 E> */ B(StackCheck), |
- /* 42 S> */ B(LdaSmi), I8(1), |
+ /* 42 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(2), |
+ B(LdaSmi), I8(1), |
B(Star), R(0), |
- B(Star), R(1), |
- /* 45 S> */ B(TypeOf), |
- B(TestEqualStrict), R(1), U8(2), |
+ B(LdaConstant), U8(1), |
+ B(Star), R(2), |
+ B(Mov), R(0), R(1), |
+ /* 45 S> */ B(Ldar), R(1), |
+ B(TypeOf), |
+ B(TestEqualStrict), R(1), U8(8), |
B(Mov), R(0), R(2), |
B(JumpIfToBooleanTrue), U8(4), |
- B(Jump), U8(8), |
- /* 74 S> */ B(LdaSmi), I8(1), |
+ B(Jump), U8(12), |
+ /* 74 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(1), |
B(Star), R(0), |
- /* 81 S> */ B(Jump), U8(8), |
- /* 98 S> */ B(LdaSmi), I8(2), |
+ /* 81 S> */ B(Jump), U8(12), |
+ /* 98 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
/* 105 S> */ B(Jump), U8(2), |
B(LdaUndefined), |
/* 114 S> */ B(Return), |
] |
constant pool: [ |
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
+ ONE_BYTE_INTERNALIZED_STRING_TYPE [".switch_tag"], |
] |
handlers: [ |
] |
@@ -307,160 +365,296 @@ snippet: " |
break; |
} |
" |
-frame size: 3 |
+frame size: 4 |
parameter count: 1 |
-bytecode array length: 292 |
+bytecode array length: 561 |
bytecodes: [ |
/* 30 E> */ B(StackCheck), |
- /* 42 S> */ B(LdaSmi), I8(1), |
+ /* 42 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(2), |
+ B(LdaSmi), I8(1), |
B(Star), R(0), |
- B(Star), R(1), |
+ B(LdaConstant), U8(1), |
+ B(Star), R(2), |
+ B(Mov), R(0), R(1), |
/* 45 S> */ B(LdaSmi), I8(1), |
- B(TestEqualStrict), R(1), U8(2), |
+ B(TestEqualStrict), R(1), U8(134), |
B(Mov), R(0), R(2), |
B(JumpIfToBooleanTrue), U8(11), |
B(LdaSmi), I8(2), |
- B(TestEqualStrict), R(2), U8(3), |
- B(JumpIfTrueConstant), U8(0), |
- B(JumpConstant), U8(1), |
- /* 68 S> */ B(LdaSmi), I8(2), |
+ B(TestEqualStrict), R(2), U8(137), |
+ B(JumpIfTrueConstant), U8(2), |
+ B(JumpConstant), U8(3), |
+ /* 68 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 77 S> */ B(LdaSmi), I8(2), |
+ /* 77 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 86 S> */ B(LdaSmi), I8(2), |
+ /* 86 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 95 S> */ B(LdaSmi), I8(2), |
+ /* 95 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 104 S> */ B(LdaSmi), I8(2), |
+ /* 104 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 113 S> */ B(LdaSmi), I8(2), |
+ /* 113 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 122 S> */ B(LdaSmi), I8(2), |
+ /* 122 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 131 S> */ B(LdaSmi), I8(2), |
+ /* 131 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 140 S> */ B(LdaSmi), I8(2), |
+ /* 140 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 149 S> */ B(LdaSmi), I8(2), |
+ /* 149 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 158 S> */ B(LdaSmi), I8(2), |
+ /* 158 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 167 S> */ B(LdaSmi), I8(2), |
+ /* 167 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 176 S> */ B(LdaSmi), I8(2), |
+ /* 176 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 185 S> */ B(LdaSmi), I8(2), |
+ /* 185 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 194 S> */ B(LdaSmi), I8(2), |
+ /* 194 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 203 S> */ B(LdaSmi), I8(2), |
+ /* 203 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 212 S> */ B(LdaSmi), I8(2), |
+ /* 212 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 221 S> */ B(LdaSmi), I8(2), |
+ /* 221 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 230 S> */ B(LdaSmi), I8(2), |
+ /* 230 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 239 S> */ B(LdaSmi), I8(2), |
+ /* 239 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 248 S> */ B(LdaSmi), I8(2), |
+ /* 248 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 257 S> */ B(LdaSmi), I8(2), |
+ /* 257 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 266 S> */ B(LdaSmi), I8(2), |
+ /* 266 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 275 S> */ B(LdaSmi), I8(2), |
+ /* 275 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 284 S> */ B(LdaSmi), I8(2), |
+ /* 284 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 293 S> */ B(LdaSmi), I8(2), |
+ /* 293 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 302 S> */ B(LdaSmi), I8(2), |
+ /* 302 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 311 S> */ B(LdaSmi), I8(2), |
+ /* 311 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 320 S> */ B(LdaSmi), I8(2), |
+ /* 320 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 329 S> */ B(LdaSmi), I8(2), |
+ /* 329 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 338 S> */ B(LdaSmi), I8(2), |
+ /* 338 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 347 S> */ B(LdaSmi), I8(2), |
+ /* 347 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 356 S> */ B(LdaSmi), I8(2), |
+ /* 356 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 365 S> */ B(LdaSmi), I8(2), |
+ /* 365 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 374 S> */ B(LdaSmi), I8(2), |
+ /* 374 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 383 S> */ B(LdaSmi), I8(2), |
+ /* 383 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 392 S> */ B(LdaSmi), I8(2), |
+ /* 392 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 401 S> */ B(LdaSmi), I8(2), |
+ /* 401 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 410 S> */ B(LdaSmi), I8(2), |
+ /* 410 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 419 S> */ B(LdaSmi), I8(2), |
+ /* 419 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 428 S> */ B(LdaSmi), I8(2), |
+ /* 428 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 437 S> */ B(LdaSmi), I8(2), |
+ /* 437 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 446 S> */ B(LdaSmi), I8(2), |
+ /* 446 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 455 S> */ B(LdaSmi), I8(2), |
+ /* 455 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 464 S> */ B(LdaSmi), I8(2), |
+ /* 464 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 473 S> */ B(LdaSmi), I8(2), |
+ /* 473 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 482 S> */ B(LdaSmi), I8(2), |
+ /* 482 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 491 S> */ B(LdaSmi), I8(2), |
+ /* 491 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 500 S> */ B(LdaSmi), I8(2), |
+ /* 500 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 509 S> */ B(LdaSmi), I8(2), |
+ /* 509 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 518 S> */ B(LdaSmi), I8(2), |
+ /* 518 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 527 S> */ B(LdaSmi), I8(2), |
+ /* 527 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 536 S> */ B(LdaSmi), I8(2), |
+ /* 536 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 545 S> */ B(LdaSmi), I8(2), |
+ /* 545 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 554 S> */ B(LdaSmi), I8(2), |
+ /* 554 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 563 S> */ B(LdaSmi), I8(2), |
+ /* 563 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 572 S> */ B(LdaSmi), I8(2), |
+ /* 572 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 581 S> */ B(LdaSmi), I8(2), |
+ /* 581 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 590 S> */ B(LdaSmi), I8(2), |
+ /* 590 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 599 S> */ B(LdaSmi), I8(2), |
+ /* 599 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 608 S> */ B(LdaSmi), I8(2), |
+ /* 608 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 617 S> */ B(LdaSmi), I8(2), |
+ /* 617 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 626 S> */ B(LdaSmi), I8(2), |
+ /* 626 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 635 S> */ B(LdaSmi), I8(2), |
+ /* 635 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
- /* 644 S> */ B(Jump), U8(8), |
- /* 662 S> */ B(LdaSmi), I8(3), |
+ /* 644 S> */ B(Jump), U8(12), |
+ /* 662 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(3), |
B(Star), R(0), |
/* 671 S> */ B(Jump), U8(2), |
B(LdaUndefined), |
/* 680 S> */ B(Return), |
] |
constant pool: [ |
- Smi [262], |
- Smi [266], |
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
+ ONE_BYTE_INTERNALIZED_STRING_TYPE [".switch_tag"], |
+ Smi [518], |
+ Smi [526], |
] |
handlers: [ |
] |
@@ -477,41 +671,55 @@ snippet: " |
case 2: a = 3; |
} |
" |
-frame size: 5 |
+frame size: 6 |
parameter count: 1 |
-bytecode array length: 62 |
+bytecode array length: 87 |
bytecodes: [ |
/* 30 E> */ B(StackCheck), |
- /* 42 S> */ B(LdaSmi), I8(1), |
+ /* 42 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(3), |
+ B(LdaSmi), I8(1), |
B(Star), R(0), |
- B(Star), R(2), |
+ B(LdaConstant), U8(1), |
+ B(Star), R(3), |
+ B(Mov), R(0), R(2), |
/* 45 S> */ B(LdaSmi), I8(1), |
- B(TestEqualStrict), R(2), U8(5), |
+ B(TestEqualStrict), R(2), U8(15), |
B(Mov), R(0), R(3), |
B(JumpIfToBooleanTrue), U8(11), |
B(LdaSmi), I8(2), |
- B(TestEqualStrict), R(3), U8(6), |
- B(JumpIfTrue), U8(34), |
- B(Jump), U8(36), |
- /* 79 E> */ B(AddSmi), I8(1), R(0), U8(2), |
+ B(TestEqualStrict), R(3), U8(18), |
+ B(JumpIfTrue), U8(46), |
+ B(Jump), U8(52), |
+ B(LdaConstant), U8(1), |
+ B(Star), R(4), |
+ /* 79 E> */ B(AddSmi), I8(1), R(0), U8(6), |
B(Star), R(1), |
/* 70 S> */ B(LdaSmi), I8(2), |
- B(TestEqualStrict), R(1), U8(3), |
+ B(TestEqualStrict), R(1), U8(11), |
B(Mov), R(1), R(4), |
B(JumpIfToBooleanTrue), U8(4), |
- B(Jump), U8(8), |
- /* 101 S> */ B(LdaSmi), I8(1), |
+ B(Jump), U8(12), |
+ /* 101 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(5), |
+ B(LdaSmi), I8(1), |
B(Star), R(0), |
- /* 108 S> */ B(Jump), U8(8), |
- /* 131 S> */ B(LdaSmi), I8(2), |
+ /* 108 S> */ B(Jump), U8(12), |
+ /* 131 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(5), |
+ B(LdaSmi), I8(2), |
B(Star), R(0), |
/* 138 S> */ B(Jump), U8(2), |
- /* 176 S> */ B(LdaSmi), I8(3), |
+ /* 176 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(4), |
+ B(LdaSmi), I8(3), |
B(Star), R(0), |
B(LdaUndefined), |
/* 185 S> */ B(Return), |
] |
constant pool: [ |
+ ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
+ ONE_BYTE_INTERNALIZED_STRING_TYPE [".switch_tag"], |
] |
handlers: [ |
] |