| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_FACTORY_H_ | 5 #ifndef V8_FACTORY_H_ |
| 6 #define V8_FACTORY_H_ | 6 #define V8_FACTORY_H_ |
| 7 | 7 |
| 8 #include "isolate.h" | 8 #include "isolate.h" |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| 11 namespace internal { | 11 namespace internal { |
| 12 | 12 |
| 13 // Interface for handle based allocation. | 13 // Interface for handle based allocation. |
| 14 | 14 |
| 15 class Factory V8_FINAL { | 15 class Factory V8_FINAL { |
| 16 public: | 16 public: |
| 17 Handle<Oddball> NewOddball(Handle<Map> map, | |
| 18 const char* to_string, | |
| 19 Handle<Object> to_number, | |
| 20 byte kind); | |
| 21 | |
| 22 // Allocates a fixed array initialized with undefined values. | 17 // Allocates a fixed array initialized with undefined values. |
| 23 Handle<FixedArray> NewFixedArray( | 18 Handle<FixedArray> NewFixedArray( |
| 24 int size, | 19 int size, |
| 25 PretenureFlag pretenure = NOT_TENURED); | 20 PretenureFlag pretenure = NOT_TENURED); |
| 26 | 21 |
| 27 // Allocate a new fixed array with non-existing entries (the hole). | 22 // Allocate a new fixed array with non-existing entries (the hole). |
| 28 Handle<FixedArray> NewFixedArrayWithHoles( | 23 Handle<FixedArray> NewFixedArrayWithHoles( |
| 29 int size, | 24 int size, |
| 30 PretenureFlag pretenure = NOT_TENURED); | 25 PretenureFlag pretenure = NOT_TENURED); |
| 31 | 26 |
| (...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 640 | 635 |
| 641 // Update the map cache in the native context with (keys, map) | 636 // Update the map cache in the native context with (keys, map) |
| 642 Handle<MapCache> AddToMapCache(Handle<Context> context, | 637 Handle<MapCache> AddToMapCache(Handle<Context> context, |
| 643 Handle<FixedArray> keys, | 638 Handle<FixedArray> keys, |
| 644 Handle<Map> map); | 639 Handle<Map> map); |
| 645 }; | 640 }; |
| 646 | 641 |
| 647 } } // namespace v8::internal | 642 } } // namespace v8::internal |
| 648 | 643 |
| 649 #endif // V8_FACTORY_H_ | 644 #endif // V8_FACTORY_H_ |
| OLD | NEW |