OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/heap/heap.h" | 5 #include "src/heap/heap.h" |
6 | 6 |
7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
8 #include "src/api.h" | 8 #include "src/api.h" |
9 #include "src/ast/scopeinfo.h" | 9 #include "src/ast/scopeinfo.h" |
10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
(...skipping 2852 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2863 | 2863 |
2864 Handle<SeededNumberDictionary> slow_element_dictionary = | 2864 Handle<SeededNumberDictionary> slow_element_dictionary = |
2865 SeededNumberDictionary::New(isolate(), 0, TENURED); | 2865 SeededNumberDictionary::New(isolate(), 0, TENURED); |
2866 slow_element_dictionary->set_requires_slow_elements(); | 2866 slow_element_dictionary->set_requires_slow_elements(); |
2867 set_empty_slow_element_dictionary(*slow_element_dictionary); | 2867 set_empty_slow_element_dictionary(*slow_element_dictionary); |
2868 | 2868 |
2869 set_materialized_objects(*factory->NewFixedArray(0, TENURED)); | 2869 set_materialized_objects(*factory->NewFixedArray(0, TENURED)); |
2870 | 2870 |
2871 // Handling of script id generation is in Heap::NextScriptId(). | 2871 // Handling of script id generation is in Heap::NextScriptId(). |
2872 set_last_script_id(Smi::FromInt(v8::UnboundScript::kNoScriptId)); | 2872 set_last_script_id(Smi::FromInt(v8::UnboundScript::kNoScriptId)); |
| 2873 set_next_template_serial_number(Smi::FromInt(0)); |
2873 | 2874 |
2874 // Allocate the empty script. | 2875 // Allocate the empty script. |
2875 Handle<Script> script = factory->NewScript(factory->empty_string()); | 2876 Handle<Script> script = factory->NewScript(factory->empty_string()); |
2876 script->set_type(Script::TYPE_NATIVE); | 2877 script->set_type(Script::TYPE_NATIVE); |
2877 set_empty_script(*script); | 2878 set_empty_script(*script); |
2878 | 2879 |
2879 Handle<PropertyCell> cell = factory->NewPropertyCell(); | 2880 Handle<PropertyCell> cell = factory->NewPropertyCell(); |
2880 cell->set_value(Smi::FromInt(Isolate::kArrayProtectorValid)); | 2881 cell->set_value(Smi::FromInt(Isolate::kArrayProtectorValid)); |
2881 set_array_protector(*cell); | 2882 set_array_protector(*cell); |
2882 | 2883 |
(...skipping 3571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6454 } | 6455 } |
6455 | 6456 |
6456 | 6457 |
6457 // static | 6458 // static |
6458 int Heap::GetStaticVisitorIdForMap(Map* map) { | 6459 int Heap::GetStaticVisitorIdForMap(Map* map) { |
6459 return StaticVisitorBase::GetVisitorId(map); | 6460 return StaticVisitorBase::GetVisitorId(map); |
6460 } | 6461 } |
6461 | 6462 |
6462 } // namespace internal | 6463 } // namespace internal |
6463 } // namespace v8 | 6464 } // namespace v8 |
OLD | NEW |