| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 } else { | 57 } else { |
| 58 return kVisitConsString; | 58 return kVisitConsString; |
| 59 } | 59 } |
| 60 | 60 |
| 61 case kSlicedStringTag: | 61 case kSlicedStringTag: |
| 62 return kVisitSlicedString; | 62 return kVisitSlicedString; |
| 63 | 63 |
| 64 case kExternalStringTag: | 64 case kExternalStringTag: |
| 65 return GetVisitorIdForSize(kVisitDataObject, | 65 return GetVisitorIdForSize(kVisitDataObject, |
| 66 kVisitDataObjectGeneric, | 66 kVisitDataObjectGeneric, |
| 67 ExternalString::kSize); | 67 instance_size); |
| 68 } | 68 } |
| 69 UNREACHABLE(); | 69 UNREACHABLE(); |
| 70 } | 70 } |
| 71 | 71 |
| 72 switch (instance_type) { | 72 switch (instance_type) { |
| 73 case BYTE_ARRAY_TYPE: | 73 case BYTE_ARRAY_TYPE: |
| 74 return kVisitByteArray; | 74 return kVisitByteArray; |
| 75 | 75 |
| 76 case FREE_SPACE_TYPE: | 76 case FREE_SPACE_TYPE: |
| 77 return kVisitFreeSpace; | 77 return kVisitFreeSpace; |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 kVisitStructGeneric, | 168 kVisitStructGeneric, |
| 169 instance_size); | 169 instance_size); |
| 170 | 170 |
| 171 default: | 171 default: |
| 172 UNREACHABLE(); | 172 UNREACHABLE(); |
| 173 return kVisitorIdCount; | 173 return kVisitorIdCount; |
| 174 } | 174 } |
| 175 } | 175 } |
| 176 | 176 |
| 177 } } // namespace v8::internal | 177 } } // namespace v8::internal |
| OLD | NEW |