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

Side by Side Diff: src/bootstrapper.h

Issue 2619203002: [serializer] pass internal fields deserializer callback as argument. (Closed)
Patch Set: Created 3 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/api.cc ('k') | src/bootstrapper.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_BOOTSTRAPPER_H_ 5 #ifndef V8_BOOTSTRAPPER_H_
6 #define V8_BOOTSTRAPPER_H_ 6 #define V8_BOOTSTRAPPER_H_
7 7
8 #include "src/factory.h" 8 #include "src/factory.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 // Requires: Heap::SetUp has been called. 73 // Requires: Heap::SetUp has been called.
74 void Initialize(bool create_heap_objects); 74 void Initialize(bool create_heap_objects);
75 void TearDown(); 75 void TearDown();
76 76
77 // Creates a JavaScript Global Context with initial object graph. 77 // Creates a JavaScript Global Context with initial object graph.
78 // The returned value is a global handle casted to V8Environment*. 78 // The returned value is a global handle casted to V8Environment*.
79 Handle<Context> CreateEnvironment( 79 Handle<Context> CreateEnvironment(
80 MaybeHandle<JSGlobalProxy> maybe_global_proxy, 80 MaybeHandle<JSGlobalProxy> maybe_global_proxy,
81 v8::Local<v8::ObjectTemplate> global_object_template, 81 v8::Local<v8::ObjectTemplate> global_object_template,
82 v8::ExtensionConfiguration* extensions, size_t context_snapshot_index, 82 v8::ExtensionConfiguration* extensions, size_t context_snapshot_index,
83 v8::DeserializeInternalFieldsCallback internal_fields_deserializer,
83 GlobalContextType context_type = FULL_CONTEXT); 84 GlobalContextType context_type = FULL_CONTEXT);
84 85
85 Handle<JSGlobalProxy> NewRemoteContext( 86 Handle<JSGlobalProxy> NewRemoteContext(
86 MaybeHandle<JSGlobalProxy> maybe_global_proxy, 87 MaybeHandle<JSGlobalProxy> maybe_global_proxy,
87 v8::Local<v8::ObjectTemplate> global_object_template); 88 v8::Local<v8::ObjectTemplate> global_object_template);
88 89
89 // Detach the environment from its outer global object. 90 // Detach the environment from its outer global object.
90 void DetachGlobal(Handle<Context> env); 91 void DetachGlobal(Handle<Context> env);
91 92
92 // Traverses the pointers for memory management. 93 // Traverses the pointers for memory management.
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 175
175 private: 176 private:
176 const char* data_; 177 const char* data_;
177 size_t length_; 178 size_t length_;
178 }; 179 };
179 180
180 } // namespace internal 181 } // namespace internal
181 } // namespace v8 182 } // namespace v8
182 183
183 #endif // V8_BOOTSTRAPPER_H_ 184 #endif // V8_BOOTSTRAPPER_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/bootstrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698