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

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

Issue 1875583003: Separate CodeAssembler and CodeStubAssembler (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix gn build Created 4 years, 8 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
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.h" 17 #include "src/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::Node; 23 using compiler::Node;
24 24
25 InterpreterAssembler::InterpreterAssembler(Isolate* isolate, Zone* zone, 25 InterpreterAssembler::InterpreterAssembler(Isolate* isolate, Zone* zone,
26 Bytecode bytecode, 26 Bytecode bytecode,
27 OperandScale operand_scale) 27 OperandScale operand_scale)
28 : compiler::CodeStubAssembler(isolate, zone, 28 : CodeStubAssembler(isolate, zone, InterpreterDispatchDescriptor(isolate),
29 InterpreterDispatchDescriptor(isolate), 29 Code::ComputeFlags(Code::BYTECODE_HANDLER),
30 Code::ComputeFlags(Code::BYTECODE_HANDLER), 30 Bytecodes::ToString(bytecode), 0),
31 Bytecodes::ToString(bytecode), 0),
32 bytecode_(bytecode), 31 bytecode_(bytecode),
33 operand_scale_(operand_scale), 32 operand_scale_(operand_scale),
34 accumulator_(this, MachineRepresentation::kTagged), 33 accumulator_(this, MachineRepresentation::kTagged),
35 accumulator_use_(AccumulatorUse::kNone), 34 accumulator_use_(AccumulatorUse::kNone),
36 context_(this, MachineRepresentation::kTagged), 35 context_(this, MachineRepresentation::kTagged),
37 bytecode_array_(this, MachineRepresentation::kTagged), 36 bytecode_array_(this, MachineRepresentation::kTagged),
38 disable_stack_check_across_call_(false), 37 disable_stack_check_across_call_(false),
39 stack_pointer_before_call_(nullptr) { 38 stack_pointer_before_call_(nullptr) {
40 accumulator_.Bind( 39 accumulator_.Bind(
41 Parameter(InterpreterDispatchDescriptor::kAccumulatorParameter)); 40 Parameter(InterpreterDispatchDescriptor::kAccumulatorParameter));
(...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after
722 V8_TARGET_ARCH_S390 721 V8_TARGET_ARCH_S390
723 return true; 722 return true;
724 #else 723 #else
725 #error "Unknown Architecture" 724 #error "Unknown Architecture"
726 #endif 725 #endif
727 } 726 }
728 727
729 } // namespace interpreter 728 } // namespace interpreter
730 } // namespace internal 729 } // namespace internal
731 } // namespace v8 730 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698