| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 return 0; | 218 return 0; |
| 219 case EXTERNAL_SHORT_ELEMENTS: | 219 case EXTERNAL_SHORT_ELEMENTS: |
| 220 case EXTERNAL_UNSIGNED_SHORT_ELEMENTS: | 220 case EXTERNAL_UNSIGNED_SHORT_ELEMENTS: |
| 221 return 1; | 221 return 1; |
| 222 case EXTERNAL_INT_ELEMENTS: | 222 case EXTERNAL_INT_ELEMENTS: |
| 223 case EXTERNAL_UNSIGNED_INT_ELEMENTS: | 223 case EXTERNAL_UNSIGNED_INT_ELEMENTS: |
| 224 case EXTERNAL_FLOAT_ELEMENTS: | 224 case EXTERNAL_FLOAT_ELEMENTS: |
| 225 return 2; | 225 return 2; |
| 226 case EXTERNAL_DOUBLE_ELEMENTS: | 226 case EXTERNAL_DOUBLE_ELEMENTS: |
| 227 case FAST_DOUBLE_ELEMENTS: | 227 case FAST_DOUBLE_ELEMENTS: |
| 228 case FAST_HOLEY_DOUBLE_ELEMENTS: |
| 228 return 3; | 229 return 3; |
| 229 case FAST_SMI_ONLY_ELEMENTS: | 230 case FAST_SMI_ELEMENTS: |
| 230 case FAST_ELEMENTS: | 231 case FAST_ELEMENTS: |
| 232 case FAST_HOLEY_SMI_ELEMENTS: |
| 233 case FAST_HOLEY_ELEMENTS: |
| 231 case DICTIONARY_ELEMENTS: | 234 case DICTIONARY_ELEMENTS: |
| 232 case NON_STRICT_ARGUMENTS_ELEMENTS: | 235 case NON_STRICT_ARGUMENTS_ELEMENTS: |
| 233 return kPointerSizeLog2; | 236 return kPointerSizeLog2; |
| 234 } | 237 } |
| 235 UNREACHABLE(); | 238 UNREACHABLE(); |
| 236 return 0; | 239 return 0; |
| 237 } | 240 } |
| 238 | 241 |
| 239 | 242 |
| 240 } } // namespace v8::internal | 243 } } // namespace v8::internal |
| OLD | NEW |