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 |
17 // Allocates a fixed array initialized with undefined values. | 22 // Allocates a fixed array initialized with undefined values. |
18 Handle<FixedArray> NewFixedArray( | 23 Handle<FixedArray> NewFixedArray( |
19 int size, | 24 int size, |
20 PretenureFlag pretenure = NOT_TENURED); | 25 PretenureFlag pretenure = NOT_TENURED); |
21 | 26 |
22 // Allocate a new fixed array with non-existing entries (the hole). | 27 // Allocate a new fixed array with non-existing entries (the hole). |
23 Handle<FixedArray> NewFixedArrayWithHoles( | 28 Handle<FixedArray> NewFixedArrayWithHoles( |
24 int size, | 29 int size, |
25 PretenureFlag pretenure = NOT_TENURED); | 30 PretenureFlag pretenure = NOT_TENURED); |
26 | 31 |
(...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
638 | 643 |
639 // Update the map cache in the native context with (keys, map) | 644 // Update the map cache in the native context with (keys, map) |
640 Handle<MapCache> AddToMapCache(Handle<Context> context, | 645 Handle<MapCache> AddToMapCache(Handle<Context> context, |
641 Handle<FixedArray> keys, | 646 Handle<FixedArray> keys, |
642 Handle<Map> map); | 647 Handle<Map> map); |
643 }; | 648 }; |
644 | 649 |
645 } } // namespace v8::internal | 650 } } // namespace v8::internal |
646 | 651 |
647 #endif // V8_FACTORY_H_ | 652 #endif // V8_FACTORY_H_ |
OLD | NEW |