OLD | NEW |
1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 Proxy::kSize); | 94 Proxy::kSize); |
95 | 95 |
96 case FILLER_TYPE: | 96 case FILLER_TYPE: |
97 return kVisitDataObjectGeneric; | 97 return kVisitDataObjectGeneric; |
98 | 98 |
99 case JS_OBJECT_TYPE: | 99 case JS_OBJECT_TYPE: |
100 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: | 100 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: |
101 case JS_VALUE_TYPE: | 101 case JS_VALUE_TYPE: |
102 case JS_ARRAY_TYPE: | 102 case JS_ARRAY_TYPE: |
103 case JS_REGEXP_TYPE: | 103 case JS_REGEXP_TYPE: |
104 case JS_FUNCTION_TYPE: | |
105 case JS_GLOBAL_PROXY_TYPE: | 104 case JS_GLOBAL_PROXY_TYPE: |
106 case JS_GLOBAL_OBJECT_TYPE: | 105 case JS_GLOBAL_OBJECT_TYPE: |
107 case JS_BUILTINS_OBJECT_TYPE: | 106 case JS_BUILTINS_OBJECT_TYPE: |
108 return GetVisitorIdForSize(kVisitJSObject, | 107 return GetVisitorIdForSize(kVisitJSObject, |
109 kVisitJSObjectGeneric, | 108 kVisitJSObjectGeneric, |
110 instance_size); | 109 instance_size); |
111 | 110 |
| 111 case JS_FUNCTION_TYPE: |
| 112 return kVisitJSFunction; |
| 113 |
112 case HEAP_NUMBER_TYPE: | 114 case HEAP_NUMBER_TYPE: |
113 case PIXEL_ARRAY_TYPE: | 115 case PIXEL_ARRAY_TYPE: |
114 case EXTERNAL_BYTE_ARRAY_TYPE: | 116 case EXTERNAL_BYTE_ARRAY_TYPE: |
115 case EXTERNAL_UNSIGNED_BYTE_ARRAY_TYPE: | 117 case EXTERNAL_UNSIGNED_BYTE_ARRAY_TYPE: |
116 case EXTERNAL_SHORT_ARRAY_TYPE: | 118 case EXTERNAL_SHORT_ARRAY_TYPE: |
117 case EXTERNAL_UNSIGNED_SHORT_ARRAY_TYPE: | 119 case EXTERNAL_UNSIGNED_SHORT_ARRAY_TYPE: |
118 case EXTERNAL_INT_ARRAY_TYPE: | 120 case EXTERNAL_INT_ARRAY_TYPE: |
119 case EXTERNAL_UNSIGNED_INT_ARRAY_TYPE: | 121 case EXTERNAL_UNSIGNED_INT_ARRAY_TYPE: |
120 case EXTERNAL_FLOAT_ARRAY_TYPE: | 122 case EXTERNAL_FLOAT_ARRAY_TYPE: |
121 return GetVisitorIdForSize(kVisitDataObject, | 123 return GetVisitorIdForSize(kVisitDataObject, |
122 kVisitDataObjectGeneric, | 124 kVisitDataObjectGeneric, |
123 instance_size); | 125 instance_size); |
124 | 126 |
125 #define MAKE_STRUCT_CASE(NAME, Name, name) \ | 127 #define MAKE_STRUCT_CASE(NAME, Name, name) \ |
126 case NAME##_TYPE: | 128 case NAME##_TYPE: |
127 STRUCT_LIST(MAKE_STRUCT_CASE) | 129 STRUCT_LIST(MAKE_STRUCT_CASE) |
128 #undef MAKE_STRUCT_CASE | 130 #undef MAKE_STRUCT_CASE |
129 return GetVisitorIdForSize(kVisitStruct, | 131 return GetVisitorIdForSize(kVisitStruct, |
130 kVisitStructGeneric, | 132 kVisitStructGeneric, |
131 instance_size); | 133 instance_size); |
132 | 134 |
133 default: | 135 default: |
134 UNREACHABLE(); | 136 UNREACHABLE(); |
135 return kVisitorIdCount; | 137 return kVisitorIdCount; |
136 } | 138 } |
137 } | 139 } |
138 | 140 |
139 } } // namespace v8::internal | 141 } } // namespace v8::internal |
OLD | NEW |