Commit 57dfd336 authored by sgjesse@chromium.org's avatar sgjesse@chromium.org

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1354 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 1338c33e
...@@ -601,11 +601,6 @@ Handle<JSObject> Factory::NewJSObjectFromMap(Handle<Map> map) { ...@@ -601,11 +601,6 @@ Handle<JSObject> Factory::NewJSObjectFromMap(Handle<Map> map) {
} }
Handle<JSArray> Factory::NewArrayLiteral(int length) {
return NewJSArrayWithElements(NewFixedArray(length), TENURED);
}
Handle<JSArray> Factory::NewJSArray(int length, Handle<JSArray> Factory::NewJSArray(int length,
PretenureFlag pretenure) { PretenureFlag pretenure) {
Handle<JSObject> obj = NewJSObject(Top::array_function(), pretenure); Handle<JSObject> obj = NewJSObject(Top::array_function(), pretenure);
......
...@@ -186,10 +186,6 @@ class Factory : public AllStatic { ...@@ -186,10 +186,6 @@ class Factory : public AllStatic {
// runtime. // runtime.
static Handle<JSObject> NewJSObjectFromMap(Handle<Map> map); 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. // JS arrays are pretenured when allocated by the parser.
static Handle<JSArray> NewJSArray(int init_length, static Handle<JSArray> NewJSArray(int init_length,
PretenureFlag pretenure = NOT_TENURED); PretenureFlag pretenure = NOT_TENURED);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment