Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(479)

Side by Side Diff: src/crankshaft/lithium.cc

Issue 2451853002: Uniform and precise source positions for inlining (Closed)
Patch Set: addressed comments Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 253
254 LChunk::LChunk(CompilationInfo* info, HGraph* graph) 254 LChunk::LChunk(CompilationInfo* info, HGraph* graph)
255 : base_frame_slots_(info->IsStub() 255 : base_frame_slots_(info->IsStub()
256 ? TypedFrameConstants::kFixedSlotCount 256 ? TypedFrameConstants::kFixedSlotCount
257 : StandardFrameConstants::kFixedSlotCount), 257 : StandardFrameConstants::kFixedSlotCount),
258 current_frame_slots_(base_frame_slots_), 258 current_frame_slots_(base_frame_slots_),
259 info_(info), 259 info_(info),
260 graph_(graph), 260 graph_(graph),
261 instructions_(32, info->zone()), 261 instructions_(32, info->zone()),
262 pointer_maps_(8, info->zone()), 262 pointer_maps_(8, info->zone()),
263 inlined_functions_(1, info->zone()),
264 deprecation_dependencies_(32, info->zone()), 263 deprecation_dependencies_(32, info->zone()),
265 stability_dependencies_(8, info->zone()) {} 264 stability_dependencies_(8, info->zone()) {}
266 265
267 LLabel* LChunk::GetLabel(int block_id) const { 266 LLabel* LChunk::GetLabel(int block_id) const {
268 HBasicBlock* block = graph_->blocks()->at(block_id); 267 HBasicBlock* block = graph_->blocks()->at(block_id);
269 int first_instruction = block->first_instruction_index(); 268 int first_instruction = block->first_instruction_index();
270 return LLabel::cast(instructions_[first_instruction]); 269 return LLabel::cast(instructions_[first_instruction]);
271 } 270 }
272 271
273 272
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after
720 719
721 LPhase::~LPhase() { 720 LPhase::~LPhase() {
722 if (ShouldProduceTraceOutput()) { 721 if (ShouldProduceTraceOutput()) {
723 isolate()->GetHTracer()->TraceLithium(name(), chunk_); 722 isolate()->GetHTracer()->TraceLithium(name(), chunk_);
724 } 723 }
725 } 724 }
726 725
727 726
728 } // namespace internal 727 } // namespace internal
729 } // namespace v8 728 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698