| 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" |
| 11 #include "src/base/smart-pointers.h" | 11 #include "src/base/smart-pointers.h" |
| 12 #include "src/builtins.h" | 12 #include "src/builtins.h" |
| 13 #include "src/frames.h" | 13 #include "src/frames.h" |
| 14 #include "src/interpreter/bytecodes.h" | 14 #include "src/interpreter/bytecodes.h" |
| 15 | 15 |
| 16 namespace v8 { | 16 namespace v8 { |
| 17 namespace internal { | 17 namespace internal { |
| 18 | 18 |
| 19 class CallInterfaceDescriptor; |
| 19 class Isolate; | 20 class Isolate; |
| 20 class Zone; | 21 class Zone; |
| 21 | 22 |
| 22 namespace compiler { | 23 namespace compiler { |
| 23 | 24 |
| 24 class CallDescriptor; | 25 class CallDescriptor; |
| 25 class Graph; | 26 class Graph; |
| 26 class Node; | 27 class Node; |
| 27 class Operator; | 28 class Operator; |
| 28 class RawMachineAssembler; | 29 class RawMachineAssembler; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 | 70 |
| 70 // Load a field from an object on the heap. | 71 // Load a field from an object on the heap. |
| 71 Node* LoadObjectField(Node* object, int offset); | 72 Node* LoadObjectField(Node* object, int offset); |
| 72 | 73 |
| 73 // Load |slot_index| from a context. | 74 // Load |slot_index| from a context. |
| 74 Node* LoadContextSlot(Node* context, int slot_index); | 75 Node* LoadContextSlot(Node* context, int slot_index); |
| 75 | 76 |
| 76 // Load |slot_index| from the current context. | 77 // Load |slot_index| from the current context. |
| 77 Node* LoadContextSlot(int slot_index); | 78 Node* LoadContextSlot(int slot_index); |
| 78 | 79 |
| 80 // Load the TypeFeedbackVector for the current function. |
| 81 Node* LoadTypeFeedbackVector(); |
| 82 |
| 83 // Call an IC code stub. |
| 84 Node* CallIC(CallInterfaceDescriptor descriptor, Node* target, Node* arg1, |
| 85 Node* arg2, Node* arg3, Node* arg4); |
| 86 |
| 79 // Call JS builtin. | 87 // Call JS builtin. |
| 80 Node* CallJSBuiltin(int context_index, Node* receiver); | 88 Node* CallJSBuiltin(int context_index, Node* receiver); |
| 81 Node* CallJSBuiltin(int context_index, Node* receiver, Node* arg1); | 89 Node* CallJSBuiltin(int context_index, Node* receiver, Node* arg1); |
| 82 | 90 |
| 83 // Returns from the function. | 91 // Returns from the function. |
| 84 void Return(); | 92 void Return(); |
| 85 | 93 |
| 86 // Dispatch to the bytecode. | 94 // Dispatch to the bytecode. |
| 87 void Dispatch(); | 95 void Dispatch(); |
| 88 | 96 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 bool code_generated_; | 143 bool code_generated_; |
| 136 | 144 |
| 137 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); | 145 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); |
| 138 }; | 146 }; |
| 139 | 147 |
| 140 } // namespace interpreter | 148 } // namespace interpreter |
| 141 } // namespace internal | 149 } // namespace internal |
| 142 } // namespace v8 | 150 } // namespace v8 |
| 143 | 151 |
| 144 #endif // V8_COMPILER_INTERPRETER_ASSEMBLER_H_ | 152 #endif // V8_COMPILER_INTERPRETER_ASSEMBLER_H_ |
| OLD | NEW |