Index: src/compiler.h |
diff --git a/src/compiler.h b/src/compiler.h |
index 50053e562512d29ce3177816af11eaf101206e51..47d459a28206252581c9d4c35a2b0f42228864e8 100644 |
--- a/src/compiler.h |
+++ b/src/compiler.h |
@@ -199,6 +199,11 @@ class CompilationInfo { |
return IsCompilingForDebugging::decode(flags_); |
} |
+ bool ShouldTrapOnDeopt() const { |
+ return (FLAG_trap_on_deopt && IsOptimizing()) || |
+ (FLAG_trap_on_stub_deopt && IsStub()); |
+ } |
+ |
bool has_global_object() const { |
return !closure().is_null() && |
(closure()->context()->global_object() != NULL); |