| 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 void CallPrologue(); | 174 void CallPrologue(); |
| 175 void CallEpilogue(); | 175 void CallEpilogue(); |
| 176 | 176 |
| 177 // Returns the offset of register |index| relative to RegisterFilePointer(). | 177 // Returns the offset of register |index| relative to RegisterFilePointer(). |
| 178 Node* RegisterFrameOffset(Node* index); | 178 Node* RegisterFrameOffset(Node* index); |
| 179 | 179 |
| 180 Node* SmiShiftBitsConstant(); | 180 Node* SmiShiftBitsConstant(); |
| 181 Node* BytecodeOperand(int operand_index); | 181 Node* BytecodeOperand(int operand_index); |
| 182 Node* BytecodeOperandSignExtended(int operand_index); | 182 Node* BytecodeOperandSignExtended(int operand_index); |
| 183 Node* BytecodeOperandShort(int operand_index); | 183 Node* BytecodeOperandShort(int operand_index); |
| 184 Node* BytecodeOperandShortSignExtended(int operand_index); |
| 184 | 185 |
| 185 Node* CallN(CallDescriptor* descriptor, Node* code_target, Node** args); | 186 Node* CallN(CallDescriptor* descriptor, Node* code_target, Node** args); |
| 186 Node* CallIC(CallInterfaceDescriptor descriptor, Node* target, Node** args); | 187 Node* CallIC(CallInterfaceDescriptor descriptor, Node* target, Node** args); |
| 187 | 188 |
| 188 // Returns BytecodeOffset() advanced by delta bytecodes. Note: this does not | 189 // Returns BytecodeOffset() advanced by delta bytecodes. Note: this does not |
| 189 // update BytecodeOffset() itself. | 190 // update BytecodeOffset() itself. |
| 190 Node* Advance(int delta); | 191 Node* Advance(int delta); |
| 191 Node* Advance(Node* delta); | 192 Node* Advance(Node* delta); |
| 192 | 193 |
| 193 // Starts next instruction dispatch at |new_bytecode_offset|. | 194 // Starts next instruction dispatch at |new_bytecode_offset|. |
| (...skipping 16 matching lines...) Expand all Loading... |
| 210 bool code_generated_; | 211 bool code_generated_; |
| 211 | 212 |
| 212 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); | 213 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); |
| 213 }; | 214 }; |
| 214 | 215 |
| 215 } // namespace compiler | 216 } // namespace compiler |
| 216 } // namespace internal | 217 } // namespace internal |
| 217 } // namespace v8 | 218 } // namespace v8 |
| 218 | 219 |
| 219 #endif // V8_COMPILER_INTERPRETER_ASSEMBLER_H_ | 220 #endif // V8_COMPILER_INTERPRETER_ASSEMBLER_H_ |
| OLD | NEW |