| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 void DoBinaryOp(Callable callable, InterpreterAssembler* assembler); | 74 void DoBinaryOp(Callable callable, InterpreterAssembler* assembler); |
| 75 | 75 |
| 76 // Generates code to perform the binary operations via |function_id|. | 76 // Generates code to perform the binary operations via |function_id|. |
| 77 void DoBinaryOp(Runtime::FunctionId function_id, | 77 void DoBinaryOp(Runtime::FunctionId function_id, |
| 78 InterpreterAssembler* assembler); | 78 InterpreterAssembler* assembler); |
| 79 | 79 |
| 80 // Generates code to perform the binary operations via |Generator|. | 80 // Generates code to perform the binary operations via |Generator|. |
| 81 template <class Generator> | 81 template <class Generator> |
| 82 void DoBinaryOp(InterpreterAssembler* assembler); | 82 void DoBinaryOp(InterpreterAssembler* assembler); |
| 83 | 83 |
| 84 // Generates code to perform the count operations via |function_id|. | 84 // Generates code to perform the count operations via |callable|. |
| 85 void DoCountOp(Runtime::FunctionId function_id, | 85 void DoCountOp(Callable callable, InterpreterAssembler* assembler); |
| 86 InterpreterAssembler* assembler); | |
| 87 | 86 |
| 88 // Generates code to perform the comparison operation associated with | 87 // Generates code to perform the comparison operation associated with |
| 89 // |compare_op|. | 88 // |compare_op|. |
| 90 void DoCompareOp(Token::Value compare_op, InterpreterAssembler* assembler); | 89 void DoCompareOp(Token::Value compare_op, InterpreterAssembler* assembler); |
| 91 | 90 |
| 92 // Generates code to load a constant from the constant pool. | 91 // Generates code to load a constant from the constant pool. |
| 93 void DoLoadConstant(InterpreterAssembler* assembler); | 92 void DoLoadConstant(InterpreterAssembler* assembler); |
| 94 | 93 |
| 95 // Generates code to perform a global load via |ic|. | 94 // Generates code to perform a global load via |ic|. |
| 96 void DoLoadGlobal(Callable ic, InterpreterAssembler* assembler); | 95 void DoLoadGlobal(Callable ic, InterpreterAssembler* assembler); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 121 | 120 |
| 122 // Generates code to perform a JS runtime call. | 121 // Generates code to perform a JS runtime call. |
| 123 void DoCallJSRuntimeCommon(InterpreterAssembler* assembler); | 122 void DoCallJSRuntimeCommon(InterpreterAssembler* assembler); |
| 124 | 123 |
| 125 // Generates code to perform a constructor call. | 124 // Generates code to perform a constructor call. |
| 126 void DoCallConstruct(InterpreterAssembler* assembler); | 125 void DoCallConstruct(InterpreterAssembler* assembler); |
| 127 | 126 |
| 128 // Generates code to perform a type conversion. | 127 // Generates code to perform a type conversion. |
| 129 void DoTypeConversionOp(Callable callable, InterpreterAssembler* assembler); | 128 void DoTypeConversionOp(Callable callable, InterpreterAssembler* assembler); |
| 130 | 129 |
| 131 // Generates code ro create a literal via |function_id|. | 130 // Generates code to create a literal via |function_id|. |
| 132 void DoCreateLiteral(Runtime::FunctionId function_id, | 131 void DoCreateLiteral(Runtime::FunctionId function_id, |
| 133 InterpreterAssembler* assembler); | 132 InterpreterAssembler* assembler); |
| 134 | 133 |
| 135 // Generates code to perform delete via function_id. | 134 // Generates code to perform delete via function_id. |
| 136 void DoDelete(Runtime::FunctionId function_id, | 135 void DoDelete(Runtime::FunctionId function_id, |
| 137 InterpreterAssembler* assembler); | 136 InterpreterAssembler* assembler); |
| 138 | 137 |
| 139 // Generates code to perform a lookup slot load via |function_id|. | 138 // Generates code to perform a lookup slot load via |function_id|. |
| 140 void DoLoadLookupSlot(Runtime::FunctionId function_id, | 139 void DoLoadLookupSlot(Runtime::FunctionId function_id, |
| 141 InterpreterAssembler* assembler); | 140 InterpreterAssembler* assembler); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 158 v8::base::SmartArrayPointer<uintptr_t> bytecode_dispatch_count_table_; | 157 v8::base::SmartArrayPointer<uintptr_t> bytecode_dispatch_count_table_; |
| 159 | 158 |
| 160 DISALLOW_COPY_AND_ASSIGN(Interpreter); | 159 DISALLOW_COPY_AND_ASSIGN(Interpreter); |
| 161 }; | 160 }; |
| 162 | 161 |
| 163 } // namespace interpreter | 162 } // namespace interpreter |
| 164 } // namespace internal | 163 } // namespace internal |
| 165 } // namespace v8 | 164 } // namespace v8 |
| 166 | 165 |
| 167 #endif // V8_INTERPRETER_INTERPRETER_H_ | 166 #endif // V8_INTERPRETER_INTERPRETER_H_ |
| OLD | NEW |