Index: src/codegen.cc |
diff --git a/src/codegen.cc b/src/codegen.cc |
index 4597ae27669a4954ea1d7c841497dec6be0142af..d4c1e438cb3654212f10476e2eeef15d44241d3e 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" |
@@ -117,8 +118,8 @@ void CodeGenerator::MakeCodePrologue(CompilationInfo* info, const char* kind) { |
#endif // DEBUG |
} |
- |
Handle<Code> CodeGenerator::MakeCodeEpilogue(MacroAssembler* masm, |
+ EhFrameWriter* eh_frame_writer, |
CompilationInfo* info) { |
Isolate* isolate = info->isolate(); |
@@ -129,6 +130,7 @@ 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, masm->CodeObject(), |
false, is_crankshafted, |