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

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

Issue 2498073002: [refactoring] Split CodeAssemblerState out of CodeAssembler (Closed)
Patch Set: one more attempt Created 4 years, 1 month 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/interpreter.cc ('k') | src/interpreter/interpreter-assembler.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_ASSEMBLER_H_ 5 #ifndef V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_
6 #define V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_ 6 #define V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/builtins/builtins.h" 9 #include "src/builtins/builtins.h"
10 #include "src/code-stub-assembler.h" 10 #include "src/code-stub-assembler.h"
11 #include "src/frames.h" 11 #include "src/frames.h"
12 #include "src/globals.h" 12 #include "src/globals.h"
13 #include "src/interpreter/bytecode-register.h" 13 #include "src/interpreter/bytecode-register.h"
14 #include "src/interpreter/bytecodes.h" 14 #include "src/interpreter/bytecodes.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 namespace interpreter { 19 namespace interpreter {
20 20
21 class V8_EXPORT_PRIVATE InterpreterAssembler : public CodeStubAssembler { 21 class V8_EXPORT_PRIVATE InterpreterAssembler : public CodeStubAssembler {
22 public: 22 public:
23 InterpreterAssembler(Isolate* isolate, Zone* zone, Bytecode bytecode, 23 InterpreterAssembler(compiler::CodeAssemblerState* state, Bytecode bytecode,
24 OperandScale operand_scale); 24 OperandScale operand_scale);
25 virtual ~InterpreterAssembler(); 25 virtual ~InterpreterAssembler();
26 26
27 // Returns the count immediate for bytecode operand |operand_index| in the 27 // Returns the count immediate for bytecode operand |operand_index| in the
28 // current bytecode. 28 // current bytecode.
29 compiler::Node* BytecodeOperandCount(int operand_index); 29 compiler::Node* BytecodeOperandCount(int operand_index);
30 // Returns the 8-bit flag for bytecode operand |operand_index| in the 30 // Returns the 8-bit flag for bytecode operand |operand_index| in the
31 // current bytecode. 31 // current bytecode.
32 compiler::Node* BytecodeOperandFlag(int operand_index); 32 compiler::Node* BytecodeOperandFlag(int operand_index);
33 // Returns the index immediate for bytecode operand |operand_index| in the 33 // Returns the index immediate for bytecode operand |operand_index| in the
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 compiler::Node* stack_pointer_before_call_; 300 compiler::Node* stack_pointer_before_call_;
301 301
302 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); 302 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler);
303 }; 303 };
304 304
305 } // namespace interpreter 305 } // namespace interpreter
306 } // namespace internal 306 } // namespace internal
307 } // namespace v8 307 } // namespace v8
308 308
309 #endif // V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_ 309 #endif // V8_INTERPRETER_INTERPRETER_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/interpreter/interpreter.cc ('k') | src/interpreter/interpreter-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698