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

Side by Side 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 unified diff | Download patch
OLDNEW
1 # 1 #
2 # Autogenerated by generate-bytecode-expectations. 2 # Autogenerated by generate-bytecode-expectations.
3 # 3 #
4 4
5 --- 5 ---
6 pool type: string 6 pool type: string
7 execute: yes 7 execute: yes
8 wrap: yes 8 wrap: yes
9 9
10 --- 10 ---
11 snippet: " 11 snippet: "
12 try { return 1; } catch(e) { return 2; } 12 try { return 1; } catch(e) { return 2; }
13 " 13 "
14 frame size: 5 14 frame size: 3
15 parameter count: 1 15 parameter count: 1
16 bytecode array length: 41 16 bytecode array length: 34
17 bytecodes: [ 17 bytecodes: [
18 /* 30 E> */ B(StackCheck), 18 /* 30 E> */ B(StackCheck),
19 B(Mov), R(context), R(1), 19 B(Mov), R(context), R(1),
20 /* 40 S> */ B(LdaSmi), U8(1), 20 /* 40 S> */ B(LdaSmi), U8(1),
21 /* 75 S> */ B(Return), 21 /* 75 S> */ B(Return),
22 B(Jump), U8(32), 22 B(Jump), U8(25),
23 B(Star), R(3),
24 B(LdaConstant), U8(0),
25 B(Star), R(2), 23 B(Star), R(2),
26 B(Mov), R(closure), R(4), 24 B(Ldar), R(closure),
27 B(CallRuntime), U16(Runtime::kPushCatchContext), R(2), U8(3), 25 B(CreateCatchContext), R(2), U8(0),
28 B(Star), R(1), 26 B(Star), R(1),
29 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0), 27 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0),
30 B(Ldar), R(1), 28 B(Ldar), R(1),
31 B(PushContext), R(0), 29 B(PushContext), R(0),
32 /* 63 S> */ B(LdaSmi), U8(2), 30 /* 63 S> */ B(LdaSmi), U8(2),
33 B(PopContext), R(0), 31 B(PopContext), R(0),
34 /* 75 S> */ B(Return), 32 /* 75 S> */ B(Return),
35 B(LdaUndefined), 33 B(LdaUndefined),
36 /* 75 S> */ B(Return), 34 /* 75 S> */ B(Return),
37 ] 35 ]
38 constant pool: [ 36 constant pool: [
39 "e", 37 "e",
40 ] 38 ]
41 handlers: [ 39 handlers: [
42 [4, 7, 9], 40 [4, 7, 9],
43 ] 41 ]
44 42
45 --- 43 ---
46 snippet: " 44 snippet: "
47 var a; 45 var a;
48 try { a = 1 } catch(e1) {}; 46 try { a = 1 } catch(e1) {};
49 try { a = 2 } catch(e2) { a = 3 } 47 try { a = 2 } catch(e2) { a = 3 }
50 " 48 "
51 frame size: 6 49 frame size: 4
52 parameter count: 1 50 parameter count: 1
53 bytecode array length: 79 51 bytecode array length: 65
54 bytecodes: [ 52 bytecodes: [
55 /* 30 E> */ B(StackCheck), 53 /* 30 E> */ B(StackCheck),
56 B(Mov), R(context), R(2), 54 B(Mov), R(context), R(2),
57 /* 47 S> */ B(LdaSmi), U8(1), 55 /* 47 S> */ B(LdaSmi), U8(1),
58 B(Star), R(0), 56 B(Star), R(0),
59 B(Jump), U8(29), 57 B(Jump), U8(22),
60 B(Star), R(4),
61 B(LdaConstant), U8(0),
62 B(Star), R(3), 58 B(Star), R(3),
63 B(Mov), R(closure), R(5), 59 B(Ldar), R(closure),
64 /* 49 E> */ B(CallRuntime), U16(Runtime::kPushCatchContext), R(3), U8(3), 60 /* 49 E> */ B(CreateCatchContext), R(3), U8(0),
65 B(Star), R(2), 61 B(Star), R(2),
66 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0), 62 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0),
67 B(Ldar), R(2), 63 B(Ldar), R(2),
68 B(PushContext), R(1), 64 B(PushContext), R(1),
69 B(PopContext), R(1), 65 B(PopContext), R(1),
70 B(Mov), R(context), R(2), 66 B(Mov), R(context), R(2),
71 /* 75 S> */ B(LdaSmi), U8(2), 67 /* 75 S> */ B(LdaSmi), U8(2),
72 B(Star), R(0), 68 B(Star), R(0),
73 B(Jump), U8(33), 69 B(Jump), U8(26),
74 B(Star), R(4),
75 B(LdaConstant), U8(1),
76 B(Star), R(3), 70 B(Star), R(3),
77 B(Mov), R(closure), R(5), 71 B(Ldar), R(closure),
78 /* 77 E> */ B(CallRuntime), U16(Runtime::kPushCatchContext), R(3), U8(3), 72 /* 77 E> */ B(CreateCatchContext), R(3), U8(1),
79 B(Star), R(2), 73 B(Star), R(2),
80 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0), 74 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0),
81 B(Ldar), R(2), 75 B(Ldar), R(2),
82 B(PushContext), R(1), 76 B(PushContext), R(1),
83 /* 95 S> */ B(LdaSmi), U8(3), 77 /* 95 S> */ B(LdaSmi), U8(3),
84 B(Star), R(0), 78 B(Star), R(0),
85 B(PopContext), R(1), 79 B(PopContext), R(1),
86 B(LdaUndefined), 80 B(LdaUndefined),
87 /* 103 S> */ B(Return), 81 /* 103 S> */ B(Return),
88 ] 82 ]
89 constant pool: [ 83 constant pool: [
90 "e1", 84 "e1",
91 "e2", 85 "e2",
92 ] 86 ]
93 handlers: [ 87 handlers: [
94 [4, 8, 10], 88 [4, 8, 10],
95 [40, 44, 46], 89 [33, 37, 39],
96 ] 90 ]
97 91
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698