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

Unified Diff: src/codegen.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: Rebase on master. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/codegen.h ('k') | src/compiler/code-generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/codegen.cc
diff --git a/src/codegen.cc b/src/codegen.cc
index 762959b841baf410d9576cd7721fb6d6896cf125..78a4532ab55074f940f2ab976faafa1b5905ef1f 100644
--- a/src/codegen.cc
+++ b/src/codegen.cc
@@ -11,6 +11,7 @@
#include "src/bootstrapper.h"
#include "src/compiler.h"
#include "src/debug/debug.h"
+#include "src/eh-frame.h"
#include "src/parsing/parser.h"
#include "src/runtime/runtime.h"
@@ -110,6 +111,7 @@ void CodeGenerator::MakeCodePrologue(CompilationInfo* info, const char* kind) {
}
Handle<Code> CodeGenerator::MakeCodeEpilogue(MacroAssembler* masm,
+ EhFrameWriter* eh_frame_writer,
CompilationInfo* info,
Handle<Object> self_reference) {
Isolate* isolate = info->isolate();
@@ -121,6 +123,8 @@ Handle<Code> CodeGenerator::MakeCodeEpilogue(MacroAssembler* masm,
Code::ExtractKindFromFlags(flags) == Code::OPTIMIZED_FUNCTION ||
info->IsStub();
masm->GetCode(&desc);
+ if (eh_frame_writer) eh_frame_writer->GetEhFrame(&desc);
+
Handle<Code> code = isolate->factory()->NewCode(
desc, flags, self_reference, false, is_crankshafted,
info->prologue_offset(), info->is_debug() && !is_crankshafted);
« no previous file with comments | « src/codegen.h ('k') | src/compiler/code-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698