| 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/base/compiler-specific.h" | 9 #include "src/base/compiler-specific.h" |
| 10 #include "src/globals.h" | 10 #include "src/globals.h" |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 BytecodeArrayBuilder& LoadConstantPoolEntry(size_t entry); | 77 BytecodeArrayBuilder& LoadConstantPoolEntry(size_t entry); |
| 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 | 85 |
| 86 // Global loads to the accumulator and stores from the accumulator. | 86 // Global loads to the accumulator and stores from the accumulator. |
| 87 BytecodeArrayBuilder& LoadGlobal(int feedback_slot, TypeofMode typeof_mode); | 87 BytecodeArrayBuilder& LoadGlobal(const Handle<String> name, int feedback_slot, |
| 88 TypeofMode typeof_mode); |
| 88 BytecodeArrayBuilder& StoreGlobal(const Handle<String> name, | 89 BytecodeArrayBuilder& StoreGlobal(const Handle<String> name, |
| 89 int feedback_slot, | 90 int feedback_slot, |
| 90 LanguageMode language_mode); | 91 LanguageMode language_mode); |
| 91 | 92 |
| 92 // Load the object at |slot_index| at |depth| in the context chain starting | 93 // Load the object at |slot_index| at |depth| in the context chain starting |
| 93 // with |context| into the accumulator. | 94 // with |context| into the accumulator. |
| 94 BytecodeArrayBuilder& LoadContextSlot(Register context, int slot_index, | 95 BytecodeArrayBuilder& LoadContextSlot(Register context, int slot_index, |
| 95 int depth); | 96 int depth); |
| 96 | 97 |
| 97 // Stores the object in the accumulator into |slot_index| at |depth| in the | 98 // Stores the object in the accumulator into |slot_index| at |depth| in the |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 static int const kNoFeedbackSlot = 0; | 416 static int const kNoFeedbackSlot = 0; |
| 416 | 417 |
| 417 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayBuilder); | 418 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayBuilder); |
| 418 }; | 419 }; |
| 419 | 420 |
| 420 } // namespace interpreter | 421 } // namespace interpreter |
| 421 } // namespace internal | 422 } // namespace internal |
| 422 } // namespace v8 | 423 } // namespace v8 |
| 423 | 424 |
| 424 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ | 425 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ |
| OLD | NEW |