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

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

Issue 2038083002: [Interpreter] Add a simple dead-code elimination bytecode optimizer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@int_jump_writer
Patch Set: Fix tests 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 do expressions: yes 9 do expressions: yes
10 10
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 ] 47 ]
48 handlers: [ 48 handlers: [
49 ] 49 ]
50 50
51 --- 51 ---
52 snippet: " 52 snippet: "
53 while(true) { var a = 10; a = do { ++a; break; }; a = 20; } 53 while(true) { var a = 10; a = do { ++a; break; }; a = 20; }
54 " 54 "
55 frame size: 2 55 frame size: 2
56 parameter count: 1 56 parameter count: 1
57 bytecode array length: 24 57 bytecode array length: 17
58 bytecodes: [ 58 bytecodes: [
59 /* 30 E> */ B(StackCheck), 59 /* 30 E> */ B(StackCheck),
60 /* 34 E> */ B(StackCheck), 60 /* 34 E> */ B(StackCheck),
61 /* 56 S> */ B(LdaSmi), U8(10), 61 /* 56 S> */ B(LdaSmi), U8(10),
62 B(Star), R(1), 62 B(Star), R(1),
63 /* 69 S> */ B(Inc), 63 /* 69 S> */ B(Inc),
64 B(Star), R(1), 64 B(Star), R(1),
65 B(Star), R(0), 65 B(Star), R(0),
66 /* 74 S> */ B(Jump), U8(11), 66 /* 74 S> */ B(Jump), U8(4),
67 B(Mov), R(0), R(1), 67 B(Jump), U8(-12),
68 /* 84 S> */ B(LdaSmi), U8(20),
69 B(Star), R(1),
70 B(Jump), U8(-19),
71 B(LdaUndefined), 68 B(LdaUndefined),
72 /* 94 S> */ B(Return), 69 /* 94 S> */ B(Return),
73 ] 70 ]
74 constant pool: [ 71 constant pool: [
75 ] 72 ]
76 handlers: [ 73 handlers: [
77 ] 74 ]
78 75
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698