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

Unified Diff: src/hydrogen.cc

Issue 238973003: Handlify Object::GetPrototype and (most) callers. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Minor Created 6 years, 8 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
Index: src/hydrogen.cc
diff --git a/src/hydrogen.cc b/src/hydrogen.cc
index b93df482861615d499b3b4668143e2537ca9bab4..404c4e7ec86b5a063a9cbc83a3b73a8fcb2f7748 100644
--- a/src/hydrogen.cc
+++ b/src/hydrogen.cc
@@ -6355,14 +6355,14 @@ HInstruction* HOptimizedGraphBuilder::BuildMonomorphicElementAccess(
// changes could allow callbacks on elements in the chain that
// aren't compatible with monomorphic keyed stores.
Handle<JSObject> prototype(JSObject::cast(map->prototype()));
- Object* holder = map->prototype();
- while (holder->GetPrototype(isolate())->IsJSObject()) {
- holder = holder->GetPrototype(isolate());
+ Handle<Object> holder(map->prototype(), isolate());
+ while (Object::GetPrototype(isolate(), holder)->IsJSObject()) {
+ holder = Object::GetPrototype(isolate(), holder);
}
- ASSERT(holder->GetPrototype(isolate())->IsNull());
+ ASSERT(Object::GetPrototype(isolate(), holder)->IsNull());
BuildCheckPrototypeMaps(prototype,
- Handle<JSObject>(JSObject::cast(holder)));
+ Handle<JSObject>(JSObject::cast(*holder)));
}
LoadKeyedHoleMode load_mode = BuildKeyedHoleMode(map);

Powered by Google App Engine
This is Rietveld 408576698