Fix runtime assert in %LiveEditCheckAndDropActivations.

R=jarin@chromium.org
BUG=chromium:465663
LOG=n

Review URL: https://codereview.chromium.org/989743004

Cr-Commit-Position: refs/heads/master@{#27089}
This commit is contained in:
mstarzinger 2015-03-10 02:48:06 -07:00 committed by Commit bot
parent 0b3f4af12c
commit 8fb6660e76

View File

@ -234,8 +234,9 @@ RUNTIME_FUNCTION(Runtime_LiveEditCheckAndDropActivations) {
RUNTIME_ASSERT(shared_array->HasFastElements()) RUNTIME_ASSERT(shared_array->HasFastElements())
int array_length = Smi::cast(shared_array->length())->value(); int array_length = Smi::cast(shared_array->length())->value();
for (int i = 0; i < array_length; i++) { for (int i = 0; i < array_length; i++) {
Handle<Object> element = Handle<Object> element;
Object::GetElement(isolate, shared_array, i).ToHandleChecked(); ASSIGN_RETURN_FAILURE_ON_EXCEPTION(
isolate, element, Object::GetElement(isolate, shared_array, i));
RUNTIME_ASSERT( RUNTIME_ASSERT(
element->IsJSValue() && element->IsJSValue() &&
Handle<JSValue>::cast(element)->value()->IsSharedFunctionInfo()); Handle<JSValue>::cast(element)->value()->IsSharedFunctionInfo());