| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 HoleCheckMode hole_check_mode, | 98 HoleCheckMode hole_check_mode, |
| 99 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF); | 99 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF); |
| 100 void BuildVariableLoadForAccumulatorValue( | 100 void BuildVariableLoadForAccumulatorValue( |
| 101 Variable* variable, FeedbackSlot slot, HoleCheckMode hole_check_mode, | 101 Variable* variable, FeedbackSlot slot, HoleCheckMode hole_check_mode, |
| 102 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF); | 102 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF); |
| 103 void BuildVariableAssignment(Variable* variable, Token::Value op, | 103 void BuildVariableAssignment(Variable* variable, Token::Value op, |
| 104 FeedbackSlot slot, | 104 FeedbackSlot slot, |
| 105 HoleCheckMode hole_check_mode); | 105 HoleCheckMode hole_check_mode); |
| 106 | 106 |
| 107 void BuildReturn(); | 107 void BuildReturn(); |
| 108 void BuildAsyncReturn(); |
| 108 void BuildReThrow(); | 109 void BuildReThrow(); |
| 109 void BuildAbort(BailoutReason bailout_reason); | 110 void BuildAbort(BailoutReason bailout_reason); |
| 110 void BuildThrowIfHole(Handle<String> name); | 111 void BuildThrowIfHole(Handle<String> name); |
| 111 void BuildThrowReferenceError(Handle<String> name); | 112 void BuildThrowReferenceError(Handle<String> name); |
| 112 void BuildHoleCheckForVariableAssignment(Variable* variable, Token::Value op); | 113 void BuildHoleCheckForVariableAssignment(Variable* variable, Token::Value op); |
| 113 | 114 |
| 114 // Build jump to targets[value], where | 115 // Build jump to targets[value], where |
| 115 // start_index <= value < start_index + size. | 116 // start_index <= value < start_index + size. |
| 116 void BuildIndexedJump(Register value, size_t start_index, size_t size, | 117 void BuildIndexedJump(Register value, size_t start_index, size_t size, |
| 117 ZoneVector<BytecodeLabel>& targets); | 118 ZoneVector<BytecodeLabel>& targets); |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 Handle<Name> prototype_string_; | 226 Handle<Name> prototype_string_; |
| 226 Handle<FixedArray> empty_fixed_array_; | 227 Handle<FixedArray> empty_fixed_array_; |
| 227 const AstRawString* undefined_string_; | 228 const AstRawString* undefined_string_; |
| 228 }; | 229 }; |
| 229 | 230 |
| 230 } // namespace interpreter | 231 } // namespace interpreter |
| 231 } // namespace internal | 232 } // namespace internal |
| 232 } // namespace v8 | 233 } // namespace v8 |
| 233 | 234 |
| 234 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ | 235 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ |
| OLD | NEW |