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/compiler/code-generator-impl.h" | 7 #include "src/compiler/code-generator-impl.h" |
8 #include "src/compiler/linkage.h" | 8 #include "src/compiler/linkage.h" |
9 #include "src/compiler/pipeline.h" | 9 #include "src/compiler/pipeline.h" |
10 | 10 |
11 namespace v8 { | 11 namespace v8 { |
12 namespace internal { | 12 namespace internal { |
13 namespace compiler { | 13 namespace compiler { |
14 | 14 |
15 CodeGenerator::CodeGenerator(InstructionSequence* code) | 15 CodeGenerator::CodeGenerator(Frame* frame, Linkage* linkage, |
16 : code_(code), | 16 InstructionSequence* code) |
| 17 : frame_(frame), |
| 18 linkage_(linkage), |
| 19 code_(code), |
17 current_block_(BasicBlock::RpoNumber::Invalid()), | 20 current_block_(BasicBlock::RpoNumber::Invalid()), |
18 current_source_position_(SourcePosition::Invalid()), | 21 current_source_position_(SourcePosition::Invalid()), |
19 masm_(code->zone()->isolate(), NULL, 0), | 22 masm_(code->zone()->isolate(), NULL, 0), |
20 resolver_(this), | 23 resolver_(this), |
21 safepoints_(code->zone()), | 24 safepoints_(code->zone()), |
22 deoptimization_states_(code->zone()), | 25 deoptimization_states_(code->zone()), |
23 deoptimization_literals_(code->zone()), | 26 deoptimization_literals_(code->zone()), |
24 translations_(code->zone()), | 27 translations_(code->zone()), |
25 last_lazy_deopt_pc_(0) {} | 28 last_lazy_deopt_pc_(0) {} |
26 | 29 |
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
505 } | 508 } |
506 | 509 |
507 | 510 |
508 void CodeGenerator::AddNopForSmiCodeInlining() { UNIMPLEMENTED(); } | 511 void CodeGenerator::AddNopForSmiCodeInlining() { UNIMPLEMENTED(); } |
509 | 512 |
510 #endif // !V8_TURBOFAN_BACKEND | 513 #endif // !V8_TURBOFAN_BACKEND |
511 | 514 |
512 } // namespace compiler | 515 } // namespace compiler |
513 } // namespace internal | 516 } // namespace internal |
514 } // namespace v8 | 517 } // namespace v8 |
OLD | NEW |