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

Unified Diff: src/factory.cc

Issue 669060: Add runtime function for string to array conversion. (Closed)
Patch Set: Created 10 years, 10 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/factory.h ('k') | src/heap.h » ('j') | src/runtime.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/factory.cc
diff --git a/src/factory.cc b/src/factory.cc
index 8d207496418e99b12f0537d9ffc0ec66a77e6205..fa3790c4a5455ea1441d250f35b08994286612fa 100644
--- a/src/factory.cc
+++ b/src/factory.cc
@@ -43,6 +43,12 @@ Handle<FixedArray> Factory::NewFixedArray(int size, PretenureFlag pretenure) {
}
+Handle<FixedArray> Factory::NewUninitializedFixedArray(int size) {
+ ASSERT(0 <= size);
antonm 2010/03/04 13:23:15 I am not sure we should ever allocate empty fixed
Vitaly Repeshko 2010/03/04 13:25:59 We won't. Heap::Allocate... returns a singleton in
+ CALL_HEAP_FUNCTION(Heap::AllocateUninitializedFixedArray(size), FixedArray);
+}
+
+
Handle<FixedArray> Factory::NewFixedArrayWithHoles(int size) {
ASSERT(0 <= size);
CALL_HEAP_FUNCTION(Heap::AllocateFixedArrayWithHoles(size), FixedArray);
« no previous file with comments | « src/factory.h ('k') | src/heap.h » ('j') | src/runtime.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698