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

Side by Side Diff: test/cctest/interpreter/bytecode_expectations/TryCatch.golden

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

Powered by Google App Engine
This is Rietveld 408576698