Chromium Code Reviews| Index: src/interpreter/interpreter.h |
| diff --git a/src/interpreter/interpreter.h b/src/interpreter/interpreter.h |
| index ea50faa02d882c91bee2cdd2912a2cd6e7486db7..7f624cc057f20af968e1803ada4e88d17c596094 100644 |
| --- a/src/interpreter/interpreter.h |
| +++ b/src/interpreter/interpreter.h |
| @@ -53,6 +53,14 @@ class Interpreter { |
| return reinterpret_cast<Address>(&dispatch_table_[0]); |
| } |
| + uintptr_t* handler_to_handler_dispatch_counters() { |
| + return handler_to_handler_dispatch_counters_.get(); |
| + } |
| + |
| + // Returns true if a handler is generated for a bytecode at a given |
| + // operand scale. |
| + static bool BytecodeHasHandler(Bytecode bytecode, OperandScale operand_scale); |
|
rmcilroy
2016/04/08 11:24:44
Remove
Stefano Sanfilippo
2016/04/08 14:42:44
Done.
|
| + |
| private: |
| // Bytecode handler generator functions. |
| #define DECLARE_BYTECODE_HANDLER_GENERATOR(Name, ...) \ |
| @@ -141,6 +149,7 @@ class Interpreter { |
| Isolate* isolate_; |
| Code* dispatch_table_[kDispatchTableSize]; |
| + v8::base::SmartArrayPointer<uintptr_t> handler_to_handler_dispatch_counters_; |
|
rmcilroy
2016/04/08 11:24:44
/s/handler_to_handler_dispatch_counters/bytecode_d
Stefano Sanfilippo
2016/04/08 14:42:44
Done.
|
| DISALLOW_COPY_AND_ASSIGN(Interpreter); |
| }; |