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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 // Get dispatch table index of bytecode. | 139 // Get dispatch table index of bytecode. |
140 static size_t GetDispatchTableIndex(Bytecode bytecode, | 140 static size_t GetDispatchTableIndex(Bytecode bytecode, |
141 OperandScale operand_scale); | 141 OperandScale operand_scale); |
142 | 142 |
143 bool IsDispatchTableInitialized(); | 143 bool IsDispatchTableInitialized(); |
144 | 144 |
145 static const int kNumberOfWideVariants = 3; | 145 static const int kNumberOfWideVariants = 3; |
146 static const int kDispatchTableSize = kNumberOfWideVariants * (kMaxUInt8 + 1); | 146 static const int kDispatchTableSize = kNumberOfWideVariants * (kMaxUInt8 + 1); |
147 | 147 |
148 Isolate* isolate_; | 148 Isolate* isolate_; |
149 Code* dispatch_table_[kDispatchTableSize]; | 149 Address dispatch_table_[kDispatchTableSize]; |
150 v8::base::SmartArrayPointer<uintptr_t> bytecode_dispatch_count_table_; | 150 v8::base::SmartArrayPointer<uintptr_t> bytecode_dispatch_count_table_; |
151 | 151 |
152 DISALLOW_COPY_AND_ASSIGN(Interpreter); | 152 DISALLOW_COPY_AND_ASSIGN(Interpreter); |
153 }; | 153 }; |
154 | 154 |
155 } // namespace interpreter | 155 } // namespace interpreter |
156 } // namespace internal | 156 } // namespace internal |
157 } // namespace v8 | 157 } // namespace v8 |
158 | 158 |
159 #endif // V8_INTERPRETER_INTERPRETER_H_ | 159 #endif // V8_INTERPRETER_INTERPRETER_H_ |
OLD | NEW |