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 StaticFeedbackVectorSpec; |
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, const char* to_string, | 19 Handle<Oddball> NewOddball(Handle<Map> map, const char* to_string, |
20 Handle<Object> to_number, const char* type_of, | 20 Handle<Object> to_number, const char* type_of, |
21 byte kind); | 21 byte kind); |
22 | 22 |
23 // Allocates a fixed array initialized with undefined values. | 23 // Allocates a fixed array initialized with undefined values. |
24 Handle<FixedArray> NewFixedArray( | 24 Handle<FixedArray> NewFixedArray( |
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
727 // Reinitialize a JSProxy into an (empty) JS object of respective type and | 727 // Reinitialize a JSProxy into an (empty) JS object of respective type and |
728 // size, but keeping the original prototype. The receiver must have at least | 728 // size, but keeping the original prototype. The receiver must have at least |
729 // the size of the new object. The object is reinitialized and behaves as an | 729 // the size of the new object. The object is reinitialized and behaves as an |
730 // object that has been freshly allocated. | 730 // object that has been freshly allocated. |
731 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); | 731 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); |
732 }; | 732 }; |
733 | 733 |
734 } } // namespace v8::internal | 734 } } // namespace v8::internal |
735 | 735 |
736 #endif // V8_FACTORY_H_ | 736 #endif // V8_FACTORY_H_ |
OLD | NEW |