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 #include "src/messages.h" | 9 #include "src/messages.h" |
10 | 10 |
11 namespace v8 { | 11 namespace v8 { |
12 namespace internal { | 12 namespace internal { |
13 | 13 |
14 class FeedbackVectorSpec; | 14 class FeedbackVectorSpec; |
15 | 15 |
16 // Interface for handle based allocation. | 16 // Interface for handle based allocation. |
17 class Factory FINAL { | 17 class Factory final { |
18 public: | 18 public: |
19 Handle<Oddball> NewOddball(Handle<Map> map, | 19 Handle<Oddball> NewOddball(Handle<Map> map, |
20 const char* to_string, | 20 const char* to_string, |
21 Handle<Object> to_number, | 21 Handle<Object> to_number, |
22 byte kind); | 22 byte kind); |
23 | 23 |
24 // Allocates a fixed array initialized with undefined values. | 24 // Allocates a fixed array initialized with undefined values. |
25 Handle<FixedArray> NewFixedArray( | 25 Handle<FixedArray> NewFixedArray( |
26 int size, | 26 int size, |
27 PretenureFlag pretenure = NOT_TENURED); | 27 PretenureFlag pretenure = NOT_TENURED); |
(...skipping 712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
740 // Reinitialize a JSProxy into an (empty) JS object of respective type and | 740 // Reinitialize a JSProxy into an (empty) JS object of respective type and |
741 // size, but keeping the original prototype. The receiver must have at least | 741 // size, but keeping the original prototype. The receiver must have at least |
742 // the size of the new object. The object is reinitialized and behaves as an | 742 // the size of the new object. The object is reinitialized and behaves as an |
743 // object that has been freshly allocated. | 743 // object that has been freshly allocated. |
744 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); | 744 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); |
745 }; | 745 }; |
746 | 746 |
747 } } // namespace v8::internal | 747 } } // namespace v8::internal |
748 | 748 |
749 #endif // V8_FACTORY_H_ | 749 #endif // V8_FACTORY_H_ |
OLD | NEW |