Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index e19b331491a7a32735c3dae8e3ca42f21bbebfed..b80aaf37a34e09b665b5030c54880cf261f43d00 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -1700,6 +1700,7 @@ Handle<Code> Factory::NewCode(const CodeDesc& desc, |
code->set_prologue_offset(prologue_offset); |
code->set_constant_pool_offset(desc.instr_size - desc.constant_pool_size); |
code->set_builtin_index(-1); |
+ code->set_trap_handler_index(Smi::FromInt(-1)); |
if (code->kind() == Code::OPTIMIZED_FUNCTION) { |
code->set_marked_for_deoptimization(false); |