Use Handle version of AddKeysFromJSArray when building line endingd array.

Review URL: http://codereview.chromium.org/21013

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1218 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
sgjesse@chromium.org 2009-02-03 13:00:40 +00:00
parent cf1e1b1b98
commit ee7c5dd64a
2 changed files with 4 additions and 1 deletions

View File

@ -218,6 +218,9 @@ Handle<Object> LookupSingleCharacterStringFromCode(uint32_t index);
Handle<JSObject> Copy(Handle<JSObject> obj); 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 // Get the JS object corresponding to the given script; create it
// if none exists. // if none exists.
Handle<JSValue> GetScriptWrapper(Handle<Script> script); Handle<JSValue> GetScriptWrapper(Handle<Script> script);

View File

@ -6802,7 +6802,7 @@ void Script::InitLineEnds() {
} }
Handle<FixedArray> fixed_array = Factory::NewFixedArray(0); 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()); ASSERT(line_ends()->IsFixedArray());
} }