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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 // Creates a JavaScript Global Context with initial object graph. | 98 // Creates a JavaScript Global Context with initial object graph. |
99 // The returned value is a global handle casted to V8Environment*. | 99 // The returned value is a global handle casted to V8Environment*. |
100 Handle<Context> CreateEnvironment( | 100 Handle<Context> CreateEnvironment( |
101 Handle<Object> global_object, | 101 Handle<Object> global_object, |
102 v8::Handle<v8::ObjectTemplate> global_template, | 102 v8::Handle<v8::ObjectTemplate> global_template, |
103 v8::ExtensionConfiguration* extensions); | 103 v8::ExtensionConfiguration* extensions); |
104 | 104 |
105 // Detach the environment from its outer global object. | 105 // Detach the environment from its outer global object. |
106 void DetachGlobal(Handle<Context> env); | 106 void DetachGlobal(Handle<Context> env); |
107 | 107 |
108 // Reattach an outer global object to an environment. | |
109 void ReattachGlobal(Handle<Context> env, Handle<JSGlobalProxy> global_proxy); | |
110 | |
111 // Traverses the pointers for memory management. | 108 // Traverses the pointers for memory management. |
112 void Iterate(ObjectVisitor* v); | 109 void Iterate(ObjectVisitor* v); |
113 | 110 |
114 // Accessor for the native scripts source code. | 111 // Accessor for the native scripts source code. |
115 Handle<String> NativesSourceLookup(int index); | 112 Handle<String> NativesSourceLookup(int index); |
116 | 113 |
117 // Tells whether bootstrapping is active. | 114 // Tells whether bootstrapping is active. |
118 bool IsActive() const { return nesting_ != 0; } | 115 bool IsActive() const { return nesting_ != 0; } |
119 | 116 |
120 // Support for thread preemption. | 117 // Support for thread preemption. |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 return length_; | 183 return length_; |
187 } | 184 } |
188 private: | 185 private: |
189 const char* data_; | 186 const char* data_; |
190 size_t length_; | 187 size_t length_; |
191 }; | 188 }; |
192 | 189 |
193 }} // namespace v8::internal | 190 }} // namespace v8::internal |
194 | 191 |
195 #endif // V8_BOOTSTRAPPER_H_ | 192 #endif // V8_BOOTSTRAPPER_H_ |
OLD | NEW |