Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 13 matching lines...) Expand all Loading... | |
| 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 "globals.h" | 31 #include "globals.h" |
| 32 #include "handles.h" | 32 #include "handles.h" |
| 33 #include "heap.h" | 33 #include "heap.h" |
| 34 #include "isolate.h" | |
|
Mads Ager (chromium)
2011/07/12 12:03:26
Is isolate.h needed here? There are no other chang
danno
2011/07/13 08:59:52
Done.
| |
| 34 | 35 |
| 35 namespace v8 { | 36 namespace v8 { |
| 36 namespace internal { | 37 namespace internal { |
| 37 | 38 |
| 38 // Interface for handle based allocation. | 39 // Interface for handle based allocation. |
| 39 | 40 |
| 40 class Factory { | 41 class Factory { |
| 41 public: | 42 public: |
| 42 // Allocate a new uninitialized fixed array. | 43 // Allocate a new uninitialized fixed array. |
| 43 Handle<FixedArray> NewFixedArray( | 44 Handle<FixedArray> NewFixedArray( |
| (...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 449 // Update the map cache in the global context with (keys, map) | 450 // Update the map cache in the global context with (keys, map) |
| 450 Handle<MapCache> AddToMapCache(Handle<Context> context, | 451 Handle<MapCache> AddToMapCache(Handle<Context> context, |
| 451 Handle<FixedArray> keys, | 452 Handle<FixedArray> keys, |
| 452 Handle<Map> map); | 453 Handle<Map> map); |
| 453 }; | 454 }; |
| 454 | 455 |
| 455 | 456 |
| 456 } } // namespace v8::internal | 457 } } // namespace v8::internal |
| 457 | 458 |
| 458 #endif // V8_FACTORY_H_ | 459 #endif // V8_FACTORY_H_ |
| OLD | NEW |