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

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

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

Powered by Google App Engine
This is Rietveld 408576698