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

Unified Diff: src/factory.cc

Issue 211333002: Replace HeapNumber as doublebox with an explicit MutableHeapNumber. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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/factory.cc
diff --git a/src/factory.cc b/src/factory.cc
index f6f65252214157abd920ea58f4e3cc89ad323893..68150ca2347b61b6fcc0c58dac4e667bf0d64306 100644
--- a/src/factory.cc
+++ b/src/factory.cc
@@ -1027,6 +1027,15 @@ Handle<HeapNumber> Factory::NewHeapNumber(double value,
}
+Handle<HeapNumber> Factory::NewMutableHeapNumber(double value,
+ PretenureFlag pretenure) {
+ CALL_HEAP_FUNCTION(
+ isolate(),
+ isolate()->heap()->AllocateMutableHeapNumber(value, pretenure),
+ HeapNumber);
+}
+
+
Handle<JSObject> Factory::NewNeanderObject() {
CALL_HEAP_FUNCTION(
isolate(),

Powered by Google App Engine
This is Rietveld 408576698