| 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_INTERPRETER_ASSEMBLER_H_ | 5 #ifndef V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_ |
| 6 #define V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_ | 6 #define V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_ |
| 7 | 7 |
| 8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
| 9 #include "src/builtins/builtins.h" | 9 #include "src/builtins/builtins.h" |
| 10 #include "src/code-stub-assembler.h" | 10 #include "src/code-stub-assembler.h" |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 // Returns the location in memory of the register |reg_index| in the | 86 // Returns the location in memory of the register |reg_index| in the |
| 87 // interpreter register file. | 87 // interpreter register file. |
| 88 compiler::Node* RegisterLocation(compiler::Node* reg_index); | 88 compiler::Node* RegisterLocation(compiler::Node* reg_index); |
| 89 | 89 |
| 90 // Load constant at |index| in the constant pool. | 90 // Load constant at |index| in the constant pool. |
| 91 compiler::Node* LoadConstantPoolEntry(compiler::Node* index); | 91 compiler::Node* LoadConstantPoolEntry(compiler::Node* index); |
| 92 | 92 |
| 93 // Load and untag constant at |index| in the constant pool. | 93 // Load and untag constant at |index| in the constant pool. |
| 94 compiler::Node* LoadAndUntagConstantPoolEntry(compiler::Node* index); | 94 compiler::Node* LoadAndUntagConstantPoolEntry(compiler::Node* index); |
| 95 | 95 |
| 96 // Load |slot_index| from |context|. | |
| 97 compiler::Node* LoadContextSlot(compiler::Node* context, | |
| 98 compiler::Node* slot_index); | |
| 99 // Stores |value| into |slot_index| of |context|. | |
| 100 compiler::Node* StoreContextSlot(compiler::Node* context, | |
| 101 compiler::Node* slot_index, | |
| 102 compiler::Node* value); | |
| 103 | |
| 104 // Load the TypeFeedbackVector for the current function. | 96 // Load the TypeFeedbackVector for the current function. |
| 105 compiler::Node* LoadTypeFeedbackVector(); | 97 compiler::Node* LoadTypeFeedbackVector(); |
| 106 | 98 |
| 107 // Increment the call count for a CALL_IC or construct call. | 99 // Increment the call count for a CALL_IC or construct call. |
| 108 // The call count is located at feedback_vector[slot_id + 1]. | 100 // The call count is located at feedback_vector[slot_id + 1]. |
| 109 compiler::Node* IncrementCallCount(compiler::Node* type_feedback_vector, | 101 compiler::Node* IncrementCallCount(compiler::Node* type_feedback_vector, |
| 110 compiler::Node* slot_id); | 102 compiler::Node* slot_id); |
| 111 | 103 |
| 112 // Call JSFunction or Callable |function| with |arg_count| | 104 // Call JSFunction or Callable |function| with |arg_count| |
| 113 // arguments (not including receiver) and the first argument | 105 // arguments (not including receiver) and the first argument |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 compiler::Node* stack_pointer_before_call_; | 300 compiler::Node* stack_pointer_before_call_; |
| 309 | 301 |
| 310 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); | 302 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); |
| 311 }; | 303 }; |
| 312 | 304 |
| 313 } // namespace interpreter | 305 } // namespace interpreter |
| 314 } // namespace internal | 306 } // namespace internal |
| 315 } // namespace v8 | 307 } // namespace v8 |
| 316 | 308 |
| 317 #endif // V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_ | 309 #endif // V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_ |
| OLD | NEW |