Index: src/compiler.h |
diff --git a/src/compiler.h b/src/compiler.h |
index ea311cccfb0d4d96d0550a4216f38cd14401d4bd..8ac0eea7efb306468ea76dc8b85b0f8fffeaf454 100644 |
--- a/src/compiler.h |
+++ b/src/compiler.h |
@@ -292,7 +292,6 @@ class CompilationInfo { |
// Accessors for the different compilation modes. |
bool IsOptimizing() const { return mode_ == OPTIMIZE; } |
- bool IsOptimizable() const { return mode_ == BASE; } |
bool IsStub() const { return mode_ == STUB; } |
void SetOptimizing(BailoutId osr_ast_id, Handle<Code> unoptimized) { |
DCHECK(!shared_info().is_null()); |
@@ -317,7 +316,7 @@ class CompilationInfo { |
return GetFlag(kDeoptimizationSupport); |
} |
void EnableDeoptimizationSupport() { |
- DCHECK(IsOptimizable()); |
+ DCHECK_EQ(BASE, mode_); |
SetFlag(kDeoptimizationSupport); |
} |