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

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

Issue 2502293002: Reland of [refactoring] Split CodeAssemblerState out of CodeAssembler (Closed)
Patch Set: fix 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-assembler.h ('k') | src/isolate.h » ('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 #include "src/interpreter/interpreter-assembler.h" 5 #include "src/interpreter/interpreter-assembler.h"
6 6
7 #include <limits> 7 #include <limits>
8 #include <ostream> 8 #include <ostream>
9 9
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
11 #include "src/frames.h" 11 #include "src/frames.h"
12 #include "src/interface-descriptors.h" 12 #include "src/interface-descriptors.h"
13 #include "src/interpreter/bytecodes.h" 13 #include "src/interpreter/bytecodes.h"
14 #include "src/interpreter/interpreter.h" 14 #include "src/interpreter/interpreter.h"
15 #include "src/machine-type.h" 15 #include "src/machine-type.h"
16 #include "src/macro-assembler.h" 16 #include "src/macro-assembler.h"
17 #include "src/zone/zone.h" 17 #include "src/zone/zone.h"
18 18
19 namespace v8 { 19 namespace v8 {
20 namespace internal { 20 namespace internal {
21 namespace interpreter { 21 namespace interpreter {
22 22
23 using compiler::CodeAssemblerState;
23 using compiler::Node; 24 using compiler::Node;
24 25
25 InterpreterAssembler::InterpreterAssembler(Isolate* isolate, Zone* zone, 26 InterpreterAssembler::InterpreterAssembler(CodeAssemblerState* state,
26 Bytecode bytecode, 27 Bytecode bytecode,
27 OperandScale operand_scale) 28 OperandScale operand_scale)
28 : CodeStubAssembler(isolate, zone, InterpreterDispatchDescriptor(isolate), 29 : CodeStubAssembler(state),
29 Code::ComputeFlags(Code::BYTECODE_HANDLER),
30 Bytecodes::ToString(bytecode),
31 Bytecodes::ReturnCount(bytecode)),
32 bytecode_(bytecode), 30 bytecode_(bytecode),
33 operand_scale_(operand_scale), 31 operand_scale_(operand_scale),
34 bytecode_offset_(this, MachineType::PointerRepresentation()), 32 bytecode_offset_(this, MachineType::PointerRepresentation()),
35 interpreted_frame_pointer_(this, MachineType::PointerRepresentation()), 33 interpreted_frame_pointer_(this, MachineType::PointerRepresentation()),
36 accumulator_(this, MachineRepresentation::kTagged), 34 accumulator_(this, MachineRepresentation::kTagged),
37 accumulator_use_(AccumulatorUse::kNone), 35 accumulator_use_(AccumulatorUse::kNone),
38 made_call_(false), 36 made_call_(false),
39 disable_stack_check_across_call_(false), 37 disable_stack_check_across_call_(false),
40 stack_pointer_before_call_(nullptr) { 38 stack_pointer_before_call_(nullptr) {
41 accumulator_.Bind(Parameter(InterpreterDispatchDescriptor::kAccumulator)); 39 accumulator_.Bind(Parameter(InterpreterDispatchDescriptor::kAccumulator));
(...skipping 1290 matching lines...) Expand 10 before | Expand all | Expand 10 after
1332 Goto(&loop); 1330 Goto(&loop);
1333 } 1331 }
1334 Bind(&done_loop); 1332 Bind(&done_loop);
1335 1333
1336 return array; 1334 return array;
1337 } 1335 }
1338 1336
1339 } // namespace interpreter 1337 } // namespace interpreter
1340 } // namespace internal 1338 } // namespace internal
1341 } // namespace v8 1339 } // namespace v8
OLDNEW
« no previous file with comments | « src/interpreter/interpreter-assembler.h ('k') | src/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698