Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1873)

Unified Diff: src/objects-inl.h

Issue 210763003: Handlify GetElementWithReceiver and GetElementWithInterceptor. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed comments Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/objects.cc ('k') | src/runtime.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « src/objects.cc ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698