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), | 44 masm_(info->isolate(), NULL, 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 636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
691 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) { | 691 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) { |
692 gen->ools_ = this; | 692 gen->ools_ = this; |
693 } | 693 } |
694 | 694 |
695 | 695 |
696 OutOfLineCode::~OutOfLineCode() {} | 696 OutOfLineCode::~OutOfLineCode() {} |
697 | 697 |
698 } // namespace compiler | 698 } // namespace compiler |
699 } // namespace internal | 699 } // namespace internal |
700 } // namespace v8 | 700 } // namespace v8 |
OLD | NEW |