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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 Handle<Context> CreateEnvironment( | 97 Handle<Context> CreateEnvironment( |
98 Isolate* isolate, | 98 Isolate* isolate, |
99 Handle<Object> global_object, | 99 Handle<Object> global_object, |
100 v8::Handle<v8::ObjectTemplate> global_template, | 100 v8::Handle<v8::ObjectTemplate> global_template, |
101 v8::ExtensionConfiguration* extensions); | 101 v8::ExtensionConfiguration* extensions); |
102 | 102 |
103 // Detach the environment from its outer global object. | 103 // Detach the environment from its outer global object. |
104 void DetachGlobal(Handle<Context> env); | 104 void DetachGlobal(Handle<Context> env); |
105 | 105 |
106 // Reattach an outer global object to an environment. | 106 // Reattach an outer global object to an environment. |
107 void ReattachGlobal(Handle<Context> env, Handle<Object> global_object); | 107 void ReattachGlobal(Handle<Context> env, Handle<JSGlobalProxy> global_proxy); |
108 | 108 |
109 // Traverses the pointers for memory management. | 109 // Traverses the pointers for memory management. |
110 void Iterate(ObjectVisitor* v); | 110 void Iterate(ObjectVisitor* v); |
111 | 111 |
112 // Accessor for the native scripts source code. | 112 // Accessor for the native scripts source code. |
113 Handle<String> NativesSourceLookup(int index); | 113 Handle<String> NativesSourceLookup(int index); |
114 | 114 |
115 // Tells whether bootstrapping is active. | 115 // Tells whether bootstrapping is active. |
116 bool IsActive() const { return nesting_ != 0; } | 116 bool IsActive() const { return nesting_ != 0; } |
117 | 117 |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 return length_; | 180 return length_; |
181 } | 181 } |
182 private: | 182 private: |
183 const char* data_; | 183 const char* data_; |
184 size_t length_; | 184 size_t length_; |
185 }; | 185 }; |
186 | 186 |
187 }} // namespace v8::internal | 187 }} // namespace v8::internal |
188 | 188 |
189 #endif // V8_BOOTSTRAPPER_H_ | 189 #endif // V8_BOOTSTRAPPER_H_ |
OLD | NEW |