Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index 888117cb7da297e24377cf726e48cc807a6d7e7c..89267e5c6fc23b2aacd33aa81c7335a1acfb1a81 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -5278,9 +5278,10 @@ class DeoptimizationInputData: public FixedArray { |
return (length() - kFirstDeoptEntryIndex) / kDeoptEntrySize; |
} |
- static int LengthFor(int entry_count) { |
- return IndexForEntry(entry_count); |
- } |
+ // Allocates a DeoptimizationInputData. |
+ MUST_USE_RESULT static MaybeObject* Allocate(Isolate* isolate, |
+ int deopt_entry_count, |
+ PretenureFlag pretenure); |
// Casting. |
static inline DeoptimizationInputData* cast(Object* obj); |
@@ -5293,6 +5294,10 @@ class DeoptimizationInputData: public FixedArray { |
static int IndexForEntry(int i) { |
return kFirstDeoptEntryIndex + (i * kDeoptEntrySize); |
} |
+ |
+ static int LengthFor(int entry_count) { |
+ return IndexForEntry(entry_count); |
+ } |
}; |
@@ -5320,6 +5325,11 @@ class DeoptimizationOutputData: public FixedArray { |
return deopt_points * 2; |
} |
+ // Allocates a DeoptimizationOutputData. |
+ MUST_USE_RESULT static MaybeObject* Allocate(Isolate* isolate, |
+ int number_of_deopt_points, |
+ PretenureFlag pretenure); |
+ |
// Casting. |
static inline DeoptimizationOutputData* cast(Object* obj); |