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

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

Issue 1997653002: [interpreter] Bytecode register optimizer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Decouple a test from implementation. Created 4 years, 6 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: 5
15 parameter count: 1 15 parameter count: 1
16 bytecode array length: 40 16 bytecode array length: 39
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(Star), R(3), 22 B(Star), R(3),
23 B(LdaConstant), U8(0), 23 B(LdaConstant), U8(0),
24 B(Star), R(2), 24 B(Star), R(2),
25 B(Ldar), R(closure), 25 B(Mov), R(closure), R(4),
26 B(Star), R(4),
27 B(CallRuntime), U16(Runtime::kPushCatchContext), R(2), U8(3), 26 B(CallRuntime), U16(Runtime::kPushCatchContext), R(2), U8(3),
28 B(Star), R(1), 27 B(Star), R(1),
29 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0), 28 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0),
30 B(Ldar), R(1), 29 B(Ldar), R(1),
31 B(PushContext), R(0), 30 B(PushContext), R(0),
32 /* 63 S> */ B(LdaSmi), U8(2), 31 /* 63 S> */ B(LdaSmi), U8(2),
33 B(PopContext), R(0), 32 B(PopContext), R(0),
34 /* 75 S> */ B(Return), 33 /* 75 S> */ B(Return),
35 B(LdaUndefined), 34 B(LdaUndefined),
36 /* 75 S> */ B(Return), 35 /* 75 S> */ B(Return),
37 ] 36 ]
38 constant pool: [ 37 constant pool: [
39 "e", 38 "e",
40 ] 39 ]
41 handlers: [ 40 handlers: [
42 [4, 7, 7], 41 [4, 7, 7],
43 ] 42 ]
44 43
45 --- 44 ---
46 snippet: " 45 snippet: "
47 var a; 46 var a;
48 try { a = 1 } catch(e1) {}; 47 try { a = 1 } catch(e1) {};
49 try { a = 2 } catch(e2) { a = 3 } 48 try { a = 2 } catch(e2) { a = 3 }
50 " 49 "
51 frame size: 6 50 frame size: 6
52 parameter count: 1 51 parameter count: 1
53 bytecode array length: 81 52 bytecode array length: 79
54 bytecodes: [ 53 bytecodes: [
55 /* 30 E> */ B(StackCheck), 54 /* 30 E> */ B(StackCheck),
56 B(Mov), R(context), R(2), 55 B(Mov), R(context), R(2),
57 /* 47 S> */ B(LdaSmi), U8(1), 56 /* 47 S> */ B(LdaSmi), U8(1),
58 /* 49 E> */ B(Star), R(0), 57 /* 49 E> */ B(Star), R(0),
59 B(Jump), U8(30), 58 B(Jump), U8(29),
60 B(Star), R(4), 59 B(Star), R(4),
61 B(LdaConstant), U8(0), 60 B(LdaConstant), U8(0),
62 B(Star), R(3), 61 B(Star), R(3),
63 B(Ldar), R(closure), 62 B(Mov), R(closure), R(5),
64 B(Star), R(5),
65 B(CallRuntime), U16(Runtime::kPushCatchContext), R(3), U8(3), 63 B(CallRuntime), U16(Runtime::kPushCatchContext), R(3), U8(3),
66 B(Star), R(2), 64 B(Star), R(2),
67 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0), 65 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0),
68 B(Ldar), R(2), 66 B(Ldar), R(2),
69 B(PushContext), R(1), 67 B(PushContext), R(1),
70 B(PopContext), R(1), 68 B(PopContext), R(1),
71 B(Mov), R(context), R(2), 69 B(Mov), R(context), R(2),
72 /* 75 S> */ B(LdaSmi), U8(2), 70 /* 75 S> */ B(LdaSmi), U8(2),
73 /* 77 E> */ B(Star), R(0), 71 /* 77 E> */ B(Star), R(0),
74 B(Jump), U8(34), 72 B(Jump), U8(33),
75 B(Star), R(4), 73 B(Star), R(4),
76 B(LdaConstant), U8(1), 74 B(LdaConstant), U8(1),
77 B(Star), R(3), 75 B(Star), R(3),
78 B(Ldar), R(closure), 76 B(Mov), R(closure), R(5),
79 B(Star), R(5),
80 B(CallRuntime), U16(Runtime::kPushCatchContext), R(3), U8(3), 77 B(CallRuntime), U16(Runtime::kPushCatchContext), R(3), U8(3),
81 B(Star), R(2), 78 B(Star), R(2),
82 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0), 79 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0),
83 B(Ldar), R(2), 80 B(Ldar), R(2),
84 B(PushContext), R(1), 81 B(PushContext), R(1),
85 /* 95 S> */ B(LdaSmi), U8(3), 82 /* 95 S> */ B(LdaSmi), U8(3),
86 /* 97 E> */ B(Star), R(0), 83 /* 97 E> */ B(Star), R(0),
87 B(PopContext), R(1), 84 B(PopContext), R(1),
88 B(LdaUndefined), 85 B(LdaUndefined),
89 /* 103 S> */ B(Return), 86 /* 103 S> */ B(Return),
90 ] 87 ]
91 constant pool: [ 88 constant pool: [
92 "e1", 89 "e1",
93 "e2", 90 "e2",
94 ] 91 ]
95 handlers: [ 92 handlers: [
96 [4, 8, 10], 93 [4, 8, 10],
97 [41, 45, 47], 94 [40, 44, 46],
98 ] 95 ]
99 96
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698