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 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
450 CodeObjectRequired::kYes); | 450 CodeObjectRequired::kYes); |
451 // Code serializer only takes unoptimized code. | 451 // Code serializer only takes unoptimized code. |
452 DCHECK(!info()->will_serialize()); | 452 DCHECK(!info()->will_serialize()); |
453 LCodeGen generator(this, &assembler, info()); | 453 LCodeGen generator(this, &assembler, info()); |
454 | 454 |
455 MarkEmptyBlocks(); | 455 MarkEmptyBlocks(); |
456 | 456 |
457 if (generator.GenerateCode()) { | 457 if (generator.GenerateCode()) { |
458 generator.CheckEnvironmentUsage(); | 458 generator.CheckEnvironmentUsage(); |
459 CodeGenerator::MakeCodePrologue(info(), "optimized"); | 459 CodeGenerator::MakeCodePrologue(info(), "optimized"); |
460 Handle<Code> code = CodeGenerator::MakeCodeEpilogue(&assembler, info()); | 460 Handle<Code> code = CodeGenerator::MakeCodeEpilogue(&assembler, info(), |
| 461 assembler.CodeObject()); |
461 generator.FinishCode(code); | 462 generator.FinishCode(code); |
462 CommitDependencies(code); | 463 CommitDependencies(code); |
463 generator.source_position_table_builder()->EndJitLogging( | 464 generator.source_position_table_builder()->EndJitLogging( |
464 AbstractCode::cast(*code)); | 465 AbstractCode::cast(*code)); |
465 code->set_is_crankshafted(true); | 466 code->set_is_crankshafted(true); |
466 | 467 |
467 CodeGenerator::PrintCode(code, info()); | 468 CodeGenerator::PrintCode(code, info()); |
468 DCHECK(!(info()->GetMustNotHaveEagerFrame() && | 469 DCHECK(!(info()->GetMustNotHaveEagerFrame() && |
469 generator.NeedsEagerFrame())); | 470 generator.NeedsEagerFrame())); |
470 return code; | 471 return code; |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
719 | 720 |
720 LPhase::~LPhase() { | 721 LPhase::~LPhase() { |
721 if (ShouldProduceTraceOutput()) { | 722 if (ShouldProduceTraceOutput()) { |
722 isolate()->GetHTracer()->TraceLithium(name(), chunk_); | 723 isolate()->GetHTracer()->TraceLithium(name(), chunk_); |
723 } | 724 } |
724 } | 725 } |
725 | 726 |
726 | 727 |
727 } // namespace internal | 728 } // namespace internal |
728 } // namespace v8 | 729 } // namespace v8 |
OLD | NEW |