OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 #ifndef V8_SNAPSHOT_SNAPSHOT_H_ | 5 #ifndef V8_SNAPSHOT_SNAPSHOT_H_ |
6 #define V8_SNAPSHOT_SNAPSHOT_H_ | 6 #define V8_SNAPSHOT_SNAPSHOT_H_ |
7 | 7 |
8 #include "src/snapshot/serialize.h" | 8 #include "src/snapshot/serialize.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 19 matching lines...) Expand all Loading... |
30 private: | 30 private: |
31 class EmbedsScriptBits : public BitField<bool, 0, 1> {}; | 31 class EmbedsScriptBits : public BitField<bool, 0, 1> {}; |
32 uint32_t data_; | 32 uint32_t data_; |
33 }; | 33 }; |
34 | 34 |
35 // Initialize the Isolate from the internal snapshot. Returns false if no | 35 // Initialize the Isolate from the internal snapshot. Returns false if no |
36 // snapshot could be found. | 36 // snapshot could be found. |
37 static bool Initialize(Isolate* isolate); | 37 static bool Initialize(Isolate* isolate); |
38 // Create a new context using the internal partial snapshot. | 38 // Create a new context using the internal partial snapshot. |
39 static MaybeHandle<Context> NewContextFromSnapshot( | 39 static MaybeHandle<Context> NewContextFromSnapshot( |
40 Isolate* isolate, Handle<JSGlobalProxy> global_proxy, | 40 Isolate* isolate, Handle<JSGlobalProxy> global_proxy); |
41 Handle<FixedArray>* outdated_contexts_out); | |
42 | 41 |
43 static bool HaveASnapshotToStartFrom(Isolate* isolate); | 42 static bool HaveASnapshotToStartFrom(Isolate* isolate); |
44 | 43 |
45 static bool EmbedsScript(Isolate* isolate); | 44 static bool EmbedsScript(Isolate* isolate); |
46 | 45 |
47 static uint32_t SizeOfFirstPage(Isolate* isolate, AllocationSpace space); | 46 static uint32_t SizeOfFirstPage(Isolate* isolate, AllocationSpace space); |
48 | 47 |
49 | 48 |
50 // To be implemented by the snapshot source. | 49 // To be implemented by the snapshot source. |
51 static const v8::StartupData* DefaultSnapshotBlob(); | 50 static const v8::StartupData* DefaultSnapshotBlob(); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 }; | 85 }; |
87 | 86 |
88 #ifdef V8_USE_EXTERNAL_STARTUP_DATA | 87 #ifdef V8_USE_EXTERNAL_STARTUP_DATA |
89 void SetSnapshotFromFile(StartupData* snapshot_blob); | 88 void SetSnapshotFromFile(StartupData* snapshot_blob); |
90 #endif | 89 #endif |
91 | 90 |
92 } // namespace internal | 91 } // namespace internal |
93 } // namespace v8 | 92 } // namespace v8 |
94 | 93 |
95 #endif // V8_SNAPSHOT_SNAPSHOT_H_ | 94 #endif // V8_SNAPSHOT_SNAPSHOT_H_ |
OLD | NEW |