| 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 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 // context. | 86 // context. |
| 87 class Bootstrapper { | 87 class Bootstrapper { |
| 88 public: | 88 public: |
| 89 // Requires: Heap::Setup has been called. | 89 // Requires: Heap::Setup has been called. |
| 90 void Initialize(bool create_heap_objects); | 90 void Initialize(bool create_heap_objects); |
| 91 void TearDown(); | 91 void TearDown(); |
| 92 | 92 |
| 93 // Creates a JavaScript Global Context with initial object graph. | 93 // Creates a JavaScript Global Context with initial object graph. |
| 94 // The returned value is a global handle casted to V8Environment*. | 94 // The returned value is a global handle casted to V8Environment*. |
| 95 Handle<Context> CreateEnvironment( | 95 Handle<Context> CreateEnvironment( |
| 96 Isolate* isolate, |
| 96 Handle<Object> global_object, | 97 Handle<Object> global_object, |
| 97 v8::Handle<v8::ObjectTemplate> global_template, | 98 v8::Handle<v8::ObjectTemplate> global_template, |
| 98 v8::ExtensionConfiguration* extensions); | 99 v8::ExtensionConfiguration* extensions); |
| 99 | 100 |
| 100 // Detach the environment from its outer global object. | 101 // Detach the environment from its outer global object. |
| 101 void DetachGlobal(Handle<Context> env); | 102 void DetachGlobal(Handle<Context> env); |
| 102 | 103 |
| 103 // Reattach an outer global object to an environment. | 104 // Reattach an outer global object to an environment. |
| 104 void ReattachGlobal(Handle<Context> env, Handle<Object> global_object); | 105 void ReattachGlobal(Handle<Context> env, Handle<Object> global_object); |
| 105 | 106 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 return length_; | 177 return length_; |
| 177 } | 178 } |
| 178 private: | 179 private: |
| 179 const char* data_; | 180 const char* data_; |
| 180 size_t length_; | 181 size_t length_; |
| 181 }; | 182 }; |
| 182 | 183 |
| 183 }} // namespace v8::internal | 184 }} // namespace v8::internal |
| 184 | 185 |
| 185 #endif // V8_BOOTSTRAPPER_H_ | 186 #endif // V8_BOOTSTRAPPER_H_ |
| OLD | NEW |