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

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

Issue 2227203002: [interpreter] Logically separate hole-checking and const assignment errors (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove unused var Created 4 years, 4 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 ] 52 ]
53 handlers: [ 53 handlers: [
54 ] 54 ]
55 55
56 --- 56 ---
57 snippet: " 57 snippet: "
58 const x = ( x = 20); 58 const x = ( x = 20);
59 " 59 "
60 frame size: 3 60 frame size: 3
61 parameter count: 1 61 parameter count: 1
62 bytecode array length: 31 62 bytecode array length: 30
63 bytecodes: [ 63 bytecodes: [
64 B(LdaTheHole), 64 B(LdaTheHole),
65 B(Star), R(0), 65 B(Star), R(0),
66 /* 30 E> */ B(StackCheck), 66 /* 30 E> */ B(StackCheck),
67 /* 48 S> */ B(LdaSmi), U8(20), 67 /* 48 S> */ B(LdaSmi), U8(20),
68 B(Star), R(1), 68 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 /* 48 E> */ B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), 73 /* 48 E> */ B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1),
74 B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0 ), 74 B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0 ),
75 B(Mov), R(1), R(0), 75 B(Star), R(0),
76 B(LdaUndefined), 76 B(LdaUndefined),
77 /* 55 S> */ B(Return), 77 /* 55 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 const x = 10; x = 20; 87 const 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: 35 91 bytecode array length: 32
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 /* 44 S> */ B(LdaSmi), U8(10), 96 /* 44 S> */ B(LdaSmi), U8(10),
97 B(Star), R(0), 97 B(Star), R(0),
98 /* 48 S> */ B(LdaSmi), U8(20), 98 /* 48 S> */ B(LdaSmi), U8(20),
99 B(Star), R(1), 99 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 /* 50 E> */ B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), 104 /* 50 E> */ B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1),
105 B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0 ), 105 B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0 ),
106 B(Mov), R(1), R(0),
107 B(LdaUndefined), 106 B(LdaUndefined),
108 /* 56 S> */ B(Return), 107 /* 56 S> */ B(Return),
109 ] 108 ]
110 constant pool: [ 109 constant pool: [
111 "x", 110 "x",
112 ] 111 ]
113 handlers: [ 112 handlers: [
114 ] 113 ]
115 114
OLDNEW
« no previous file with comments | « src/interpreter/bytecode-generator.cc ('k') | test/cctest/interpreter/bytecode_expectations/ConstVariableContextSlot.golden » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698