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-array-writer.h" | 9 #include "src/interpreter/bytecode-array-writer.h" |
10 #include "src/interpreter/bytecode-register-allocator.h" | 10 #include "src/interpreter/bytecode-register-allocator.h" |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 // Constant loads to accumulator. | 78 // Constant loads to accumulator. |
79 BytecodeArrayBuilder& LoadLiteral(v8::internal::Smi* value); | 79 BytecodeArrayBuilder& LoadLiteral(v8::internal::Smi* value); |
80 BytecodeArrayBuilder& LoadLiteral(Handle<Object> object); | 80 BytecodeArrayBuilder& LoadLiteral(Handle<Object> object); |
81 BytecodeArrayBuilder& LoadUndefined(); | 81 BytecodeArrayBuilder& LoadUndefined(); |
82 BytecodeArrayBuilder& LoadNull(); | 82 BytecodeArrayBuilder& LoadNull(); |
83 BytecodeArrayBuilder& LoadTheHole(); | 83 BytecodeArrayBuilder& LoadTheHole(); |
84 BytecodeArrayBuilder& LoadTrue(); | 84 BytecodeArrayBuilder& LoadTrue(); |
85 BytecodeArrayBuilder& LoadFalse(); | 85 BytecodeArrayBuilder& LoadFalse(); |
86 | 86 |
87 // Global loads to the accumulator and stores from the accumulator. | 87 // Global loads to the accumulator and stores from the accumulator. |
88 BytecodeArrayBuilder& LoadGlobal(const Handle<String> name, int feedback_slot, | 88 BytecodeArrayBuilder& LoadGlobal(int feedback_slot, TypeofMode typeof_mode); |
89 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); |
96 | 95 |
97 // Stores the object in the accumulator into |slot_index| of |context|. | 96 // Stores the object in the accumulator into |slot_index| of |context|. |
98 BytecodeArrayBuilder& StoreContextSlot(Register context, int slot_index); | 97 BytecodeArrayBuilder& StoreContextSlot(Register context, int slot_index); |
99 | 98 |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 BytecodeSourceInfo latest_source_info_; | 367 BytecodeSourceInfo latest_source_info_; |
369 | 368 |
370 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayBuilder); | 369 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayBuilder); |
371 }; | 370 }; |
372 | 371 |
373 } // namespace interpreter | 372 } // namespace interpreter |
374 } // namespace internal | 373 } // namespace internal |
375 } // namespace v8 | 374 } // namespace v8 |
376 | 375 |
377 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ | 376 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ |
OLD | NEW |