| OLD | NEW |
| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 GlobalContextType context_type = FULL_CONTEXT); | 83 GlobalContextType context_type = FULL_CONTEXT); |
| 84 | 84 |
| 85 Handle<JSGlobalProxy> NewRemoteContext( |
| 86 MaybeHandle<JSGlobalProxy> maybe_global_proxy, |
| 87 v8::Local<v8::ObjectTemplate> global_object_template); |
| 88 |
| 85 // Detach the environment from its outer global object. | 89 // Detach the environment from its outer global object. |
| 86 void DetachGlobal(Handle<Context> env); | 90 void DetachGlobal(Handle<Context> env); |
| 87 | 91 |
| 88 // Traverses the pointers for memory management. | 92 // Traverses the pointers for memory management. |
| 89 void Iterate(ObjectVisitor* v); | 93 void Iterate(ObjectVisitor* v); |
| 90 | 94 |
| 91 // Accessor for the native scripts source code. | 95 // Accessor for the native scripts source code. |
| 92 template <class Source> | 96 template <class Source> |
| 93 Handle<String> SourceLookup(int index); | 97 Handle<String> SourceLookup(int index); |
| 94 | 98 |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 | 174 |
| 171 private: | 175 private: |
| 172 const char* data_; | 176 const char* data_; |
| 173 size_t length_; | 177 size_t length_; |
| 174 }; | 178 }; |
| 175 | 179 |
| 176 } // namespace internal | 180 } // namespace internal |
| 177 } // namespace v8 | 181 } // namespace v8 |
| 178 | 182 |
| 179 #endif // V8_BOOTSTRAPPER_H_ | 183 #endif // V8_BOOTSTRAPPER_H_ |
| OLD | NEW |