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

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. Again. 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
« no previous file with comments | « src/interpreter/interpreter-assembler.h ('k') | tools/gyp/v8.gyp » ('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.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 bytecode_array_(this, MachineRepresentation::kTagged), 35 bytecode_array_(this, MachineRepresentation::kTagged),
37 disable_stack_check_across_call_(false), 36 disable_stack_check_across_call_(false),
38 stack_pointer_before_call_(nullptr) { 37 stack_pointer_before_call_(nullptr) {
39 accumulator_.Bind( 38 accumulator_.Bind(
40 Parameter(InterpreterDispatchDescriptor::kAccumulatorParameter)); 39 Parameter(InterpreterDispatchDescriptor::kAccumulatorParameter));
41 bytecode_array_.Bind( 40 bytecode_array_.Bind(
(...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after
726 V8_TARGET_ARCH_S390 725 V8_TARGET_ARCH_S390
727 return true; 726 return true;
728 #else 727 #else
729 #error "Unknown Architecture" 728 #error "Unknown Architecture"
730 #endif 729 #endif
731 } 730 }
732 731
733 } // namespace interpreter 732 } // namespace interpreter
734 } // namespace internal 733 } // namespace internal
735 } // namespace v8 734 } // namespace v8
OLDNEW
« no previous file with comments | « src/interpreter/interpreter-assembler.h ('k') | tools/gyp/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698