| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 bool TemporaryRegisterIsLive(Register reg) const; | 75 bool TemporaryRegisterIsLive(Register reg) const; |
| 76 | 76 |
| 77 // Constant loads to accumulator. | 77 // Constant loads to accumulator. |
| 78 BytecodeArrayBuilder& LoadLiteral(v8::internal::Smi* value); | 78 BytecodeArrayBuilder& LoadLiteral(v8::internal::Smi* value); |
| 79 BytecodeArrayBuilder& LoadLiteral(Handle<Object> object); | 79 BytecodeArrayBuilder& LoadLiteral(Handle<Object> object); |
| 80 BytecodeArrayBuilder& LoadUndefined(); | 80 BytecodeArrayBuilder& LoadUndefined(); |
| 81 BytecodeArrayBuilder& LoadNull(); | 81 BytecodeArrayBuilder& LoadNull(); |
| 82 BytecodeArrayBuilder& LoadTheHole(); | 82 BytecodeArrayBuilder& LoadTheHole(); |
| 83 BytecodeArrayBuilder& LoadTrue(); | 83 BytecodeArrayBuilder& LoadTrue(); |
| 84 BytecodeArrayBuilder& LoadFalse(); | 84 BytecodeArrayBuilder& LoadFalse(); |
| 85 BytecodeArrayBuilder& LoadBooleanConstant(bool value); | |
| 86 | 85 |
| 87 // Global loads to the accumulator and stores from the accumulator. | 86 // Global loads to the accumulator and stores from the accumulator. |
| 88 BytecodeArrayBuilder& LoadGlobal(const Handle<String> name, int feedback_slot, | 87 BytecodeArrayBuilder& LoadGlobal(const Handle<String> name, int feedback_slot, |
| 89 TypeofMode typeof_mode); | 88 TypeofMode typeof_mode); |
| 90 BytecodeArrayBuilder& StoreGlobal(const Handle<String> name, | 89 BytecodeArrayBuilder& StoreGlobal(const Handle<String> name, |
| 91 int feedback_slot, | 90 int feedback_slot, |
| 92 LanguageMode language_mode); | 91 LanguageMode language_mode); |
| 93 | 92 |
| 94 // Load the object at |slot_index| in |context| into the accumulator. | 93 // Load the object at |slot_index| in |context| into the accumulator. |
| 95 BytecodeArrayBuilder& LoadContextSlot(Register context, int slot_index); | 94 BytecodeArrayBuilder& LoadContextSlot(Register context, int slot_index); |
| (...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 size_t offset_; | 418 size_t offset_; |
| 420 | 419 |
| 421 friend class BytecodeArrayBuilder; | 420 friend class BytecodeArrayBuilder; |
| 422 }; | 421 }; |
| 423 | 422 |
| 424 } // namespace interpreter | 423 } // namespace interpreter |
| 425 } // namespace internal | 424 } // namespace internal |
| 426 } // namespace v8 | 425 } // namespace v8 |
| 427 | 426 |
| 428 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ | 427 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ |
| OLD | NEW |