| 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_ARRAY_BUILDER_H_ | 5 #ifndef V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ |
| 6 #define V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ | 6 #define V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ |
| 7 | 7 |
| 8 #include "src/ast/ast.h" | 8 #include "src/ast/ast.h" |
| 9 #include "src/interpreter/bytecode-register-allocator.h" | 9 #include "src/interpreter/bytecode-register-allocator.h" |
| 10 #include "src/interpreter/bytecodes.h" | 10 #include "src/interpreter/bytecodes.h" |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 // Constant loads to accumulator. | 88 // Constant loads to accumulator. |
| 89 BytecodeArrayBuilder& LoadLiteral(v8::internal::Smi* value); | 89 BytecodeArrayBuilder& LoadLiteral(v8::internal::Smi* value); |
| 90 BytecodeArrayBuilder& LoadLiteral(Handle<Object> object); | 90 BytecodeArrayBuilder& LoadLiteral(Handle<Object> object); |
| 91 BytecodeArrayBuilder& LoadUndefined(); | 91 BytecodeArrayBuilder& LoadUndefined(); |
| 92 BytecodeArrayBuilder& LoadNull(); | 92 BytecodeArrayBuilder& LoadNull(); |
| 93 BytecodeArrayBuilder& LoadTheHole(); | 93 BytecodeArrayBuilder& LoadTheHole(); |
| 94 BytecodeArrayBuilder& LoadTrue(); | 94 BytecodeArrayBuilder& LoadTrue(); |
| 95 BytecodeArrayBuilder& LoadFalse(); | 95 BytecodeArrayBuilder& LoadFalse(); |
| 96 BytecodeArrayBuilder& LoadBooleanConstant(bool value); | 96 BytecodeArrayBuilder& LoadBooleanConstant(bool value); |
| 97 | 97 |
| 98 // Load object prototype (or initial map). |
| 99 BytecodeArrayBuilder& LoadPrototypeOrInitialMap(); |
| 100 |
| 98 // Global loads to the accumulator and stores from the accumulator. | 101 // Global loads to the accumulator and stores from the accumulator. |
| 99 BytecodeArrayBuilder& LoadGlobal(const Handle<String> name, int feedback_slot, | 102 BytecodeArrayBuilder& LoadGlobal(const Handle<String> name, int feedback_slot, |
| 100 LanguageMode language_mode, | 103 LanguageMode language_mode, |
| 101 TypeofMode typeof_mode); | 104 TypeofMode typeof_mode); |
| 102 BytecodeArrayBuilder& StoreGlobal(const Handle<String> name, | 105 BytecodeArrayBuilder& StoreGlobal(const Handle<String> name, |
| 103 int feedback_slot, | 106 int feedback_slot, |
| 104 LanguageMode language_mode); | 107 LanguageMode language_mode); |
| 105 | 108 |
| 106 // Load the object at |slot_index| in |context| into the accumulator. | 109 // Load the object at |slot_index| in |context| into the accumulator. |
| 107 BytecodeArrayBuilder& LoadContextSlot(Register context, int slot_index); | 110 BytecodeArrayBuilder& LoadContextSlot(Register context, int slot_index); |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 413 size_t offset_; | 416 size_t offset_; |
| 414 | 417 |
| 415 friend class BytecodeArrayBuilder; | 418 friend class BytecodeArrayBuilder; |
| 416 }; | 419 }; |
| 417 | 420 |
| 418 } // namespace interpreter | 421 } // namespace interpreter |
| 419 } // namespace internal | 422 } // namespace internal |
| 420 } // namespace v8 | 423 } // namespace v8 |
| 421 | 424 |
| 422 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ | 425 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ |
| OLD | NEW |