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 "src/isolate.h" | 8 #include "src/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 FINAL { |
16 public: | 16 public: |
17 Handle<Oddball> NewOddball(Handle<Map> map, | 17 Handle<Oddball> NewOddball(Handle<Map> map, |
18 const char* to_string, | 18 const char* to_string, |
19 Handle<Object> to_number, | 19 Handle<Object> to_number, |
20 byte kind); | 20 byte kind); |
21 | 21 |
22 // Allocates a fixed array initialized with undefined values. | 22 // Allocates a fixed array initialized with undefined values. |
23 Handle<FixedArray> NewFixedArray( | 23 Handle<FixedArray> NewFixedArray( |
24 int size, | 24 int size, |
25 PretenureFlag pretenure = NOT_TENURED); | 25 PretenureFlag pretenure = NOT_TENURED); |
(...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
704 // Reinitialize a JSProxy into an (empty) JS object of respective type and | 704 // Reinitialize a JSProxy into an (empty) JS object of respective type and |
705 // size, but keeping the original prototype. The receiver must have at least | 705 // size, but keeping the original prototype. The receiver must have at least |
706 // the size of the new object. The object is reinitialized and behaves as an | 706 // the size of the new object. The object is reinitialized and behaves as an |
707 // object that has been freshly allocated. | 707 // object that has been freshly allocated. |
708 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); | 708 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); |
709 }; | 709 }; |
710 | 710 |
711 } } // namespace v8::internal | 711 } } // namespace v8::internal |
712 | 712 |
713 #endif // V8_FACTORY_H_ | 713 #endif // V8_FACTORY_H_ |
OLD | NEW |