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

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: Fix merge problems Created 4 years, 9 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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 void LPointerMap::PrintTo(StringStream* stream) { 243 void LPointerMap::PrintTo(StringStream* stream) {
244 stream->Add("{"); 244 stream->Add("{");
245 for (int i = 0; i < pointer_operands_.length(); ++i) { 245 for (int i = 0; i < pointer_operands_.length(); ++i) {
246 if (i != 0) stream->Add(";"); 246 if (i != 0) stream->Add(";");
247 pointer_operands_[i]->PrintTo(stream); 247 pointer_operands_[i]->PrintTo(stream);
248 } 248 }
249 stream->Add("}"); 249 stream->Add("}");
250 } 250 }
251 251
252 LChunk::LChunk(CompilationInfo* info, HGraph* graph) 252 LChunk::LChunk(CompilationInfo* info, HGraph* graph)
253 : base_frame_slots_(StandardFrameConstants::kFixedFrameSize / kPointerSize), 253 : base_frame_slots_(info->IsStub()
254 ? TypedFrameConstants::kFixedSlotCount
255 : StandardFrameConstants::kFixedSlotCount),
254 current_frame_slots_(base_frame_slots_), 256 current_frame_slots_(base_frame_slots_),
255 info_(info), 257 info_(info),
256 graph_(graph), 258 graph_(graph),
257 instructions_(32, info->zone()), 259 instructions_(32, info->zone()),
258 pointer_maps_(8, info->zone()), 260 pointer_maps_(8, info->zone()),
259 inlined_functions_(1, info->zone()), 261 inlined_functions_(1, info->zone()),
260 deprecation_dependencies_(32, info->zone()), 262 deprecation_dependencies_(32, info->zone()),
261 stability_dependencies_(8, info->zone()) {} 263 stability_dependencies_(8, info->zone()) {}
262 264
263 LLabel* LChunk::GetLabel(int block_id) const { 265 LLabel* LChunk::GetLabel(int block_id) const {
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
647 649
648 LPhase::~LPhase() { 650 LPhase::~LPhase() {
649 if (ShouldProduceTraceOutput()) { 651 if (ShouldProduceTraceOutput()) {
650 isolate()->GetHTracer()->TraceLithium(name(), chunk_); 652 isolate()->GetHTracer()->TraceLithium(name(), chunk_);
651 } 653 }
652 } 654 }
653 655
654 656
655 } // namespace internal 657 } // namespace internal
656 } // namespace v8 658 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698