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/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 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
462 generator.FinishCode(code); | 462 generator.FinishCode(code); |
463 CommitDependencies(code); | 463 CommitDependencies(code); |
464 code->set_is_crankshafted(true); | 464 code->set_is_crankshafted(true); |
465 void* jit_handler_data = | 465 void* jit_handler_data = |
466 assembler.positions_recorder()->DetachJITHandlerData(); | 466 assembler.positions_recorder()->DetachJITHandlerData(); |
467 LOG_CODE_EVENT(info()->isolate(), | 467 LOG_CODE_EVENT(info()->isolate(), |
468 CodeEndLinePosInfoRecordEvent(AbstractCode::cast(*code), | 468 CodeEndLinePosInfoRecordEvent(AbstractCode::cast(*code), |
469 jit_handler_data)); | 469 jit_handler_data)); |
470 | 470 |
471 CodeGenerator::PrintCode(code, info()); | 471 CodeGenerator::PrintCode(code, info()); |
472 DCHECK(!(info()->GetMustNotHaveEagerFrame() && | 472 DCHECK(!(info()->isolate()->serializer_enabled() && |
| 473 info()->GetMustNotHaveEagerFrame() && |
473 generator.NeedsEagerFrame())); | 474 generator.NeedsEagerFrame())); |
474 return code; | 475 return code; |
475 } | 476 } |
476 assembler.AbortedCodeGeneration(); | 477 assembler.AbortedCodeGeneration(); |
477 return Handle<Code>::null(); | 478 return Handle<Code>::null(); |
478 } | 479 } |
479 | 480 |
480 | 481 |
481 void LChunk::set_allocated_double_registers(BitVector* allocated_registers) { | 482 void LChunk::set_allocated_double_registers(BitVector* allocated_registers) { |
482 allocated_double_registers_ = allocated_registers; | 483 allocated_double_registers_ = allocated_registers; |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
723 | 724 |
724 LPhase::~LPhase() { | 725 LPhase::~LPhase() { |
725 if (ShouldProduceTraceOutput()) { | 726 if (ShouldProduceTraceOutput()) { |
726 isolate()->GetHTracer()->TraceLithium(name(), chunk_); | 727 isolate()->GetHTracer()->TraceLithium(name(), chunk_); |
727 } | 728 } |
728 } | 729 } |
729 | 730 |
730 | 731 |
731 } // namespace internal | 732 } // namespace internal |
732 } // namespace v8 | 733 } // namespace v8 |
OLD | NEW |