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

Unified Diff: src/objects.h

Issue 228103002: Revert "Handlify deoptimization data allocators." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 8 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
« no previous file with comments | « src/heap.cc ('k') | src/objects.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « src/heap.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698