| Index: src/objects-inl.h
|
| diff --git a/src/objects-inl.h b/src/objects-inl.h
|
| index 618cf30f760affb5a163268e60f2410e54d275bd..34cc97fd6baacca86d73452ece24baee6caa89f9 100644
|
| --- a/src/objects-inl.h
|
| +++ b/src/objects-inl.h
|
| @@ -1062,11 +1062,20 @@ Handle<Object> Object::GetElement(Isolate* isolate,
|
| }
|
|
|
|
|
| -Object* Object::GetElementNoExceptionThrown(Isolate* isolate, uint32_t index) {
|
| - MaybeObject* maybe = GetElementWithReceiver(isolate, this, index);
|
| - ASSERT(!maybe->IsFailure());
|
| - Object* result = NULL; // Initialization to please compiler.
|
| - maybe->ToObject(&result);
|
| +static Handle<Object> GetElementNoExceptionThrownHelper(Isolate* isolate,
|
| + Handle<Object> object,
|
| + uint32_t index) {
|
| + CALL_HEAP_FUNCTION(isolate,
|
| + object->GetElementWithReceiver(isolate, *object, index),
|
| + Object);
|
| +}
|
| +
|
| +Handle<Object> Object::GetElementNoExceptionThrown(Isolate* isolate,
|
| + Handle<Object> object,
|
| + uint32_t index) {
|
| + Handle<Object> result =
|
| + GetElementNoExceptionThrownHelper(isolate, object, index);
|
| + CHECK_NOT_EMPTY_HANDLE(isolate, result);
|
| return result;
|
| }
|
|
|
|
|