Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1865)

Unified Diff: test/cctest/interpreter/bytecode_expectations/ForOf.golden

Issue 2260473003: [interpreter] Add CreateCatchContext bytecode (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: group context bytecodes Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/interpreter/interpreter.cc ('k') | test/cctest/interpreter/bytecode_expectations/Generators.golden » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/interpreter/bytecode_expectations/ForOf.golden
diff --git a/test/cctest/interpreter/bytecode_expectations/ForOf.golden b/test/cctest/interpreter/bytecode_expectations/ForOf.golden
index 2bb1e05507245c80214e6ca088d4cfa046af2bbe..ee2c08d3300bb9b7e1eacb715030b840691b3fa5 100644
--- a/test/cctest/interpreter/bytecode_expectations/ForOf.golden
+++ b/test/cctest/interpreter/bytecode_expectations/ForOf.golden
@@ -11,9 +11,9 @@ wrap: yes
snippet: "
for (var p of [0, 1, 2]) {}
"
-frame size: 16
+frame size: 15
parameter count: 1
-bytecode array length: 282
+bytecode array length: 268
bytecodes: [
/* 30 E> */ B(StackCheck),
B(LdaZero),
@@ -44,12 +44,10 @@ bytecodes: [
B(LdaZero),
B(Star), R(3),
B(Jump), U8(-49),
- B(Jump), U8(41),
- B(Star), R(14),
- B(LdaConstant), U8(5),
+ B(Jump), U8(34),
B(Star), R(13),
- B(Mov), R(closure), R(15),
- B(CallRuntime), U16(Runtime::kPushCatchContext), R(13), U8(3),
+ B(Ldar), R(closure),
+ B(CreateCatchContext), R(13), U8(5),
B(Star), R(12),
B(PushContext), R(8),
B(LdaSmi), U8(2),
@@ -70,18 +68,18 @@ bytecodes: [
B(Star), R(11),
B(LdaZero),
B(TestEqualStrict), R(3),
- B(JumpIfTrue), U8(123),
+ B(JumpIfTrue), U8(116),
B(LdaUndefined),
B(TestEqualStrict), R(1),
- B(JumpIfTrue), U8(118),
+ B(JumpIfTrue), U8(111),
B(LdrNamedProperty), R(1), U8(6), U8(13), R(5),
B(LdaNull),
B(TestEqual), R(5),
B(JumpIfFalse), U8(4),
- B(Jump), U8(106),
+ B(Jump), U8(99),
B(LdaSmi), U8(1),
B(TestEqualStrict), R(3),
- B(JumpIfFalse), U8(75),
+ B(JumpIfFalse), U8(68),
B(Ldar), R(5),
B(TypeOf),
B(Star), R(12),
@@ -99,12 +97,10 @@ bytecodes: [
B(Mov), R(5), R(13),
B(Mov), R(1), R(14),
B(InvokeIntrinsic), U8(Runtime::k_Call), R(13), U8(2),
- B(Jump), U8(29),
- B(Star), R(14),
- B(LdaConstant), U8(5),
+ B(Jump), U8(22),
B(Star), R(13),
- B(Mov), R(closure), R(15),
- B(CallRuntime), U16(Runtime::kPushCatchContext), R(13), U8(3),
+ B(Ldar), R(closure),
+ B(CreateCatchContext), R(13), U8(5),
B(Star), R(12),
B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R(0), U8(0),
B(Ldar), R(12),
@@ -141,9 +137,9 @@ constant pool: [
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
]
handlers: [
- [7, 121, 127],
+ [7, 114, 120],
[10, 80, 82],
- [199, 209, 211],
+ [192, 202, 204],
]
---
@@ -151,9 +147,9 @@ snippet: "
var x = 'potatoes';
for (var p of x) { return p; }
"
-frame size: 17
+frame size: 16
parameter count: 1
-bytecode array length: 295
+bytecode array length: 281
bytecodes: [
/* 30 E> */ B(StackCheck),
/* 42 S> */ B(LdaConstant), U8(0),
@@ -184,14 +180,12 @@ bytecodes: [
/* 73 S> */ B(LdaZero),
B(Star), R(10),
B(Mov), R(0), R(11),
- B(Jump), U8(57),
+ B(Jump), U8(50),
B(Jump), U8(-54),
- B(Jump), U8(41),
- B(Star), R(15),
- B(LdaConstant), U8(5),
+ B(Jump), U8(34),
B(Star), R(14),
- B(Mov), R(closure), R(16),
- B(CallRuntime), U16(Runtime::kPushCatchContext), R(14), U8(3),
+ B(Ldar), R(closure),
+ B(CreateCatchContext), R(14), U8(5),
B(Star), R(13),
B(PushContext), R(9),
B(LdaSmi), U8(2),
@@ -212,18 +206,18 @@ bytecodes: [
B(Star), R(12),
B(LdaZero),
B(TestEqualStrict), R(3),
- B(JumpIfTrue), U8(123),
+ B(JumpIfTrue), U8(116),
B(LdaUndefined),
B(TestEqualStrict), R(1),
- B(JumpIfTrue), U8(118),
+ B(JumpIfTrue), U8(111),
B(LdrNamedProperty), R(1), U8(6), U8(13), R(5),
B(LdaNull),
B(TestEqual), R(5),
B(JumpIfFalse), U8(4),
- B(Jump), U8(106),
+ B(Jump), U8(99),
B(LdaSmi), U8(1),
B(TestEqualStrict), R(3),
- B(JumpIfFalse), U8(75),
+ B(JumpIfFalse), U8(68),
B(Ldar), R(5),
B(TypeOf),
B(Star), R(13),
@@ -241,12 +235,10 @@ bytecodes: [
B(Mov), R(5), R(14),
B(Mov), R(1), R(15),
B(InvokeIntrinsic), U8(Runtime::k_Call), R(14), U8(2),
- B(Jump), U8(29),
- B(Star), R(15),
- B(LdaConstant), U8(5),
+ B(Jump), U8(22),
B(Star), R(14),
- B(Mov), R(closure), R(16),
- B(CallRuntime), U16(Runtime::kPushCatchContext), R(14), U8(3),
+ B(Ldar), R(closure),
+ B(CreateCatchContext), R(14), U8(5),
B(Star), R(13),
B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R(0), U8(0),
B(Ldar), R(13),
@@ -288,9 +280,9 @@ constant pool: [
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
]
handlers: [
- [11, 124, 130],
+ [11, 117, 123],
[14, 83, 85],
- [203, 213, 215],
+ [196, 206, 208],
]
---
@@ -300,9 +292,9 @@ snippet: "
if (x == 20) break;
}
"
-frame size: 16
+frame size: 15
parameter count: 1
-bytecode array length: 298
+bytecode array length: 284
bytecodes: [
/* 30 E> */ B(StackCheck),
B(LdaZero),
@@ -341,12 +333,10 @@ bytecodes: [
B(LdaZero),
B(Star), R(3),
B(Jump), U8(-65),
- B(Jump), U8(41),
- B(Star), R(14),
- B(LdaConstant), U8(5),
+ B(Jump), U8(34),
B(Star), R(13),
- B(Mov), R(closure), R(15),
- B(CallRuntime), U16(Runtime::kPushCatchContext), R(13), U8(3),
+ B(Ldar), R(closure),
+ B(CreateCatchContext), R(13), U8(5),
B(Star), R(12),
B(PushContext), R(8),
B(LdaSmi), U8(2),
@@ -367,18 +357,18 @@ bytecodes: [
B(Star), R(11),
B(LdaZero),
B(TestEqualStrict), R(3),
- B(JumpIfTrue), U8(123),
+ B(JumpIfTrue), U8(116),
B(LdaUndefined),
B(TestEqualStrict), R(1),
- B(JumpIfTrue), U8(118),
+ B(JumpIfTrue), U8(111),
B(LdrNamedProperty), R(1), U8(6), U8(13), R(5),
B(LdaNull),
B(TestEqual), R(5),
B(JumpIfFalse), U8(4),
- B(Jump), U8(106),
+ B(Jump), U8(99),
B(LdaSmi), U8(1),
B(TestEqualStrict), R(3),
- B(JumpIfFalse), U8(75),
+ B(JumpIfFalse), U8(68),
B(Ldar), R(5),
B(TypeOf),
B(Star), R(12),
@@ -396,12 +386,10 @@ bytecodes: [
B(Mov), R(5), R(13),
B(Mov), R(1), R(14),
B(InvokeIntrinsic), U8(Runtime::k_Call), R(13), U8(2),
- B(Jump), U8(29),
- B(Star), R(14),
- B(LdaConstant), U8(5),
+ B(Jump), U8(22),
B(Star), R(13),
- B(Mov), R(closure), R(15),
- B(CallRuntime), U16(Runtime::kPushCatchContext), R(13), U8(3),
+ B(Ldar), R(closure),
+ B(CreateCatchContext), R(13), U8(5),
B(Star), R(12),
B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R(0), U8(0),
B(Ldar), R(12),
@@ -438,9 +426,9 @@ constant pool: [
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
]
handlers: [
- [7, 137, 143],
+ [7, 130, 136],
[10, 96, 98],
- [215, 225, 227],
+ [208, 218, 220],
]
---
@@ -448,9 +436,9 @@ snippet: "
var x = { 'a': 1, 'b': 2 };
for (x['a'] of [1,2,3]) { return x['a']; }
"
-frame size: 15
+frame size: 14
parameter count: 1
-bytecode array length: 308
+bytecode array length: 294
bytecodes: [
/* 30 E> */ B(StackCheck),
/* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(8),
@@ -484,14 +472,12 @@ bytecodes: [
/* 96 E> */ B(LdrNamedProperty), R(6), U8(6), U8(15), R(9),
B(LdaZero),
B(Star), R(8),
- B(Jump), U8(57),
+ B(Jump), U8(50),
B(Jump), U8(-57),
- B(Jump), U8(41),
- B(Star), R(13),
- B(LdaConstant), U8(7),
+ B(Jump), U8(34),
B(Star), R(12),
- B(Mov), R(closure), R(14),
- B(CallRuntime), U16(Runtime::kPushCatchContext), R(12), U8(3),
+ B(Ldar), R(closure),
+ B(CreateCatchContext), R(12), U8(7),
B(Star), R(11),
B(PushContext), R(7),
B(LdaSmi), U8(2),
@@ -512,18 +498,18 @@ bytecodes: [
B(Star), R(10),
B(LdaZero),
B(TestEqualStrict), R(2),
- B(JumpIfTrue), U8(123),
+ B(JumpIfTrue), U8(116),
B(LdaUndefined),
B(TestEqualStrict), R(0),
- B(JumpIfTrue), U8(118),
+ B(JumpIfTrue), U8(111),
B(LdrNamedProperty), R(0), U8(8), U8(17), R(4),
B(LdaNull),
B(TestEqual), R(4),
B(JumpIfFalse), U8(4),
- B(Jump), U8(106),
+ B(Jump), U8(99),
B(LdaSmi), U8(1),
B(TestEqualStrict), R(2),
- B(JumpIfFalse), U8(75),
+ B(JumpIfFalse), U8(68),
B(Ldar), R(4),
B(TypeOf),
B(Star), R(11),
@@ -541,12 +527,10 @@ bytecodes: [
B(Mov), R(4), R(12),
B(Mov), R(0), R(13),
B(InvokeIntrinsic), U8(Runtime::k_Call), R(12), U8(2),
- B(Jump), U8(29),
- B(Star), R(13),
- B(LdaConstant), U8(7),
+ B(Jump), U8(22),
B(Star), R(12),
- B(Mov), R(closure), R(14),
- B(CallRuntime), U16(Runtime::kPushCatchContext), R(12), U8(3),
+ B(Ldar), R(closure),
+ B(CreateCatchContext), R(12), U8(7),
B(Star), R(11),
B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R(0), U8(0),
B(Ldar), R(11),
@@ -590,8 +574,8 @@ constant pool: [
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
]
handlers: [
- [15, 137, 143],
+ [15, 130, 136],
[18, 96, 98],
- [216, 226, 228],
+ [209, 219, 221],
]
« no previous file with comments | « src/interpreter/interpreter.cc ('k') | test/cctest/interpreter/bytecode_expectations/Generators.golden » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698