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

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

Issue 2451853002: Uniform and precise source positions for inlining (Closed)
Patch Set: fixed gcmole issue 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 #include "src/codegen.h" 8 #include "src/codegen.h"
9 9
10 #if V8_TARGET_ARCH_IA32 10 #if V8_TARGET_ARCH_IA32
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 254
255 LChunk::LChunk(CompilationInfo* info, HGraph* graph) 255 LChunk::LChunk(CompilationInfo* info, HGraph* graph)
256 : base_frame_slots_(info->IsStub() 256 : base_frame_slots_(info->IsStub()
257 ? TypedFrameConstants::kFixedSlotCount 257 ? TypedFrameConstants::kFixedSlotCount
258 : StandardFrameConstants::kFixedSlotCount), 258 : StandardFrameConstants::kFixedSlotCount),
259 current_frame_slots_(base_frame_slots_), 259 current_frame_slots_(base_frame_slots_),
260 info_(info), 260 info_(info),
261 graph_(graph), 261 graph_(graph),
262 instructions_(32, info->zone()), 262 instructions_(32, info->zone()),
263 pointer_maps_(8, info->zone()), 263 pointer_maps_(8, info->zone()),
264 inlined_functions_(1, info->zone()),
265 deprecation_dependencies_(32, info->zone()), 264 deprecation_dependencies_(32, info->zone()),
266 stability_dependencies_(8, info->zone()) {} 265 stability_dependencies_(8, info->zone()) {}
267 266
268 LLabel* LChunk::GetLabel(int block_id) const { 267 LLabel* LChunk::GetLabel(int block_id) const {
269 HBasicBlock* block = graph_->blocks()->at(block_id); 268 HBasicBlock* block = graph_->blocks()->at(block_id);
270 int first_instruction = block->first_instruction_index(); 269 int first_instruction = block->first_instruction_index();
271 return LLabel::cast(instructions_[first_instruction]); 270 return LLabel::cast(instructions_[first_instruction]);
272 } 271 }
273 272
274 273
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after
721 720
722 LPhase::~LPhase() { 721 LPhase::~LPhase() {
723 if (ShouldProduceTraceOutput()) { 722 if (ShouldProduceTraceOutput()) {
724 isolate()->GetHTracer()->TraceLithium(name(), chunk_); 723 isolate()->GetHTracer()->TraceLithium(name(), chunk_);
725 } 724 }
726 } 725 }
727 726
728 727
729 } // namespace internal 728 } // namespace internal
730 } // namespace v8 729 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698