OLD | NEW |
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; | |
24 using compiler::Node; | 23 using compiler::Node; |
25 | 24 |
26 InterpreterAssembler::InterpreterAssembler(CodeAssemblerState* state, | 25 InterpreterAssembler::InterpreterAssembler(Isolate* isolate, Zone* zone, |
27 Bytecode bytecode, | 26 Bytecode bytecode, |
28 OperandScale operand_scale) | 27 OperandScale operand_scale) |
29 : CodeStubAssembler(state), | 28 : CodeStubAssembler(isolate, zone, InterpreterDispatchDescriptor(isolate), |
| 29 Code::ComputeFlags(Code::BYTECODE_HANDLER), |
| 30 Bytecodes::ToString(bytecode), |
| 31 Bytecodes::ReturnCount(bytecode)), |
30 bytecode_(bytecode), | 32 bytecode_(bytecode), |
31 operand_scale_(operand_scale), | 33 operand_scale_(operand_scale), |
32 bytecode_offset_(this, MachineType::PointerRepresentation()), | 34 bytecode_offset_(this, MachineType::PointerRepresentation()), |
33 interpreted_frame_pointer_(this, MachineType::PointerRepresentation()), | 35 interpreted_frame_pointer_(this, MachineType::PointerRepresentation()), |
34 accumulator_(this, MachineRepresentation::kTagged), | 36 accumulator_(this, MachineRepresentation::kTagged), |
35 accumulator_use_(AccumulatorUse::kNone), | 37 accumulator_use_(AccumulatorUse::kNone), |
36 made_call_(false), | 38 made_call_(false), |
37 disable_stack_check_across_call_(false), | 39 disable_stack_check_across_call_(false), |
38 stack_pointer_before_call_(nullptr) { | 40 stack_pointer_before_call_(nullptr) { |
39 accumulator_.Bind(Parameter(InterpreterDispatchDescriptor::kAccumulator)); | 41 accumulator_.Bind(Parameter(InterpreterDispatchDescriptor::kAccumulator)); |
(...skipping 1290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1330 Goto(&loop); | 1332 Goto(&loop); |
1331 } | 1333 } |
1332 Bind(&done_loop); | 1334 Bind(&done_loop); |
1333 | 1335 |
1334 return array; | 1336 return array; |
1335 } | 1337 } |
1336 | 1338 |
1337 } // namespace interpreter | 1339 } // namespace interpreter |
1338 } // namespace internal | 1340 } // namespace internal |
1339 } // namespace v8 | 1341 } // namespace v8 |
OLD | NEW |