| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 // |opt_receiver_out| register will have the receiver stored to it | 88 // |opt_receiver_out| register will have the receiver stored to it |
| 89 // if it's a valid register. The loaded value is placed in the | 89 // if it's a valid register. The loaded value is placed in the |
| 90 // accumulator. | 90 // accumulator. |
| 91 void VisitNamedSuperPropertyLoad(Property* property, | 91 void VisitNamedSuperPropertyLoad(Property* property, |
| 92 Register opt_receiver_out); | 92 Register opt_receiver_out); |
| 93 | 93 |
| 94 void VisitPropertyLoad(Register obj, Property* expr); | 94 void VisitPropertyLoad(Register obj, Property* expr); |
| 95 void VisitPropertyLoadForAccumulator(Register obj, Property* expr); | 95 void VisitPropertyLoadForAccumulator(Register obj, Property* expr); |
| 96 | 96 |
| 97 void BuildVariableLoad(Variable* variable, FeedbackVectorSlot slot, | 97 void BuildVariableLoad(Variable* variable, FeedbackVectorSlot slot, |
| 98 bool needs_hole_check, | 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, FeedbackVectorSlot slot, bool needs_hole_check, | 101 Variable* variable, FeedbackVectorSlot slot, |
| 102 HoleCheckMode hole_check_mode, |
| 102 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF); | 103 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF); |
| 103 void BuildVariableAssignment(Variable* variable, Token::Value op, | 104 void BuildVariableAssignment(Variable* variable, Token::Value op, |
| 104 FeedbackVectorSlot slot, bool needs_hole_check); | 105 FeedbackVectorSlot slot, |
| 106 HoleCheckMode hole_check_mode); |
| 105 | 107 |
| 106 void BuildReturn(); | 108 void BuildReturn(); |
| 107 void BuildReThrow(); | 109 void BuildReThrow(); |
| 108 void BuildAbort(BailoutReason bailout_reason); | 110 void BuildAbort(BailoutReason bailout_reason); |
| 109 void BuildThrowIfHole(Handle<String> name); | 111 void BuildThrowIfHole(Handle<String> name); |
| 110 void BuildThrowIfNotHole(Handle<String> name); | 112 void BuildThrowIfNotHole(Handle<String> name); |
| 111 void BuildThrowReferenceError(Handle<String> name); | 113 void BuildThrowReferenceError(Handle<String> name); |
| 112 void BuildHoleCheckForVariableAssignment(Variable* variable, Token::Value op); | 114 void BuildHoleCheckForVariableAssignment(Variable* variable, Token::Value op); |
| 113 | 115 |
| 114 // Build jump to targets[value], where | 116 // Build jump to targets[value], where |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 | 216 |
| 215 Handle<Name> home_object_symbol_; | 217 Handle<Name> home_object_symbol_; |
| 216 Handle<Name> prototype_string_; | 218 Handle<Name> prototype_string_; |
| 217 }; | 219 }; |
| 218 | 220 |
| 219 } // namespace interpreter | 221 } // namespace interpreter |
| 220 } // namespace internal | 222 } // namespace internal |
| 221 } // namespace v8 | 223 } // namespace v8 |
| 222 | 224 |
| 223 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ | 225 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ |
| OLD | NEW |