| 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 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 453 assembler.positions_recorder())); | 453 assembler.positions_recorder())); |
| 454 // Code serializer only takes unoptimized code. | 454 // Code serializer only takes unoptimized code. |
| 455 DCHECK(!info()->will_serialize()); | 455 DCHECK(!info()->will_serialize()); |
| 456 LCodeGen generator(this, &assembler, info()); | 456 LCodeGen generator(this, &assembler, info()); |
| 457 | 457 |
| 458 MarkEmptyBlocks(); | 458 MarkEmptyBlocks(); |
| 459 | 459 |
| 460 if (generator.GenerateCode()) { | 460 if (generator.GenerateCode()) { |
| 461 generator.CheckEnvironmentUsage(); | 461 generator.CheckEnvironmentUsage(); |
| 462 CodeGenerator::MakeCodePrologue(info(), "optimized"); | 462 CodeGenerator::MakeCodePrologue(info(), "optimized"); |
| 463 Handle<Code> code = CodeGenerator::MakeCodeEpilogue(&assembler, info()); | 463 Handle<Code> code = |
| 464 CodeGenerator::MakeCodeEpilogue(&assembler, nullptr, info()); |
| 464 generator.FinishCode(code); | 465 generator.FinishCode(code); |
| 465 CommitDependencies(code); | 466 CommitDependencies(code); |
| 466 code->set_is_crankshafted(true); | 467 code->set_is_crankshafted(true); |
| 467 void* jit_handler_data = | 468 void* jit_handler_data = |
| 468 assembler.positions_recorder()->DetachJITHandlerData(); | 469 assembler.positions_recorder()->DetachJITHandlerData(); |
| 469 LOG_CODE_EVENT(info()->isolate(), | 470 LOG_CODE_EVENT(info()->isolate(), |
| 470 CodeEndLinePosInfoRecordEvent(AbstractCode::cast(*code), | 471 CodeEndLinePosInfoRecordEvent(AbstractCode::cast(*code), |
| 471 jit_handler_data)); | 472 jit_handler_data)); |
| 472 | 473 |
| 473 CodeGenerator::PrintCode(code, info()); | 474 CodeGenerator::PrintCode(code, info()); |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 725 | 726 |
| 726 LPhase::~LPhase() { | 727 LPhase::~LPhase() { |
| 727 if (ShouldProduceTraceOutput()) { | 728 if (ShouldProduceTraceOutput()) { |
| 728 isolate()->GetHTracer()->TraceLithium(name(), chunk_); | 729 isolate()->GetHTracer()->TraceLithium(name(), chunk_); |
| 729 } | 730 } |
| 730 } | 731 } |
| 731 | 732 |
| 732 | 733 |
| 733 } // namespace internal | 734 } // namespace internal |
| 734 } // namespace v8 | 735 } // namespace v8 |
| OLD | NEW |