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 #include "src/type-feedback-vector.h" |
10 | 11 |
11 namespace v8 { | 12 namespace v8 { |
12 namespace internal { | 13 namespace internal { |
13 | 14 |
14 // Interface for handle based allocation. | 15 // Interface for handle based allocation. |
15 class Factory final { | 16 class Factory final { |
16 public: | 17 public: |
17 Handle<Oddball> NewOddball(Handle<Map> map, const char* to_string, | 18 Handle<Oddball> NewOddball(Handle<Map> map, const char* to_string, |
18 Handle<Object> to_number, const char* type_of, | 19 Handle<Object> to_number, const char* type_of, |
19 byte kind); | 20 byte kind); |
(...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
712 // size, but keeping the original prototype. The receiver must have at least | 713 // size, but keeping the original prototype. The receiver must have at least |
713 // the size of the new object. The object is reinitialized and behaves as an | 714 // the size of the new object. The object is reinitialized and behaves as an |
714 // object that has been freshly allocated. | 715 // object that has been freshly allocated. |
715 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); | 716 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); |
716 }; | 717 }; |
717 | 718 |
718 } // namespace internal | 719 } // namespace internal |
719 } // namespace v8 | 720 } // namespace v8 |
720 | 721 |
721 #endif // V8_FACTORY_H_ | 722 #endif // V8_FACTORY_H_ |
OLD | NEW |