OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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/compiler/code-generator.h" | 5 #include "src/compiler/code-generator.h" |
6 | 6 |
7 #include "src/address-map.h" | 7 #include "src/address-map.h" |
8 #include "src/compiler/code-generator-impl.h" | 8 #include "src/compiler/code-generator-impl.h" |
9 #include "src/compiler/linkage.h" | 9 #include "src/compiler/linkage.h" |
10 #include "src/compiler/pipeline.h" | 10 #include "src/compiler/pipeline.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 | 34 |
35 CodeGenerator::CodeGenerator(Frame* frame, Linkage* linkage, | 35 CodeGenerator::CodeGenerator(Frame* frame, Linkage* linkage, |
36 InstructionSequence* code, CompilationInfo* info) | 36 InstructionSequence* code, CompilationInfo* info) |
37 : frame_access_state_(new (code->zone()) FrameAccessState(frame)), | 37 : frame_access_state_(new (code->zone()) FrameAccessState(frame)), |
38 linkage_(linkage), | 38 linkage_(linkage), |
39 code_(code), | 39 code_(code), |
40 info_(info), | 40 info_(info), |
41 labels_(zone()->NewArray<Label>(code->InstructionBlockCount())), | 41 labels_(zone()->NewArray<Label>(code->InstructionBlockCount())), |
42 current_block_(RpoNumber::Invalid()), | 42 current_block_(RpoNumber::Invalid()), |
43 current_source_position_(SourcePosition::Unknown()), | 43 current_source_position_(SourcePosition::Unknown()), |
44 masm_(info->isolate(), NULL, 0, CodeObjectRequired::kYes), | 44 masm_(info->isolate(), nullptr, 0, CodeObjectRequired::kYes), |
45 resolver_(this), | 45 resolver_(this), |
46 safepoints_(code->zone()), | 46 safepoints_(code->zone()), |
47 handlers_(code->zone()), | 47 handlers_(code->zone()), |
48 deoptimization_states_(code->zone()), | 48 deoptimization_states_(code->zone()), |
49 deoptimization_literals_(code->zone()), | 49 deoptimization_literals_(code->zone()), |
50 inlined_function_count_(0), | 50 inlined_function_count_(0), |
51 translations_(code->zone()), | 51 translations_(code->zone()), |
52 last_lazy_deopt_pc_(0), | 52 last_lazy_deopt_pc_(0), |
53 jump_tables_(nullptr), | 53 jump_tables_(nullptr), |
54 ools_(nullptr), | 54 ools_(nullptr), |
(...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
728 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) { | 728 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) { |
729 gen->ools_ = this; | 729 gen->ools_ = this; |
730 } | 730 } |
731 | 731 |
732 | 732 |
733 OutOfLineCode::~OutOfLineCode() {} | 733 OutOfLineCode::~OutOfLineCode() {} |
734 | 734 |
735 } // namespace compiler | 735 } // namespace compiler |
736 } // namespace internal | 736 } // namespace internal |
737 } // namespace v8 | 737 } // namespace v8 |
OLD | NEW |