OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 | 81 |
82 case MAP_TYPE: | 82 case MAP_TYPE: |
83 return kVisitMap; | 83 return kVisitMap; |
84 | 84 |
85 case CODE_TYPE: | 85 case CODE_TYPE: |
86 return kVisitCode; | 86 return kVisitCode; |
87 | 87 |
88 case JS_GLOBAL_PROPERTY_CELL_TYPE: | 88 case JS_GLOBAL_PROPERTY_CELL_TYPE: |
89 return kVisitPropertyCell; | 89 return kVisitPropertyCell; |
90 | 90 |
| 91 case JS_REGEXP_TYPE: |
| 92 return kVisitJSRegExp; |
| 93 |
91 case SHARED_FUNCTION_INFO_TYPE: | 94 case SHARED_FUNCTION_INFO_TYPE: |
92 return kVisitSharedFunctionInfo; | 95 return kVisitSharedFunctionInfo; |
93 | 96 |
94 case JS_PROXY_TYPE: | 97 case JS_PROXY_TYPE: |
95 return GetVisitorIdForSize(kVisitStruct, | 98 return GetVisitorIdForSize(kVisitStruct, |
96 kVisitStructGeneric, | 99 kVisitStructGeneric, |
97 JSProxy::kSize); | 100 JSProxy::kSize); |
98 | 101 |
99 case FOREIGN_TYPE: | 102 case FOREIGN_TYPE: |
100 return GetVisitorIdForSize(kVisitDataObject, | 103 return GetVisitorIdForSize(kVisitDataObject, |
101 kVisitDataObjectGeneric, | 104 kVisitDataObjectGeneric, |
102 Foreign::kSize); | 105 Foreign::kSize); |
103 | 106 |
104 case FILLER_TYPE: | 107 case FILLER_TYPE: |
105 return kVisitDataObjectGeneric; | 108 return kVisitDataObjectGeneric; |
106 | 109 |
107 case JS_OBJECT_TYPE: | 110 case JS_OBJECT_TYPE: |
108 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: | 111 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: |
109 case JS_VALUE_TYPE: | 112 case JS_VALUE_TYPE: |
110 case JS_ARRAY_TYPE: | 113 case JS_ARRAY_TYPE: |
111 case JS_REGEXP_TYPE: | |
112 case JS_GLOBAL_PROXY_TYPE: | 114 case JS_GLOBAL_PROXY_TYPE: |
113 case JS_GLOBAL_OBJECT_TYPE: | 115 case JS_GLOBAL_OBJECT_TYPE: |
114 case JS_BUILTINS_OBJECT_TYPE: | 116 case JS_BUILTINS_OBJECT_TYPE: |
115 case JS_MESSAGE_OBJECT_TYPE: | 117 case JS_MESSAGE_OBJECT_TYPE: |
116 return GetVisitorIdForSize(kVisitJSObject, | 118 return GetVisitorIdForSize(kVisitJSObject, |
117 kVisitJSObjectGeneric, | 119 kVisitJSObjectGeneric, |
118 instance_size); | 120 instance_size); |
119 | 121 |
120 case JS_FUNCTION_TYPE: | 122 case JS_FUNCTION_TYPE: |
121 return kVisitJSFunction; | 123 return kVisitJSFunction; |
(...skipping 20 matching lines...) Expand all Loading... |
142 kVisitStructGeneric, | 144 kVisitStructGeneric, |
143 instance_size); | 145 instance_size); |
144 | 146 |
145 default: | 147 default: |
146 UNREACHABLE(); | 148 UNREACHABLE(); |
147 return kVisitorIdCount; | 149 return kVisitorIdCount; |
148 } | 150 } |
149 } | 151 } |
150 | 152 |
151 } } // namespace v8::internal | 153 } } // namespace v8::internal |
OLD | NEW |