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

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

Issue 1998203002: [Interpreter] Preserve source positions in peephole optimizer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Nitlet on last patch set. Created 4 years, 7 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 ---
(...skipping 22 matching lines...) Expand all
33 let x = 10; return x; 33 let x = 10; return x;
34 " 34 "
35 frame size: 2 35 frame size: 2
36 parameter count: 1 36 parameter count: 1
37 bytecode array length: 20 37 bytecode array length: 20
38 bytecodes: [ 38 bytecodes: [
39 B(LdaTheHole), 39 B(LdaTheHole),
40 B(Star), R(0), 40 B(Star), R(0),
41 /* 30 E> */ B(StackCheck), 41 /* 30 E> */ B(StackCheck),
42 /* 42 S> */ B(LdaSmi), U8(10), 42 /* 42 S> */ B(LdaSmi), U8(10),
43 /* 42 E> */ B(Star), R(0), 43 B(Star), R(0),
44 /* 46 S> */ B(JumpIfNotHole), U8(11), 44 /* 46 S> */ B(JumpIfNotHole), U8(11),
45 B(LdaConstant), U8(0), 45 B(LdaConstant), U8(0),
46 B(Star), R(1), 46 B(Star), R(1),
47 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(1), U8(1), 47 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(1), U8(1),
48 /* 56 S> */ B(Return), 48 /* 56 S> */ B(Return),
49 ] 49 ]
50 constant pool: [ 50 constant pool: [
51 "x", 51 "x",
52 ] 52 ]
53 handlers: [ 53 handlers: [
(...skipping 12 matching lines...) Expand all
66 /* 30 E> */ B(StackCheck), 66 /* 30 E> */ B(StackCheck),
67 /* 45 S> */ B(LdaSmi), U8(20), 67 /* 45 S> */ B(LdaSmi), U8(20),
68 /* 45 E> */ B(Star), R(1), 68 /* 45 E> */ B(Star), R(1),
69 B(Ldar), R(0), 69 B(Ldar), R(0),
70 B(JumpIfNotHole), U8(11), 70 B(JumpIfNotHole), U8(11),
71 B(LdaConstant), U8(0), 71 B(LdaConstant), U8(0),
72 B(Star), R(2), 72 B(Star), R(2),
73 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), 73 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1),
74 B(Ldar), R(1), 74 B(Ldar), R(1),
75 B(Star), R(0), 75 B(Star), R(0),
76 /* 45 E> */ B(LdaUndefined), 76 B(LdaUndefined),
77 /* 52 S> */ B(Return), 77 /* 52 S> */ B(Return),
78 ] 78 ]
79 constant pool: [ 79 constant pool: [
80 "x", 80 "x",
81 ] 81 ]
82 handlers: [ 82 handlers: [
83 ] 83 ]
84 84
85 --- 85 ---
86 snippet: " 86 snippet: "
87 let x = 10; x = 20; 87 let x = 10; x = 20;
88 " 88 "
89 frame size: 3 89 frame size: 3
90 parameter count: 1 90 parameter count: 1
91 bytecode array length: 31 91 bytecode array length: 31
92 bytecodes: [ 92 bytecodes: [
93 B(LdaTheHole), 93 B(LdaTheHole),
94 B(Star), R(0), 94 B(Star), R(0),
95 /* 30 E> */ B(StackCheck), 95 /* 30 E> */ B(StackCheck),
96 /* 42 S> */ B(LdaSmi), U8(10), 96 /* 42 S> */ B(LdaSmi), U8(10),
97 /* 42 E> */ B(Star), R(0), 97 B(Star), R(0),
98 /* 46 S> */ B(LdaSmi), U8(20), 98 /* 46 S> */ B(LdaSmi), U8(20),
99 /* 48 E> */ B(Star), R(1), 99 /* 48 E> */ B(Star), R(1),
100 B(Ldar), R(0), 100 B(Ldar), R(0),
101 B(JumpIfNotHole), U8(11), 101 B(JumpIfNotHole), U8(11),
102 B(LdaConstant), U8(0), 102 B(LdaConstant), U8(0),
103 B(Star), R(2), 103 B(Star), R(2),
104 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), 104 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1),
105 B(Ldar), R(1), 105 B(Ldar), R(1),
106 B(Star), R(0), 106 B(Star), R(0),
107 B(LdaUndefined), 107 B(LdaUndefined),
108 /* 54 S> */ B(Return), 108 /* 54 S> */ B(Return),
109 ] 109 ]
110 constant pool: [ 110 constant pool: [
111 "x", 111 "x",
112 ] 112 ]
113 handlers: [ 113 handlers: [
114 ] 114 ]
115 115
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698