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

Unified Diff: test/cctest/interpreter/bytecode_expectations/TryCatch.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
Index: test/cctest/interpreter/bytecode_expectations/TryCatch.golden
diff --git a/test/cctest/interpreter/bytecode_expectations/TryCatch.golden b/test/cctest/interpreter/bytecode_expectations/TryCatch.golden
index f061b704cbea9948a5f12b3c772aaf5be79bc918..17d4ef0fd40f25f85152e7d3d5ba130105ceee15 100644
--- a/test/cctest/interpreter/bytecode_expectations/TryCatch.golden
+++ b/test/cctest/interpreter/bytecode_expectations/TryCatch.golden
@@ -11,20 +11,18 @@ wrap: yes
snippet: "
try { return 1; } catch(e) { return 2; }
"
-frame size: 5
+frame size: 3
parameter count: 1
-bytecode array length: 41
+bytecode array length: 34
bytecodes: [
/* 30 E> */ B(StackCheck),
B(Mov), R(context), R(1),
/* 40 S> */ B(LdaSmi), U8(1),
/* 75 S> */ B(Return),
- B(Jump), U8(32),
- B(Star), R(3),
- B(LdaConstant), U8(0),
+ B(Jump), U8(25),
B(Star), R(2),
- B(Mov), R(closure), R(4),
- B(CallRuntime), U16(Runtime::kPushCatchContext), R(2), U8(3),
+ B(Ldar), R(closure),
+ B(CreateCatchContext), R(2), U8(0),
B(Star), R(1),
B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R(0), U8(0),
B(Ldar), R(1),
@@ -48,20 +46,18 @@ snippet: "
try { a = 1 } catch(e1) {};
try { a = 2 } catch(e2) { a = 3 }
"
-frame size: 6
+frame size: 4
parameter count: 1
-bytecode array length: 79
+bytecode array length: 65
bytecodes: [
/* 30 E> */ B(StackCheck),
B(Mov), R(context), R(2),
/* 47 S> */ B(LdaSmi), U8(1),
B(Star), R(0),
- B(Jump), U8(29),
- B(Star), R(4),
- B(LdaConstant), U8(0),
+ B(Jump), U8(22),
B(Star), R(3),
- B(Mov), R(closure), R(5),
- /* 49 E> */ B(CallRuntime), U16(Runtime::kPushCatchContext), R(3), U8(3),
+ B(Ldar), R(closure),
+ /* 49 E> */ B(CreateCatchContext), R(3), U8(0),
B(Star), R(2),
B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R(0), U8(0),
B(Ldar), R(2),
@@ -70,12 +66,10 @@ bytecodes: [
B(Mov), R(context), R(2),
/* 75 S> */ B(LdaSmi), U8(2),
B(Star), R(0),
- B(Jump), U8(33),
- B(Star), R(4),
- B(LdaConstant), U8(1),
+ B(Jump), U8(26),
B(Star), R(3),
- B(Mov), R(closure), R(5),
- /* 77 E> */ B(CallRuntime), U16(Runtime::kPushCatchContext), R(3), U8(3),
+ B(Ldar), R(closure),
+ /* 77 E> */ B(CreateCatchContext), R(3), U8(1),
B(Star), R(2),
B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R(0), U8(0),
B(Ldar), R(2),
@@ -92,6 +86,6 @@ constant pool: [
]
handlers: [
[4, 8, 10],
- [40, 44, 46],
+ [33, 37, 39],
]

Powered by Google App Engine
This is Rietveld 408576698