Index: src/deoptimizer.h |
diff --git a/src/deoptimizer.h b/src/deoptimizer.h |
index 4b1d3096d939eadf073999fb557a42fd66069a89..762c6bd9463571dc6244377aa14e78daf58ade93 100644 |
--- a/src/deoptimizer.h |
+++ b/src/deoptimizer.h |
@@ -399,15 +399,7 @@ class OptimizedFunctionVisitor BASE_EMBEDDED { |
class Deoptimizer : public Malloced { |
public: |
- enum BailoutType { |
- EAGER, |
- LAZY, |
- SOFT, |
- // This last bailout type is not really a bailout, but used by the |
- // debugger to deoptimize stack frames to allow inspection. |
- DEBUGGER, |
- kBailoutTypesWithCodeEntry = SOFT + 1 |
- }; |
+ enum BailoutType { EAGER, LAZY, SOFT, kLastBailoutType = SOFT }; |
#define DEOPT_MESSAGES_CONSTANTS(C, T) C, |
enum DeoptReason { |
@@ -882,8 +874,8 @@ class DeoptimizerData { |
private: |
MemoryAllocator* allocator_; |
- int deopt_entry_code_entries_[Deoptimizer::kBailoutTypesWithCodeEntry]; |
- MemoryChunk* deopt_entry_code_[Deoptimizer::kBailoutTypesWithCodeEntry]; |
+ int deopt_entry_code_entries_[Deoptimizer::kLastBailoutType + 1]; |
+ MemoryChunk* deopt_entry_code_[Deoptimizer::kLastBailoutType + 1]; |
Deoptimizer* current_; |