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

Side by Side Diff: src/snapshot.h

Issue 853493003: Correctly reference global proxy in the partial snapshot. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: remove bogus check Created 5 years, 11 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/serialize.cc ('k') | src/snapshot-common.cc » ('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 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 #include "src/isolate.h" 5 #include "src/isolate.h"
6 6
7 #ifndef V8_SNAPSHOT_H_ 7 #ifndef V8_SNAPSHOT_H_
8 #define V8_SNAPSHOT_H_ 8 #define V8_SNAPSHOT_H_
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 14 matching lines...) Expand all
25 private: 25 private:
26 class EmbedsScriptBits : public BitField<bool, 0, 1> {}; 26 class EmbedsScriptBits : public BitField<bool, 0, 1> {};
27 uint32_t data_; 27 uint32_t data_;
28 }; 28 };
29 29
30 // Initialize the Isolate from the internal snapshot. Returns false if no 30 // Initialize the Isolate from the internal snapshot. Returns false if no
31 // snapshot could be found. 31 // snapshot could be found.
32 static bool Initialize(Isolate* isolate); 32 static bool Initialize(Isolate* isolate);
33 // Create a new context using the internal partial snapshot. 33 // Create a new context using the internal partial snapshot.
34 static MaybeHandle<Context> NewContextFromSnapshot( 34 static MaybeHandle<Context> NewContextFromSnapshot(
35 Isolate* isolate, Handle<FixedArray>* outdated_contexts_out); 35 Isolate* isolate, Handle<JSGlobalProxy> global_proxy,
36 Handle<FixedArray>* outdated_contexts_out);
36 37
37 static bool HaveASnapshotToStartFrom(); 38 static bool HaveASnapshotToStartFrom();
38 39
39 static bool EmbedsScript(); 40 static bool EmbedsScript();
40 41
41 // To be implemented by the snapshot source. 42 // To be implemented by the snapshot source.
42 static const v8::StartupData SnapshotBlob(); 43 static const v8::StartupData SnapshotBlob();
43 44
44 static v8::StartupData CreateSnapshotBlob( 45 static v8::StartupData CreateSnapshotBlob(
45 const Vector<const byte> startup_data, 46 const Vector<const byte> startup_data,
(...skipping 19 matching lines...) Expand all
65 DISALLOW_IMPLICIT_CONSTRUCTORS(Snapshot); 66 DISALLOW_IMPLICIT_CONSTRUCTORS(Snapshot);
66 }; 67 };
67 68
68 #ifdef V8_USE_EXTERNAL_STARTUP_DATA 69 #ifdef V8_USE_EXTERNAL_STARTUP_DATA
69 void SetSnapshotFromFile(StartupData* snapshot_blob); 70 void SetSnapshotFromFile(StartupData* snapshot_blob);
70 #endif 71 #endif
71 72
72 } } // namespace v8::internal 73 } } // namespace v8::internal
73 74
74 #endif // V8_SNAPSHOT_H_ 75 #endif // V8_SNAPSHOT_H_
OLDNEW
« no previous file with comments | « src/serialize.cc ('k') | src/snapshot-common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698