Commit 7ef8cb56 authored by jgruber's avatar jgruber Committed by Commit bot

[string] Store the correct map during bootstrapping

This was broken by https://codereview.chromium.org/2663803002.

BUG=

Review-Url: https://codereview.chromium.org/2686253003
Cr-Commit-Position: refs/heads/master@{#43088}
parent 88df7dca
......@@ -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());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment