| OLD | NEW |
| 1 // Copyright 2009 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 |
| 11 // with the distribution. | 11 // with the distribution. |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 switch (instance_type) { | 69 switch (instance_type) { |
| 70 case BYTE_ARRAY_TYPE: | 70 case BYTE_ARRAY_TYPE: |
| 71 return kVisitByteArray; | 71 return kVisitByteArray; |
| 72 | 72 |
| 73 case FREE_SPACE_TYPE: | 73 case FREE_SPACE_TYPE: |
| 74 return kVisitFreeSpace; | 74 return kVisitFreeSpace; |
| 75 | 75 |
| 76 case FIXED_ARRAY_TYPE: | 76 case FIXED_ARRAY_TYPE: |
| 77 return kVisitFixedArray; | 77 return kVisitFixedArray; |
| 78 | 78 |
| 79 case FIXED_DOUBLE_ARRAY_TYPE: |
| 80 return kVisitFixedDoubleArray; |
| 81 |
| 79 case ODDBALL_TYPE: | 82 case ODDBALL_TYPE: |
| 80 return kVisitOddball; | 83 return kVisitOddball; |
| 81 | 84 |
| 82 case MAP_TYPE: | 85 case MAP_TYPE: |
| 83 return kVisitMap; | 86 return kVisitMap; |
| 84 | 87 |
| 85 case CODE_TYPE: | 88 case CODE_TYPE: |
| 86 return kVisitCode; | 89 return kVisitCode; |
| 87 | 90 |
| 88 case JS_GLOBAL_PROPERTY_CELL_TYPE: | 91 case JS_GLOBAL_PROPERTY_CELL_TYPE: |
| 89 return kVisitPropertyCell; | 92 return kVisitPropertyCell; |
| 90 | 93 |
| 94 case JS_REGEXP_TYPE: |
| 95 return kVisitJSRegExp; |
| 96 |
| 91 case SHARED_FUNCTION_INFO_TYPE: | 97 case SHARED_FUNCTION_INFO_TYPE: |
| 92 return kVisitSharedFunctionInfo; | 98 return kVisitSharedFunctionInfo; |
| 93 | 99 |
| 94 case JS_PROXY_TYPE: | 100 case JS_PROXY_TYPE: |
| 95 return GetVisitorIdForSize(kVisitStruct, | 101 return GetVisitorIdForSize(kVisitStruct, |
| 96 kVisitStructGeneric, | 102 kVisitStructGeneric, |
| 97 JSProxy::kSize); | 103 JSProxy::kSize); |
| 98 | 104 |
| 99 case FOREIGN_TYPE: | 105 case FOREIGN_TYPE: |
| 100 return GetVisitorIdForSize(kVisitDataObject, | 106 return GetVisitorIdForSize(kVisitDataObject, |
| 101 kVisitDataObjectGeneric, | 107 kVisitDataObjectGeneric, |
| 102 Foreign::kSize); | 108 Foreign::kSize); |
| 103 | 109 |
| 104 case FILLER_TYPE: | 110 case FILLER_TYPE: |
| 105 return kVisitDataObjectGeneric; | 111 return kVisitDataObjectGeneric; |
| 106 | 112 |
| 107 case JS_OBJECT_TYPE: | 113 case JS_OBJECT_TYPE: |
| 108 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: | 114 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: |
| 109 case JS_VALUE_TYPE: | 115 case JS_VALUE_TYPE: |
| 110 case JS_ARRAY_TYPE: | 116 case JS_ARRAY_TYPE: |
| 111 case JS_REGEXP_TYPE: | |
| 112 case JS_GLOBAL_PROXY_TYPE: | 117 case JS_GLOBAL_PROXY_TYPE: |
| 113 case JS_GLOBAL_OBJECT_TYPE: | 118 case JS_GLOBAL_OBJECT_TYPE: |
| 114 case JS_BUILTINS_OBJECT_TYPE: | 119 case JS_BUILTINS_OBJECT_TYPE: |
| 115 case JS_MESSAGE_OBJECT_TYPE: | 120 case JS_MESSAGE_OBJECT_TYPE: |
| 116 return GetVisitorIdForSize(kVisitJSObject, | 121 return GetVisitorIdForSize(kVisitJSObject, |
| 117 kVisitJSObjectGeneric, | 122 kVisitJSObjectGeneric, |
| 118 instance_size); | 123 instance_size); |
| 119 | 124 |
| 120 case JS_FUNCTION_TYPE: | 125 case JS_FUNCTION_TYPE: |
| 121 return kVisitJSFunction; | 126 return kVisitJSFunction; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 142 kVisitStructGeneric, | 147 kVisitStructGeneric, |
| 143 instance_size); | 148 instance_size); |
| 144 | 149 |
| 145 default: | 150 default: |
| 146 UNREACHABLE(); | 151 UNREACHABLE(); |
| 147 return kVisitorIdCount; | 152 return kVisitorIdCount; |
| 148 } | 153 } |
| 149 } | 154 } |
| 150 | 155 |
| 151 } } // namespace v8::internal | 156 } } // namespace v8::internal |
| OLD | NEW |