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/base/adapters.h" | 8 #include "src/base/adapters.h" |
9 #include "src/compiler/code-generator-impl.h" | 9 #include "src/compiler/code-generator-impl.h" |
10 #include "src/compiler/linkage.h" | 10 #include "src/compiler/linkage.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 handlers_(code->zone()), | 47 handlers_(code->zone()), |
48 deoptimization_exits_(code->zone()), | 48 deoptimization_exits_(code->zone()), |
49 deoptimization_states_(code->zone()), | 49 deoptimization_states_(code->zone()), |
50 deoptimization_literals_(code->zone()), | 50 deoptimization_literals_(code->zone()), |
51 inlined_function_count_(0), | 51 inlined_function_count_(0), |
52 translations_(code->zone()), | 52 translations_(code->zone()), |
53 last_lazy_deopt_pc_(0), | 53 last_lazy_deopt_pc_(0), |
54 jump_tables_(nullptr), | 54 jump_tables_(nullptr), |
55 ools_(nullptr), | 55 ools_(nullptr), |
56 osr_pc_offset_(-1), | 56 osr_pc_offset_(-1), |
57 source_position_table_builder_(info->isolate(), zone()) { | 57 source_position_table_builder_(info->isolate(), code->zone(), |
| 58 info->SourcePositionRecordingMode()) { |
58 for (int i = 0; i < code->InstructionBlockCount(); ++i) { | 59 for (int i = 0; i < code->InstructionBlockCount(); ++i) { |
59 new (&labels_[i]) Label; | 60 new (&labels_[i]) Label; |
60 } | 61 } |
61 CreateFrameAccessState(frame); | 62 CreateFrameAccessState(frame); |
62 } | 63 } |
63 | 64 |
64 void CodeGenerator::CreateFrameAccessState(Frame* frame) { | 65 void CodeGenerator::CreateFrameAccessState(Frame* frame) { |
65 FinishFrame(frame); | 66 FinishFrame(frame); |
66 frame_access_state_ = new (code()->zone()) FrameAccessState(frame); | 67 frame_access_state_ = new (code()->zone()) FrameAccessState(frame); |
67 } | 68 } |
(...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
897 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) { | 898 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) { |
898 gen->ools_ = this; | 899 gen->ools_ = this; |
899 } | 900 } |
900 | 901 |
901 | 902 |
902 OutOfLineCode::~OutOfLineCode() {} | 903 OutOfLineCode::~OutOfLineCode() {} |
903 | 904 |
904 } // namespace compiler | 905 } // namespace compiler |
905 } // namespace internal | 906 } // namespace internal |
906 } // namespace v8 | 907 } // namespace v8 |
OLD | NEW |