Author: [email protected]
Date: Tue Feb 24 12:55:11 2009
New Revision: 1354

Modified:
    branches/bleeding_edge/src/factory.cc
    branches/bleeding_edge/src/factory.h

Log:
Remove obsolete function NewArrayLiteral.

This function (which creates a tenured JS array) was not use by any code.
Review URL: http://codereview.chromium.org/28070

Modified: branches/bleeding_edge/src/factory.cc
==============================================================================
--- branches/bleeding_edge/src/factory.cc       (original)
+++ branches/bleeding_edge/src/factory.cc       Tue Feb 24 12:55:11 2009
@@ -601,11 +601,6 @@
  }


-Handle<JSArray> Factory::NewArrayLiteral(int length) {
-  return NewJSArrayWithElements(NewFixedArray(length), TENURED);
-}
-
-
  Handle<JSArray> Factory::NewJSArray(int length,
                                      PretenureFlag pretenure) {
    Handle<JSObject> obj = NewJSObject(Top::array_function(), pretenure);

Modified: branches/bleeding_edge/src/factory.h
==============================================================================
--- branches/bleeding_edge/src/factory.h        (original)
+++ branches/bleeding_edge/src/factory.h        Tue Feb 24 12:55:11 2009
@@ -186,10 +186,6 @@
    // runtime.
    static Handle<JSObject> NewJSObjectFromMap(Handle<Map> map);

-  // Allocate a JS array representing an array literal.  The array is
-  // pretenured (allocated directly in the old generation).
-  static Handle<JSArray> NewArrayLiteral(int length);
-
    // JS arrays are pretenured when allocated by the parser.
    static Handle<JSArray> NewJSArray(int init_length,
                                      PretenureFlag pretenure = NOT_TENURED);

--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to