| 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! |
| 11 #include "src/base/macros.h" | 11 #include "src/base/macros.h" |
| 12 #include "src/builtins.h" | 12 #include "src/builtins.h" |
| 13 #include "src/interpreter/bytecodes.h" | 13 #include "src/interpreter/bytecodes.h" |
| 14 #include "src/parsing/token.h" | 14 #include "src/parsing/token.h" |
| 15 #include "src/runtime/runtime.h" | 15 #include "src/runtime/runtime.h" |
| 16 | 16 |
| 17 namespace v8 { | 17 namespace v8 { |
| 18 namespace internal { | 18 namespace internal { |
| 19 | 19 |
| 20 class Isolate; | 20 class Isolate; |
| 21 class Callable; | 21 class Callable; |
| 22 class CompilationInfo; | 22 class CompilationInfo; |
| 23 | 23 |
| 24 namespace compiler { |
| 25 class Node; |
| 26 } // namespace compiler |
| 27 |
| 24 namespace interpreter { | 28 namespace interpreter { |
| 25 | 29 |
| 26 class InterpreterAssembler; | 30 class InterpreterAssembler; |
| 27 | 31 |
| 28 class Interpreter { | 32 class Interpreter { |
| 29 public: | 33 public: |
| 30 explicit Interpreter(Isolate* isolate); | 34 explicit Interpreter(Isolate* isolate); |
| 31 virtual ~Interpreter() {} | 35 virtual ~Interpreter() {} |
| 32 | 36 |
| 33 // Initializes the interpreter dispatch table. | 37 // Initializes the interpreter dispatch table. |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 | 120 |
| 117 // Generates code to perform a JS runtime call. | 121 // Generates code to perform a JS runtime call. |
| 118 void DoCallJSRuntimeCommon(InterpreterAssembler* assembler); | 122 void DoCallJSRuntimeCommon(InterpreterAssembler* assembler); |
| 119 | 123 |
| 120 // Generates code to perform a constructor call. | 124 // Generates code to perform a constructor call. |
| 121 void DoCallConstruct(InterpreterAssembler* assembler); | 125 void DoCallConstruct(InterpreterAssembler* assembler); |
| 122 | 126 |
| 123 // Generates code to perform a type conversion. | 127 // Generates code to perform a type conversion. |
| 124 void DoTypeConversionOp(Callable callable, InterpreterAssembler* assembler); | 128 void DoTypeConversionOp(Callable callable, InterpreterAssembler* assembler); |
| 125 | 129 |
| 130 // Generates code to perform logical-not on boolean |value|. |
| 131 void DoLogicalNotOp(compiler::Node* value, InterpreterAssembler* assembler); |
| 132 |
| 126 // Generates code to perform delete via function_id. | 133 // Generates code to perform delete via function_id. |
| 127 void DoDelete(Runtime::FunctionId function_id, | 134 void DoDelete(Runtime::FunctionId function_id, |
| 128 InterpreterAssembler* assembler); | 135 InterpreterAssembler* assembler); |
| 129 | 136 |
| 130 // Generates code to perform a lookup slot load via |function_id|. | 137 // Generates code to perform a lookup slot load via |function_id|. |
| 131 void DoLoadLookupSlot(Runtime::FunctionId function_id, | 138 void DoLoadLookupSlot(Runtime::FunctionId function_id, |
| 132 InterpreterAssembler* assembler); | 139 InterpreterAssembler* assembler); |
| 133 | 140 |
| 134 // Generates code to perform a lookup slot store depending on |language_mode|. | 141 // Generates code to perform a lookup slot store depending on |language_mode|. |
| 135 void DoStoreLookupSlot(LanguageMode language_mode, | 142 void DoStoreLookupSlot(LanguageMode language_mode, |
| (...skipping 16 matching lines...) Expand all Loading... |
| 152 v8::base::SmartArrayPointer<uintptr_t> bytecode_dispatch_counters_table_; | 159 v8::base::SmartArrayPointer<uintptr_t> bytecode_dispatch_counters_table_; |
| 153 | 160 |
| 154 DISALLOW_COPY_AND_ASSIGN(Interpreter); | 161 DISALLOW_COPY_AND_ASSIGN(Interpreter); |
| 155 }; | 162 }; |
| 156 | 163 |
| 157 } // namespace interpreter | 164 } // namespace interpreter |
| 158 } // namespace internal | 165 } // namespace internal |
| 159 } // namespace v8 | 166 } // namespace v8 |
| 160 | 167 |
| 161 #endif // V8_INTERPRETER_INTERPRETER_H_ | 168 #endif // V8_INTERPRETER_INTERPRETER_H_ |
| OLD | NEW |