| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 compiler::Node* LoadContextSlot(compiler::Node* context, | 85 compiler::Node* LoadContextSlot(compiler::Node* context, |
| 86 compiler::Node* slot_index); | 86 compiler::Node* slot_index); |
| 87 // Stores |value| into |slot_index| of |context|. | 87 // Stores |value| into |slot_index| of |context|. |
| 88 compiler::Node* StoreContextSlot(compiler::Node* context, | 88 compiler::Node* StoreContextSlot(compiler::Node* context, |
| 89 compiler::Node* slot_index, | 89 compiler::Node* slot_index, |
| 90 compiler::Node* value); | 90 compiler::Node* value); |
| 91 | 91 |
| 92 // Load the TypeFeedbackVector for the current function. | 92 // Load the TypeFeedbackVector for the current function. |
| 93 compiler::Node* LoadTypeFeedbackVector(); | 93 compiler::Node* LoadTypeFeedbackVector(); |
| 94 | 94 |
| 95 // Increment the call count for a CALL_IC or construct call. |
| 96 // The call count is located at feedback_vector[slot_id + 1]. |
| 97 compiler::Node* IncrementCallCount(compiler::Node* type_feedback_vector, |
| 98 compiler::Node* slot_id); |
| 99 |
| 95 // Call JSFunction or Callable |function| with |arg_count| | 100 // Call JSFunction or Callable |function| with |arg_count| |
| 96 // arguments (not including receiver) and the first argument | 101 // arguments (not including receiver) and the first argument |
| 97 // located at |first_arg|. Type feedback is collected in the | 102 // located at |first_arg|. Type feedback is collected in the |
| 98 // slot at index |slot_id|. | 103 // slot at index |slot_id|. |
| 99 compiler::Node* CallJSWithFeedback(compiler::Node* function, | 104 compiler::Node* CallJSWithFeedback(compiler::Node* function, |
| 100 compiler::Node* context, | 105 compiler::Node* context, |
| 101 compiler::Node* first_arg, | 106 compiler::Node* first_arg, |
| 102 compiler::Node* arg_count, | 107 compiler::Node* arg_count, |
| 103 compiler::Node* slot_id, | 108 compiler::Node* slot_id, |
| 104 compiler::Node* type_feedback_vector, | 109 compiler::Node* type_feedback_vector, |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 compiler::Node* stack_pointer_before_call_; | 296 compiler::Node* stack_pointer_before_call_; |
| 292 | 297 |
| 293 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); | 298 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); |
| 294 }; | 299 }; |
| 295 | 300 |
| 296 } // namespace interpreter | 301 } // namespace interpreter |
| 297 } // namespace internal | 302 } // namespace internal |
| 298 } // namespace v8 | 303 } // namespace v8 |
| 299 | 304 |
| 300 #endif // V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_ | 305 #endif // V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_ |
| OLD | NEW |