OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |