Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1111)

Unified Diff: src/isolate.cc

Issue 2790573002: Encode any deoptimizer entry in serialized data. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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()) {

Powered by Google App Engine
This is Rietveld 408576698