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

Side by Side Diff: src/heap/heap.cc

Issue 2066993004: [snapshot] serialize embedder-provided external references. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: address comment Created 4 years, 6 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 unified diff | Download patch
« no previous file with comments | « src/heap/heap.h ('k') | src/heap/heap-inl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 2850 matching lines...) Expand 10 before | Expand all | Expand 10 after
2861 2861
2862 Handle<SeededNumberDictionary> slow_element_dictionary = 2862 Handle<SeededNumberDictionary> slow_element_dictionary =
2863 SeededNumberDictionary::New(isolate(), 0, TENURED); 2863 SeededNumberDictionary::New(isolate(), 0, TENURED);
2864 slow_element_dictionary->set_requires_slow_elements(); 2864 slow_element_dictionary->set_requires_slow_elements();
2865 set_empty_slow_element_dictionary(*slow_element_dictionary); 2865 set_empty_slow_element_dictionary(*slow_element_dictionary);
2866 2866
2867 set_materialized_objects(*factory->NewFixedArray(0, TENURED)); 2867 set_materialized_objects(*factory->NewFixedArray(0, TENURED));
2868 2868
2869 // Handling of script id generation is in Heap::NextScriptId(). 2869 // Handling of script id generation is in Heap::NextScriptId().
2870 set_last_script_id(Smi::FromInt(v8::UnboundScript::kNoScriptId)); 2870 set_last_script_id(Smi::FromInt(v8::UnboundScript::kNoScriptId));
2871 set_next_template_serial_number(Smi::FromInt(0));
2871 2872
2872 // Allocate the empty script. 2873 // Allocate the empty script.
2873 Handle<Script> script = factory->NewScript(factory->empty_string()); 2874 Handle<Script> script = factory->NewScript(factory->empty_string());
2874 script->set_type(Script::TYPE_NATIVE); 2875 script->set_type(Script::TYPE_NATIVE);
2875 set_empty_script(*script); 2876 set_empty_script(*script);
2876 2877
2877 Handle<PropertyCell> cell = factory->NewPropertyCell(); 2878 Handle<PropertyCell> cell = factory->NewPropertyCell();
2878 cell->set_value(Smi::FromInt(Isolate::kArrayProtectorValid)); 2879 cell->set_value(Smi::FromInt(Isolate::kArrayProtectorValid));
2879 set_array_protector(*cell); 2880 set_array_protector(*cell);
2880 2881
(...skipping 3571 matching lines...) Expand 10 before | Expand all | Expand 10 after
6452 } 6453 }
6453 6454
6454 6455
6455 // static 6456 // static
6456 int Heap::GetStaticVisitorIdForMap(Map* map) { 6457 int Heap::GetStaticVisitorIdForMap(Map* map) {
6457 return StaticVisitorBase::GetVisitorId(map); 6458 return StaticVisitorBase::GetVisitorId(map);
6458 } 6459 }
6459 6460
6460 } // namespace internal 6461 } // namespace internal
6461 } // namespace v8 6462 } // namespace v8
OLDNEW
« no previous file with comments | « src/heap/heap.h ('k') | src/heap/heap-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698