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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 | 116 |
113 // Generates code to perform a JS runtime call. | 117 // Generates code to perform a JS runtime call. |
114 void DoCallJSRuntimeCommon(InterpreterAssembler* assembler); | 118 void DoCallJSRuntimeCommon(InterpreterAssembler* assembler); |
115 | 119 |
116 // Generates code to perform a constructor call. | 120 // Generates code to perform a constructor call. |
117 void DoCallConstruct(InterpreterAssembler* assembler); | 121 void DoCallConstruct(InterpreterAssembler* assembler); |
118 | 122 |
119 // Generates code to perform a type conversion. | 123 // Generates code to perform a type conversion. |
120 void DoTypeConversionOp(Callable callable, InterpreterAssembler* assembler); | 124 void DoTypeConversionOp(Callable callable, InterpreterAssembler* assembler); |
121 | 125 |
| 126 // Generates code to perform logical-not on boolean |value|. |
| 127 void DoLogicalNotOp(compiler::Node* value, InterpreterAssembler* assembler); |
| 128 |
122 // Generates code to perform delete via function_id. | 129 // Generates code to perform delete via function_id. |
123 void DoDelete(Runtime::FunctionId function_id, | 130 void DoDelete(Runtime::FunctionId function_id, |
124 InterpreterAssembler* assembler); | 131 InterpreterAssembler* assembler); |
125 | 132 |
126 // Generates code to perform a lookup slot load via |function_id|. | 133 // Generates code to perform a lookup slot load via |function_id|. |
127 void DoLoadLookupSlot(Runtime::FunctionId function_id, | 134 void DoLoadLookupSlot(Runtime::FunctionId function_id, |
128 InterpreterAssembler* assembler); | 135 InterpreterAssembler* assembler); |
129 | 136 |
130 // Generates code to perform a lookup slot store depending on |language_mode|. | 137 // Generates code to perform a lookup slot store depending on |language_mode|. |
131 void DoStoreLookupSlot(LanguageMode language_mode, | 138 void DoStoreLookupSlot(LanguageMode language_mode, |
(...skipping 16 matching lines...) Expand all Loading... |
148 v8::base::SmartArrayPointer<uintptr_t> bytecode_dispatch_counters_table_; | 155 v8::base::SmartArrayPointer<uintptr_t> bytecode_dispatch_counters_table_; |
149 | 156 |
150 DISALLOW_COPY_AND_ASSIGN(Interpreter); | 157 DISALLOW_COPY_AND_ASSIGN(Interpreter); |
151 }; | 158 }; |
152 | 159 |
153 } // namespace interpreter | 160 } // namespace interpreter |
154 } // namespace internal | 161 } // namespace internal |
155 } // namespace v8 | 162 } // namespace v8 |
156 | 163 |
157 #endif // V8_INTERPRETER_INTERPRETER_H_ | 164 #endif // V8_INTERPRETER_INTERPRETER_H_ |
OLD | NEW |