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

Side by Side Diff: src/interpreter/bytecode-generator.h

Issue 2201193004: Use Variable::binding_needs_init() to determine hole initialization (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove one more comment 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
« no previous file with comments | « src/full-codegen/x64/full-codegen-x64.cc ('k') | src/interpreter/bytecode-generator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_INTERPRETER_BYTECODE_GENERATOR_H_ 5 #ifndef V8_INTERPRETER_BYTECODE_GENERATOR_H_
6 #define V8_INTERPRETER_BYTECODE_GENERATOR_H_ 6 #define V8_INTERPRETER_BYTECODE_GENERATOR_H_
7 7
8 #include "src/ast/ast.h" 8 #include "src/ast/ast.h"
9 #include "src/interpreter/bytecode-array-builder.h" 9 #include "src/interpreter/bytecode-array-builder.h"
10 #include "src/interpreter/bytecode-label.h" 10 #include "src/interpreter/bytecode-label.h"
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 void BuildNamedSuperPropertyLoad(Register receiver, Register home_object, 108 void BuildNamedSuperPropertyLoad(Register receiver, Register home_object,
109 Register name); 109 Register name);
110 void BuildKeyedSuperPropertyLoad(Register receiver, Register home_object, 110 void BuildKeyedSuperPropertyLoad(Register receiver, Register home_object,
111 Register key); 111 Register key);
112 112
113 void BuildAbort(BailoutReason bailout_reason); 113 void BuildAbort(BailoutReason bailout_reason);
114 void BuildThrowIfHole(Handle<String> name); 114 void BuildThrowIfHole(Handle<String> name);
115 void BuildThrowIfNotHole(Handle<String> name); 115 void BuildThrowIfNotHole(Handle<String> name);
116 void BuildThrowReassignConstant(Handle<String> name); 116 void BuildThrowReassignConstant(Handle<String> name);
117 void BuildThrowReferenceError(Handle<String> name); 117 void BuildThrowReferenceError(Handle<String> name);
118 void BuildHoleCheckForVariableLoad(VariableMode mode, Handle<String> name); 118 void BuildHoleCheckForVariableLoad(Variable* variable);
119 void BuildHoleCheckForVariableAssignment(Variable* variable, Token::Value op); 119 void BuildHoleCheckForVariableAssignment(Variable* variable, Token::Value op);
120 120
121 // Build jump to targets[value], where 121 // Build jump to targets[value], where
122 // start_index <= value < start_index + size. 122 // start_index <= value < start_index + size.
123 void BuildIndexedJump(Register value, size_t start_index, size_t size, 123 void BuildIndexedJump(Register value, size_t start_index, size_t size,
124 ZoneVector<BytecodeLabel>& targets); 124 ZoneVector<BytecodeLabel>& targets);
125 125
126 void VisitGeneratorPrologue(); 126 void VisitGeneratorPrologue();
127 127
128 void VisitArgumentsObject(Variable* variable); 128 void VisitArgumentsObject(Variable* variable);
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 ZoneVector<BytecodeLabel> generator_resume_points_; 219 ZoneVector<BytecodeLabel> generator_resume_points_;
220 Register generator_state_; 220 Register generator_state_;
221 int loop_depth_; 221 int loop_depth_;
222 }; 222 };
223 223
224 } // namespace interpreter 224 } // namespace interpreter
225 } // namespace internal 225 } // namespace internal
226 } // namespace v8 226 } // namespace v8
227 227
228 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ 228 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_
OLDNEW
« no previous file with comments | « src/full-codegen/x64/full-codegen-x64.cc ('k') | src/interpreter/bytecode-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698