Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(550)

Side by Side Diff: src/crankshaft/lithium.cc

Issue 2023503002: Reland Implement .eh_frame writer and disassembler. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@eh-frame-base
Patch Set: Improve disassembler, get rid of PatchProcedureBoundariesInEhFrame. Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698