OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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/lithium.h" | 5 #include "src/lithium.h" |
6 | 6 |
7 #include "src/v8.h" | 7 #include "src/v8.h" |
8 | 8 |
9 #include "src/scopes.h" | 9 #include "src/scopes.h" |
10 | 10 |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 } | 265 } |
266 } | 266 } |
267 | 267 |
268 | 268 |
269 LChunk::LChunk(CompilationInfo* info, HGraph* graph) | 269 LChunk::LChunk(CompilationInfo* info, HGraph* graph) |
270 : spill_slot_count_(0), | 270 : spill_slot_count_(0), |
271 info_(info), | 271 info_(info), |
272 graph_(graph), | 272 graph_(graph), |
273 instructions_(32, info->zone()), | 273 instructions_(32, info->zone()), |
274 pointer_maps_(8, info->zone()), | 274 pointer_maps_(8, info->zone()), |
275 inlined_closures_(1, info->zone()), | 275 inlined_functions_(1, info->zone()), |
276 deprecation_dependencies_(MapLess(), MapAllocator(info->zone())), | 276 deprecation_dependencies_(MapLess(), MapAllocator(info->zone())), |
277 stability_dependencies_(MapLess(), MapAllocator(info->zone())) {} | 277 stability_dependencies_(MapLess(), MapAllocator(info->zone())) {} |
278 | 278 |
279 | 279 |
280 LLabel* LChunk::GetLabel(int block_id) const { | 280 LLabel* LChunk::GetLabel(int block_id) const { |
281 HBasicBlock* block = graph_->blocks()->at(block_id); | 281 HBasicBlock* block = graph_->blocks()->at(block_id); |
282 int first_instruction = block->first_instruction_index(); | 282 int first_instruction = block->first_instruction_index(); |
283 return LLabel::cast(instructions_[first_instruction]); | 283 return LLabel::cast(instructions_[first_instruction]); |
284 } | 284 } |
285 | 285 |
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
720 | 720 |
721 | 721 |
722 LPhase::~LPhase() { | 722 LPhase::~LPhase() { |
723 if (ShouldProduceTraceOutput()) { | 723 if (ShouldProduceTraceOutput()) { |
724 isolate()->GetHTracer()->TraceLithium(name(), chunk_); | 724 isolate()->GetHTracer()->TraceLithium(name(), chunk_); |
725 } | 725 } |
726 } | 726 } |
727 | 727 |
728 | 728 |
729 } } // namespace v8::internal | 729 } } // namespace v8::internal |
OLD | NEW |