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