| 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/crankshaft/lithium.h" | 5 #include "src/crankshaft/lithium.h" |
| 6 | 6 |
| 7 #include "src/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
| 8 | 8 |
| 9 #if V8_TARGET_ARCH_IA32 | 9 #if V8_TARGET_ARCH_IA32 |
| 10 #include "src/crankshaft/ia32/lithium-ia32.h" // NOLINT | 10 #include "src/crankshaft/ia32/lithium-ia32.h" // NOLINT |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 void LPointerMap::PrintTo(StringStream* stream) { | 240 void LPointerMap::PrintTo(StringStream* stream) { |
| 241 stream->Add("{"); | 241 stream->Add("{"); |
| 242 for (int i = 0; i < pointer_operands_.length(); ++i) { | 242 for (int i = 0; i < pointer_operands_.length(); ++i) { |
| 243 if (i != 0) stream->Add(";"); | 243 if (i != 0) stream->Add(";"); |
| 244 pointer_operands_[i]->PrintTo(stream); | 244 pointer_operands_[i]->PrintTo(stream); |
| 245 } | 245 } |
| 246 stream->Add("}"); | 246 stream->Add("}"); |
| 247 } | 247 } |
| 248 | 248 |
| 249 LChunk::LChunk(CompilationInfo* info, HGraph* graph) | 249 LChunk::LChunk(CompilationInfo* info, HGraph* graph) |
| 250 : base_frame_slots_(StandardFrameConstants::kFixedFrameSize / kPointerSize), | 250 : base_frame_slots_(info->IsStub() |
| 251 ? TypedFrameConstants::kFixedSlotCount |
| 252 : StandardFrameConstants::kFixedSlotCount), |
| 251 current_frame_slots_(base_frame_slots_), | 253 current_frame_slots_(base_frame_slots_), |
| 252 info_(info), | 254 info_(info), |
| 253 graph_(graph), | 255 graph_(graph), |
| 254 instructions_(32, info->zone()), | 256 instructions_(32, info->zone()), |
| 255 pointer_maps_(8, info->zone()), | 257 pointer_maps_(8, info->zone()), |
| 256 inlined_functions_(1, info->zone()), | 258 inlined_functions_(1, info->zone()), |
| 257 deprecation_dependencies_(32, info->zone()), | 259 deprecation_dependencies_(32, info->zone()), |
| 258 stability_dependencies_(8, info->zone()) {} | 260 stability_dependencies_(8, info->zone()) {} |
| 259 | 261 |
| 260 LLabel* LChunk::GetLabel(int block_id) const { | 262 LLabel* LChunk::GetLabel(int block_id) const { |
| (...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 644 | 646 |
| 645 LPhase::~LPhase() { | 647 LPhase::~LPhase() { |
| 646 if (ShouldProduceTraceOutput()) { | 648 if (ShouldProduceTraceOutput()) { |
| 647 isolate()->GetHTracer()->TraceLithium(name(), chunk_); | 649 isolate()->GetHTracer()->TraceLithium(name(), chunk_); |
| 648 } | 650 } |
| 649 } | 651 } |
| 650 | 652 |
| 651 | 653 |
| 652 } // namespace internal | 654 } // namespace internal |
| 653 } // namespace v8 | 655 } // namespace v8 |
| OLD | NEW |