Chromium Code Reviews| 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 11 matching lines...) Expand all Loading... | |
| 22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 | 27 |
| 28 #ifndef V8_FACTORY_H_ | 28 #ifndef V8_FACTORY_H_ |
| 29 #define V8_FACTORY_H_ | 29 #define V8_FACTORY_H_ |
| 30 | 30 |
| 31 #include "heap.h" | 31 #include "heap.h" |
| 32 #include "zone-inl.h" | |
| 32 | 33 |
| 33 namespace v8 { namespace internal { | 34 namespace v8 { namespace internal { |
| 34 | 35 |
| 35 | 36 |
| 36 // Interface for handle based allocation. | 37 // Interface for handle based allocation. |
| 37 | 38 |
| 38 class Factory : public AllStatic { | 39 class Factory : public AllStatic { |
| 39 public: | 40 public: |
| 40 // Allocate a new fixed array with undefined entries. | 41 // Allocate a new fixed array with undefined entries. |
| 41 static Handle<FixedArray> NewFixedArray( | 42 static Handle<FixedArray> NewFixedArray( |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 195 | 196 |
| 196 static Handle<JSFunction> NewFunction(Handle<String> name, | 197 static Handle<JSFunction> NewFunction(Handle<String> name, |
| 197 Handle<Object> prototype); | 198 Handle<Object> prototype); |
| 198 | 199 |
| 199 static Handle<JSFunction> NewFunction(Handle<Object> super, bool is_global); | 200 static Handle<JSFunction> NewFunction(Handle<Object> super, bool is_global); |
| 200 | 201 |
| 201 static Handle<JSFunction> NewFunctionFromBoilerplate( | 202 static Handle<JSFunction> NewFunctionFromBoilerplate( |
| 202 Handle<JSFunction> boilerplate, | 203 Handle<JSFunction> boilerplate, |
| 203 Handle<Context> context); | 204 Handle<Context> context); |
| 204 | 205 |
| 205 static Handle<Code> NewCode(const CodeDesc& desc, ScopeInfo<>* sinfo, | 206 static Handle<Code> NewCode(const CodeDesc& desc, |
| 207 ZoneScopeInfo* sinfo, | |
| 206 Code::Flags flags, Handle<Object> self_reference); | 208 Code::Flags flags, Handle<Object> self_reference); |
|
Kevin Millikin (Chromium)
2009/05/18 09:16:19
Newline before the Handle<Object>.
| |
| 207 | 209 |
| 208 static Handle<Code> CopyCode(Handle<Code> code); | 210 static Handle<Code> CopyCode(Handle<Code> code); |
| 209 | 211 |
| 210 static Handle<Object> ToObject(Handle<Object> object, | 212 static Handle<Object> ToObject(Handle<Object> object, |
| 211 Handle<Context> global_context); | 213 Handle<Context> global_context); |
| 212 | 214 |
| 213 // Interface for creating error objects. | 215 // Interface for creating error objects. |
| 214 | 216 |
| 215 static Handle<Object> NewError(const char* maker, const char* type, | 217 static Handle<Object> NewError(const char* maker, const char* type, |
| 216 Handle<JSArray> args); | 218 Handle<JSArray> args); |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 353 // Update the map cache in the global context with (keys, map) | 355 // Update the map cache in the global context with (keys, map) |
| 354 static Handle<MapCache> AddToMapCache(Handle<Context> context, | 356 static Handle<MapCache> AddToMapCache(Handle<Context> context, |
| 355 Handle<FixedArray> keys, | 357 Handle<FixedArray> keys, |
| 356 Handle<Map> map); | 358 Handle<Map> map); |
| 357 }; | 359 }; |
| 358 | 360 |
| 359 | 361 |
| 360 } } // namespace v8::internal | 362 } } // namespace v8::internal |
| 361 | 363 |
| 362 #endif // V8_FACTORY_H_ | 364 #endif // V8_FACTORY_H_ |
| OLD | NEW |