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

Unified Diff: src/bootstrapper.cc

Issue 2686253003: [string] Store the correct map during bootstrapping (Closed)
Patch Set: Created 3 years, 10 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 | no next file » | no next file with comments »
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 915b2e6a694107351fc160cb8d88cd3eb5e9eaaa..3e1a0132fc3382d6bcd10c00f6a118299804671d 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -3832,10 +3832,11 @@ bool Genesis::InstallNatives(GlobalContextType context_type) {
// Store the map for the %StringPrototype% after the natives has been compiled
// and the String function has been set up.
Handle<JSFunction> string_function(native_context()->string_function());
- DCHECK(JSObject::cast(
- string_function->initial_map()->prototype())->HasFastProperties());
+ JSObject* string_function_prototype =
+ JSObject::cast(string_function->initial_map()->prototype());
+ DCHECK(string_function_prototype->HasFastProperties());
native_context()->set_string_function_prototype_map(
- HeapObject::cast(string_function->map()->prototype())->map());
+ string_function_prototype->map());
Handle<JSGlobalObject> global_object =
handle(native_context()->global_object());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698