Reviewers: Mads Ager, Description: Use Handle version of AddKeysFromJSArray when building line endingd array.
Please review this at http://codereview.chromium.org/21013 SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/ Affected files: M src/handles.h M src/objects.cc Index: src/objects.cc =================================================================== --- src/objects.cc (revision 1216) +++ src/objects.cc (working copy) @@ -6802,7 +6802,7 @@ } Handle<FixedArray> fixed_array = Factory::NewFixedArray(0); - set_line_ends(fixed_array->AddKeysFromJSArray(*array)); + set_line_ends(*AddKeysFromJSArray(fixed_array, array)); ASSERT(line_ends()->IsFixedArray()); } Index: src/handles.h =================================================================== --- src/handles.h (revision 1216) +++ src/handles.h (working copy) @@ -218,6 +218,9 @@ Handle<JSObject> Copy(Handle<JSObject> obj); +Handle<FixedArray> AddKeysFromJSArray(Handle<FixedArray>, + Handle<JSArray> array); + // Get the JS object corresponding to the given script; create it // if none exists. Handle<JSValue> GetScriptWrapper(Handle<Script> script); --~--~---------~--~----~------------~-------~--~----~ v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev -~----------~----~----~----~------~----~------~--~---
