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

Unified Diff: src/factory.cc

Issue 1029783003: Populate PrototypeInfo with prototype_object value (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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/factory.h ('k') | src/objects.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/factory.cc
diff --git a/src/factory.cc b/src/factory.cc
index ae3a46f811240703364e819d6b96f8efce705b8e..83815f2d0de891341369a3ced747c24f4d567ada 100644
--- a/src/factory.cc
+++ b/src/factory.cc
@@ -51,11 +51,10 @@ Handle<Box> Factory::NewBox(Handle<Object> value) {
}
-Handle<PrototypeInfo> Factory::NewPrototypeInfo(
- Handle<JSObject> prototype_obj) {
+Handle<PrototypeInfo> Factory::NewPrototypeInfo() {
Handle<PrototypeInfo> result =
Handle<PrototypeInfo>::cast(NewStruct(PROTOTYPE_INFO_TYPE));
- result->set_prototype_object(*prototype_obj);
+ result->set_prototype_object(Smi::FromInt(0));
result->set_prototype_users(Smi::FromInt(0));
result->set_validity_cell(Smi::FromInt(0));
return result;
« no previous file with comments | « src/factory.h ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698