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:
parent
cf1e1b1b98
commit
ee7c5dd64a
@ -218,6 +218,9 @@ Handle<Object> LookupSingleCharacterStringFromCode(uint32_t index);
|
||||
|
||||
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);
|
||||
|
@ -6802,7 +6802,7 @@ void Script::InitLineEnds() {
|
||||
}
|
||||
|
||||
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());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user