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

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

Issue 1476763002: Make whether or not a Code object should be created by masm explicit (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: enum class FTW Created 5 years 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
« no previous file with comments | « src/compiler/code-generator.cc ('k') | src/deoptimizer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/scopes.h" 7 #include "src/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 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 } 495 }
496 496
497 chunk->set_allocated_double_registers( 497 chunk->set_allocated_double_registers(
498 allocator.assigned_double_registers()); 498 allocator.assigned_double_registers());
499 499
500 return chunk; 500 return chunk;
501 } 501 }
502 502
503 503
504 Handle<Code> LChunk::Codegen() { 504 Handle<Code> LChunk::Codegen() {
505 MacroAssembler assembler(info()->isolate(), NULL, 0); 505 MacroAssembler assembler(info()->isolate(), NULL, 0,
506 CodeObjectRequired::kYes);
506 LOG_CODE_EVENT(info()->isolate(), 507 LOG_CODE_EVENT(info()->isolate(),
507 CodeStartLinePosInfoRecordEvent( 508 CodeStartLinePosInfoRecordEvent(
508 assembler.positions_recorder())); 509 assembler.positions_recorder()));
509 // Code serializer only takes unoptimized code. 510 // Code serializer only takes unoptimized code.
510 DCHECK(!info()->will_serialize()); 511 DCHECK(!info()->will_serialize());
511 LCodeGen generator(this, &assembler, info()); 512 LCodeGen generator(this, &assembler, info());
512 513
513 MarkEmptyBlocks(); 514 MarkEmptyBlocks();
514 515
515 if (generator.GenerateCode()) { 516 if (generator.GenerateCode()) {
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 705
705 LPhase::~LPhase() { 706 LPhase::~LPhase() {
706 if (ShouldProduceTraceOutput()) { 707 if (ShouldProduceTraceOutput()) {
707 isolate()->GetHTracer()->TraceLithium(name(), chunk_); 708 isolate()->GetHTracer()->TraceLithium(name(), chunk_);
708 } 709 }
709 } 710 }
710 711
711 712
712 } // namespace internal 713 } // namespace internal
713 } // namespace v8 714 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/code-generator.cc ('k') | src/deoptimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698