| 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_COMPILER_INTERPRETER_ASSEMBLER_H_ | 5 #ifndef V8_COMPILER_INTERPRETER_ASSEMBLER_H_ |
| 6 #define V8_COMPILER_INTERPRETER_ASSEMBLER_H_ | 6 #define V8_COMPILER_INTERPRETER_ASSEMBLER_H_ |
| 7 | 7 |
| 8 // Clients of this interface shouldn't depend on lots of compiler internals. | 8 // Clients of this interface shouldn't depend on lots of compiler internals. |
| 9 // Do not include anything from src/compiler here! | 9 // Do not include anything from src/compiler here! |
| 10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 | 95 |
| 96 // Load |slot_index| from |context|. | 96 // Load |slot_index| from |context|. |
| 97 Node* LoadContextSlot(Node* context, int slot_index); | 97 Node* LoadContextSlot(Node* context, int slot_index); |
| 98 Node* LoadContextSlot(Node* context, Node* slot_index); | 98 Node* LoadContextSlot(Node* context, Node* slot_index); |
| 99 // Stores |value| into |slot_index| of |context|. | 99 // Stores |value| into |slot_index| of |context|. |
| 100 Node* StoreContextSlot(Node* context, Node* slot_index, Node* value); | 100 Node* StoreContextSlot(Node* context, Node* slot_index, Node* value); |
| 101 | 101 |
| 102 // Load the TypeFeedbackVector for the current function. | 102 // Load the TypeFeedbackVector for the current function. |
| 103 Node* LoadTypeFeedbackVector(); | 103 Node* LoadTypeFeedbackVector(); |
| 104 | 104 |
| 105 // Project the output value at index |index| |
| 106 Node* Projection(int index, Node* node); |
| 107 |
| 105 // Call constructor |constructor| with |arg_count| arguments (not | 108 // Call constructor |constructor| with |arg_count| arguments (not |
| 106 // including receiver) and the first argument located at | 109 // including receiver) and the first argument located at |
| 107 // |first_arg|. The |new_target| is the same as the | 110 // |first_arg|. The |new_target| is the same as the |
| 108 // |constructor| for the new keyword, but differs for the super | 111 // |constructor| for the new keyword, but differs for the super |
| 109 // keyword. | 112 // keyword. |
| 110 Node* CallConstruct(Node* new_target, Node* constructor, Node* first_arg, | 113 Node* CallConstruct(Node* new_target, Node* constructor, Node* first_arg, |
| 111 Node* arg_count); | 114 Node* arg_count); |
| 112 | 115 |
| 113 // Call JSFunction or Callable |function| with |arg_count| | 116 // Call JSFunction or Callable |function| with |arg_count| |
| 114 // arguments (not including receiver) and the first argument | 117 // arguments (not including receiver) and the first argument |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 bool code_generated_; | 201 bool code_generated_; |
| 199 | 202 |
| 200 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); | 203 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); |
| 201 }; | 204 }; |
| 202 | 205 |
| 203 } // namespace compiler | 206 } // namespace compiler |
| 204 } // namespace internal | 207 } // namespace internal |
| 205 } // namespace v8 | 208 } // namespace v8 |
| 206 | 209 |
| 207 #endif // V8_COMPILER_INTERPRETER_ASSEMBLER_H_ | 210 #endif // V8_COMPILER_INTERPRETER_ASSEMBLER_H_ |
| OLD | NEW |