| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 void BuildKeyedSuperPropertyStore(Register receiver, Register home_object, | 106 void BuildKeyedSuperPropertyStore(Register receiver, Register home_object, |
| 107 Register key, Register value); | 107 Register key, Register value); |
| 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); | |
| 117 void BuildThrowReferenceError(Handle<String> name); | 116 void BuildThrowReferenceError(Handle<String> name); |
| 118 void BuildHoleCheckForVariableLoad(Variable* variable); | 117 void BuildHoleCheckForVariableLoad(Variable* variable); |
| 119 void BuildHoleCheckForVariableAssignment(Variable* variable, Token::Value op); | 118 void BuildHoleCheckForVariableAssignment(Variable* variable, Token::Value op); |
| 120 | 119 |
| 121 // Build jump to targets[value], where | 120 // Build jump to targets[value], where |
| 122 // start_index <= value < start_index + size. | 121 // start_index <= value < start_index + size. |
| 123 void BuildIndexedJump(Register value, size_t start_index, size_t size, | 122 void BuildIndexedJump(Register value, size_t start_index, size_t size, |
| 124 ZoneVector<BytecodeLabel>& targets); | 123 ZoneVector<BytecodeLabel>& targets); |
| 125 | 124 |
| 126 void VisitGeneratorPrologue(); | 125 void VisitGeneratorPrologue(); |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 ZoneVector<BytecodeLabel> generator_resume_points_; | 218 ZoneVector<BytecodeLabel> generator_resume_points_; |
| 220 Register generator_state_; | 219 Register generator_state_; |
| 221 int loop_depth_; | 220 int loop_depth_; |
| 222 }; | 221 }; |
| 223 | 222 |
| 224 } // namespace interpreter | 223 } // namespace interpreter |
| 225 } // namespace internal | 224 } // namespace internal |
| 226 } // namespace v8 | 225 } // namespace v8 |
| 227 | 226 |
| 228 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ | 227 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ |
| OLD | NEW |