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 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
461 &assembler, nullptr, info(), assembler.CodeObject()); | 461 &assembler, nullptr, info(), assembler.CodeObject()); |
462 generator.FinishCode(code); | 462 generator.FinishCode(code); |
463 CommitDependencies(code); | 463 CommitDependencies(code); |
464 Handle<ByteArray> source_positions = | 464 Handle<ByteArray> source_positions = |
465 generator.source_position_table_builder()->ToSourcePositionTable( | 465 generator.source_position_table_builder()->ToSourcePositionTable( |
466 info()->isolate(), Handle<AbstractCode>::cast(code)); | 466 info()->isolate(), Handle<AbstractCode>::cast(code)); |
467 code->set_source_position_table(*source_positions); | 467 code->set_source_position_table(*source_positions); |
468 code->set_is_crankshafted(true); | 468 code->set_is_crankshafted(true); |
469 | 469 |
470 CodeGenerator::PrintCode(code, info()); | 470 CodeGenerator::PrintCode(code, info()); |
471 DCHECK(!(info()->GetMustNotHaveEagerFrame() && | |
472 generator.NeedsEagerFrame())); | |
473 return code; | 471 return code; |
474 } | 472 } |
475 assembler.AbortedCodeGeneration(); | 473 assembler.AbortedCodeGeneration(); |
476 return Handle<Code>::null(); | 474 return Handle<Code>::null(); |
477 } | 475 } |
478 | 476 |
479 | 477 |
480 void LChunk::set_allocated_double_registers(BitVector* allocated_registers) { | 478 void LChunk::set_allocated_double_registers(BitVector* allocated_registers) { |
481 allocated_double_registers_ = allocated_registers; | 479 allocated_double_registers_ = allocated_registers; |
482 BitVector* doubles = allocated_double_registers(); | 480 BitVector* doubles = allocated_double_registers(); |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
722 | 720 |
723 LPhase::~LPhase() { | 721 LPhase::~LPhase() { |
724 if (ShouldProduceTraceOutput()) { | 722 if (ShouldProduceTraceOutput()) { |
725 isolate()->GetHTracer()->TraceLithium(name(), chunk_); | 723 isolate()->GetHTracer()->TraceLithium(name(), chunk_); |
726 } | 724 } |
727 } | 725 } |
728 | 726 |
729 | 727 |
730 } // namespace internal | 728 } // namespace internal |
731 } // namespace v8 | 729 } // namespace v8 |
OLD | NEW |