| Index: src/heap/heap.cc
|
| diff --git a/src/heap/heap.cc b/src/heap/heap.cc
|
| index 396ba4f985fcead44a1cec50fc8ad2ca8b401680..853565382ef2793bdae97ce861292f3ee901c045 100644
|
| --- a/src/heap/heap.cc
|
| +++ b/src/heap/heap.cc
|
| @@ -137,6 +137,7 @@ Heap::Heap()
|
| old_generation_size_at_last_gc_(0),
|
| gcs_since_last_deopt_(0),
|
| allocation_sites_scratchpad_length_(0),
|
| + last_script_id_(v8::UnboundScript::kNoScriptId),
|
| ring_buffer_full_(false),
|
| ring_buffer_end_(0),
|
| promotion_queue_(this),
|
| @@ -2724,12 +2725,9 @@ void Heap::CreateInitialObjects() {
|
|
|
| set_materialized_objects(*factory->NewFixedArray(0, TENURED));
|
|
|
| - // Handling of script id generation is in Factory::NewScript.
|
| - set_last_script_id(Smi::FromInt(v8::UnboundScript::kNoScriptId));
|
| -
|
| // Allocate the empty script.
|
| Handle<Script> script = factory->NewScript(factory->empty_string());
|
| - script->set_type(Smi::FromInt(Script::TYPE_NATIVE));
|
| + script->set_type(Script::TYPE_NATIVE);
|
| set_empty_script(*script);
|
|
|
| Handle<PropertyCell> cell = factory->NewPropertyCell();
|
| @@ -3910,7 +3908,7 @@ AllocationResult Heap::AllocateSymbol() {
|
| Symbol::cast(result)
|
| ->set_hash_field(Name::kIsNotArrayIndexMask | (hash << Name::kHashShift));
|
| Symbol::cast(result)->set_name(undefined_value());
|
| - Symbol::cast(result)->set_flags(Smi::FromInt(0));
|
| + Symbol::cast(result)->set_flags(0);
|
|
|
| DCHECK(!Symbol::cast(result)->is_private());
|
| return result;
|
|
|