Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: src/interpreter/interpreter.h

Issue 1830593002: [Interpreter] Move BytecodeHasHandler() from Interpreter to Bytecodes. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@fix-codelog
Patch Set: Expand function doc. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/interpreter/bytecodes.cc ('k') | src/interpreter/interpreter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 void IterateDispatchTable(ObjectVisitor* v); 46 void IterateDispatchTable(ObjectVisitor* v);
47 47
48 // Disassembler support (only useful with ENABLE_DISASSEMBLER defined). 48 // Disassembler support (only useful with ENABLE_DISASSEMBLER defined).
49 void TraceCodegen(Handle<Code> code); 49 void TraceCodegen(Handle<Code> code);
50 const char* LookupNameOfBytecodeHandler(Code* code); 50 const char* LookupNameOfBytecodeHandler(Code* code);
51 51
52 Address dispatch_table_address() { 52 Address dispatch_table_address() {
53 return reinterpret_cast<Address>(&dispatch_table_[0]); 53 return reinterpret_cast<Address>(&dispatch_table_[0]);
54 } 54 }
55 55
56 // Returns true if a handler is generated for a bytecode at a given
57 // operand scale.
58 static bool BytecodeHasHandler(Bytecode bytecode, OperandScale operand_scale);
59
60 private: 56 private:
61 // Bytecode handler generator functions. 57 // Bytecode handler generator functions.
62 #define DECLARE_BYTECODE_HANDLER_GENERATOR(Name, ...) \ 58 #define DECLARE_BYTECODE_HANDLER_GENERATOR(Name, ...) \
63 void Do##Name(InterpreterAssembler* assembler); 59 void Do##Name(InterpreterAssembler* assembler);
64 BYTECODE_LIST(DECLARE_BYTECODE_HANDLER_GENERATOR) 60 BYTECODE_LIST(DECLARE_BYTECODE_HANDLER_GENERATOR)
65 #undef DECLARE_BYTECODE_HANDLER_GENERATOR 61 #undef DECLARE_BYTECODE_HANDLER_GENERATOR
66 62
67 // Generates code to perform the binary operations via |callable|. 63 // Generates code to perform the binary operations via |callable|.
68 void DoBinaryOp(Callable callable, InterpreterAssembler* assembler); 64 void DoBinaryOp(Callable callable, InterpreterAssembler* assembler);
69 65
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 Code* dispatch_table_[kDispatchTableSize]; 143 Code* dispatch_table_[kDispatchTableSize];
148 144
149 DISALLOW_COPY_AND_ASSIGN(Interpreter); 145 DISALLOW_COPY_AND_ASSIGN(Interpreter);
150 }; 146 };
151 147
152 } // namespace interpreter 148 } // namespace interpreter
153 } // namespace internal 149 } // namespace internal
154 } // namespace v8 150 } // namespace v8
155 151
156 #endif // V8_INTERPRETER_INTERPRETER_H_ 152 #endif // V8_INTERPRETER_INTERPRETER_H_
OLDNEW
« no previous file with comments | « src/interpreter/bytecodes.cc ('k') | src/interpreter/interpreter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698