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

Unified Diff: src/bootstrapper.cc

Issue 289283018: Cleanup after inobject slack tracking improvement. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 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 | « no previous file | src/incremental-marking.cc » ('j') | src/objects.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/bootstrapper.cc
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
index d783d244129d58a8ce2eb1675764b114dd2adb4b..b665daaa567a2e763934bce2bfacd52535e183b1 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -469,6 +469,8 @@ Handle<JSFunction> Genesis::CreateEmptyFunction(Isolate* isolate) {
factory->NewMap(JS_OBJECT_TYPE, JSObject::kHeaderSize);
object_fun->set_initial_map(*object_function_map);
object_function_map->set_constructor(*object_fun);
+ object_function_map->set_unused_property_fields(
+ JSObject::kInitialUnusedPropertiesCount);
native_context()->set_object_function(*object_fun);
« no previous file with comments | « no previous file | src/incremental-marking.cc » ('j') | src/objects.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698