Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index 6d59ad4499911aacf4f4cae59ce4e00909040f41..dbb93ee2337f82fadef046dd0fd8b88a8aa8b2e2 100644 |
--- a/src/isolate.cc |
+++ b/src/isolate.cc |
@@ -2806,9 +2806,12 @@ bool Isolate::Init(Deserializer* des) { |
// deopt entry table that might have been referred to by optimized code in |
// the snapshot. |
HandleScope scope(this); |
- Deoptimizer::EnsureCodeForDeoptimizationEntry( |
- this, Deoptimizer::LAZY, |
- ExternalReferenceTable::kDeoptTableSerializeEntryCount - 1); |
+ for (int i = 0; i <= Deoptimizer::kLastBailoutType; ++i) { |
+ Deoptimizer::BailoutType bailout_type = |
+ static_cast<Deoptimizer::BailoutType>(i); |
+ Deoptimizer::EnsureCodeForDeoptimizationEntry( |
+ this, bailout_type, des->max_deopt_entry_id(bailout_type)); |
Yang
2017/03/31 06:58:16
Can't we create deoptimization entries on demand i
|
+ } |
} |
if (!serializer_enabled()) { |