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

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

Issue 1696043002: [runtime] Unify and simplify how frames are marked (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Tweaks Created 4 years, 10 months 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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
643 645
644 LPhase::~LPhase() { 646 LPhase::~LPhase() {
645 if (ShouldProduceTraceOutput()) { 647 if (ShouldProduceTraceOutput()) {
646 isolate()->GetHTracer()->TraceLithium(name(), chunk_); 648 isolate()->GetHTracer()->TraceLithium(name(), chunk_);
647 } 649 }
648 } 650 }
649 651
650 652
651 } // namespace internal 653 } // namespace internal
652 } // namespace v8 654 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698