| 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_H_ | 5 #ifndef V8_INTERPRETER_INTERPRETER_H_ |
| 6 #define V8_INTERPRETER_INTERPRETER_H_ | 6 #define V8_INTERPRETER_INTERPRETER_H_ |
| 7 | 7 |
| 8 // Clients of this interface shouldn't depend on lots of interpreter internals. | 8 // Clients of this interface shouldn't depend on lots of interpreter internals. |
| 9 // Do not include anything from src/interpreter other than | 9 // Do not include anything from src/interpreter other than |
| 10 // src/interpreter/bytecodes.h here! | 10 // src/interpreter/bytecodes.h here! |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 BYTECODE_LIST(DECLARE_BYTECODE_HANDLER_GENERATOR) | 66 BYTECODE_LIST(DECLARE_BYTECODE_HANDLER_GENERATOR) |
| 67 #undef DECLARE_BYTECODE_HANDLER_GENERATOR | 67 #undef DECLARE_BYTECODE_HANDLER_GENERATOR |
| 68 | 68 |
| 69 // Generates code to perform the binary operations via |callable|. | 69 // Generates code to perform the binary operations via |callable|. |
| 70 void DoBinaryOp(Callable callable, InterpreterAssembler* assembler); | 70 void DoBinaryOp(Callable callable, InterpreterAssembler* assembler); |
| 71 | 71 |
| 72 // Generates code to perform the binary operations via |function_id|. | 72 // Generates code to perform the binary operations via |function_id|. |
| 73 void DoBinaryOp(Runtime::FunctionId function_id, | 73 void DoBinaryOp(Runtime::FunctionId function_id, |
| 74 InterpreterAssembler* assembler); | 74 InterpreterAssembler* assembler); |
| 75 | 75 |
| 76 // Generates code to perform the count operations via |function_id|. | 76 // Generates code to perform the count operations via |callable|. |
| 77 void DoCountOp(Runtime::FunctionId function_id, | 77 void DoCountOp(Callable callable, InterpreterAssembler* assembler); |
| 78 InterpreterAssembler* assembler); | |
| 79 | 78 |
| 80 // Generates code to perform the comparison operation associated with | 79 // Generates code to perform the comparison operation associated with |
| 81 // |compare_op|. | 80 // |compare_op|. |
| 82 void DoCompareOp(Token::Value compare_op, InterpreterAssembler* assembler); | 81 void DoCompareOp(Token::Value compare_op, InterpreterAssembler* assembler); |
| 83 | 82 |
| 84 // Generates code to load a constant from the constant pool. | 83 // Generates code to load a constant from the constant pool. |
| 85 void DoLoadConstant(InterpreterAssembler* assembler); | 84 void DoLoadConstant(InterpreterAssembler* assembler); |
| 86 | 85 |
| 87 // Generates code to perform a global load via |ic|. | 86 // Generates code to perform a global load via |ic|. |
| 88 void DoLoadGlobal(Callable ic, InterpreterAssembler* assembler); | 87 void DoLoadGlobal(Callable ic, InterpreterAssembler* assembler); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 113 | 112 |
| 114 // Generates code to perform a JS runtime call. | 113 // Generates code to perform a JS runtime call. |
| 115 void DoCallJSRuntimeCommon(InterpreterAssembler* assembler); | 114 void DoCallJSRuntimeCommon(InterpreterAssembler* assembler); |
| 116 | 115 |
| 117 // Generates code to perform a constructor call. | 116 // Generates code to perform a constructor call. |
| 118 void DoCallConstruct(InterpreterAssembler* assembler); | 117 void DoCallConstruct(InterpreterAssembler* assembler); |
| 119 | 118 |
| 120 // Generates code to perform a type conversion. | 119 // Generates code to perform a type conversion. |
| 121 void DoTypeConversionOp(Callable callable, InterpreterAssembler* assembler); | 120 void DoTypeConversionOp(Callable callable, InterpreterAssembler* assembler); |
| 122 | 121 |
| 123 // Generates code ro create a literal via |function_id|. | 122 // Generates code to create a literal via |function_id|. |
| 124 void DoCreateLiteral(Runtime::FunctionId function_id, | 123 void DoCreateLiteral(Runtime::FunctionId function_id, |
| 125 InterpreterAssembler* assembler); | 124 InterpreterAssembler* assembler); |
| 126 | 125 |
| 127 // Generates code to perform delete via function_id. | 126 // Generates code to perform delete via function_id. |
| 128 void DoDelete(Runtime::FunctionId function_id, | 127 void DoDelete(Runtime::FunctionId function_id, |
| 129 InterpreterAssembler* assembler); | 128 InterpreterAssembler* assembler); |
| 130 | 129 |
| 131 // Generates code to perform a lookup slot load via |function_id|. | 130 // Generates code to perform a lookup slot load via |function_id|. |
| 132 void DoLoadLookupSlot(Runtime::FunctionId function_id, | 131 void DoLoadLookupSlot(Runtime::FunctionId function_id, |
| 133 InterpreterAssembler* assembler); | 132 InterpreterAssembler* assembler); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 150 v8::base::SmartArrayPointer<uintptr_t> bytecode_dispatch_count_table_; | 149 v8::base::SmartArrayPointer<uintptr_t> bytecode_dispatch_count_table_; |
| 151 | 150 |
| 152 DISALLOW_COPY_AND_ASSIGN(Interpreter); | 151 DISALLOW_COPY_AND_ASSIGN(Interpreter); |
| 153 }; | 152 }; |
| 154 | 153 |
| 155 } // namespace interpreter | 154 } // namespace interpreter |
| 156 } // namespace internal | 155 } // namespace internal |
| 157 } // namespace v8 | 156 } // namespace v8 |
| 158 | 157 |
| 159 #endif // V8_INTERPRETER_INTERPRETER_H_ | 158 #endif // V8_INTERPRETER_INTERPRETER_H_ |
| OLD | NEW |