OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |