| 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 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 451 assembler.positions_recorder())); | 451 assembler.positions_recorder())); |
| 452 // Code serializer only takes unoptimized code. | 452 // Code serializer only takes unoptimized code. |
| 453 DCHECK(!info()->will_serialize()); | 453 DCHECK(!info()->will_serialize()); |
| 454 LCodeGen generator(this, &assembler, info()); | 454 LCodeGen generator(this, &assembler, info()); |
| 455 | 455 |
| 456 MarkEmptyBlocks(); | 456 MarkEmptyBlocks(); |
| 457 | 457 |
| 458 if (generator.GenerateCode()) { | 458 if (generator.GenerateCode()) { |
| 459 generator.CheckEnvironmentUsage(); | 459 generator.CheckEnvironmentUsage(); |
| 460 CodeGenerator::MakeCodePrologue(info(), "optimized"); | 460 CodeGenerator::MakeCodePrologue(info(), "optimized"); |
| 461 Handle<Code> code = CodeGenerator::MakeCodeEpilogue(&assembler, info()); | 461 Handle<Code> code = |
| 462 CodeGenerator::MakeCodeEpilogue(&assembler, nullptr, info()); |
| 462 generator.FinishCode(code); | 463 generator.FinishCode(code); |
| 463 CommitDependencies(code); | 464 CommitDependencies(code); |
| 464 code->set_is_crankshafted(true); | 465 code->set_is_crankshafted(true); |
| 465 void* jit_handler_data = | 466 void* jit_handler_data = |
| 466 assembler.positions_recorder()->DetachJITHandlerData(); | 467 assembler.positions_recorder()->DetachJITHandlerData(); |
| 467 LOG_CODE_EVENT(info()->isolate(), | 468 LOG_CODE_EVENT(info()->isolate(), |
| 468 CodeEndLinePosInfoRecordEvent(AbstractCode::cast(*code), | 469 CodeEndLinePosInfoRecordEvent(AbstractCode::cast(*code), |
| 469 jit_handler_data)); | 470 jit_handler_data)); |
| 470 | 471 |
| 471 CodeGenerator::PrintCode(code, info()); | 472 CodeGenerator::PrintCode(code, info()); |
| (...skipping 251 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 |