Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index e454e2ebdf8a0005bf54da5f71c17daa30e51e9b..c358ee6584525e4415aacce8615efd687acda79e 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -1064,25 +1064,15 @@ Handle<Object> Object::GetElement(Isolate* isolate, |
// This was not always the case. This ASSERT is here to catch |
// leftover incorrect uses. |
ASSERT(AllowHeapAllocation::IsAllowed()); |
- CALL_HEAP_FUNCTION(isolate, |
- object->GetElementWithReceiver(isolate, *object, index), |
- Object); |
+ return Object::GetElementWithReceiver(isolate, object, object, index); |
} |
-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); |
+ Object::GetElementWithReceiver(isolate, object, object, index); |
CHECK_NOT_EMPTY_HANDLE(isolate, result); |
return result; |
} |