Commit ee7c5dd6 authored by sgjesse@chromium.org's avatar sgjesse@chromium.org

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
parent cf1e1b1b
...@@ -218,6 +218,9 @@ Handle<Object> LookupSingleCharacterStringFromCode(uint32_t index); ...@@ -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);
......
...@@ -6802,7 +6802,7 @@ void Script::InitLineEnds() { ...@@ -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());
} }
......
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