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

Unified Diff: src/objects.cc

Issue 1402973002: Move some code from Runtime_GetPrototype into a new Object::GetPrototype. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase. Created 5 years, 2 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.h ('k') | src/objects-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index 003500dc5e8086e738a5ed375751cc2c99bb169f..39c30336ea755b86a1c9a25fccbba19d76adb284 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -13886,7 +13886,7 @@ MaybeHandle<Object> JSObject::SetPrototype(Handle<JSObject> object,
const bool observed = from_javascript && object->map()->is_observed();
Handle<Object> old_value;
if (observed) {
- old_value = Object::GetPrototypeSkipHiddenPrototypes(isolate, object);
+ old_value = Object::GetPrototype(isolate, object);
}
Handle<Object> result;
@@ -13895,8 +13895,7 @@ MaybeHandle<Object> JSObject::SetPrototype(Handle<JSObject> object,
Object);
if (observed) {
- Handle<Object> new_value =
- Object::GetPrototypeSkipHiddenPrototypes(isolate, object);
+ Handle<Object> new_value = Object::GetPrototype(isolate, object);
if (!new_value->SameValue(*old_value)) {
RETURN_ON_EXCEPTION(isolate,
JSObject::EnqueueChangeRecord(
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698