| OLD | NEW |
| 1 // Copyright 2012 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 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 case EXTERNAL_FLOAT64_ELEMENTS: | 59 case EXTERNAL_FLOAT64_ELEMENTS: |
| 60 case FAST_DOUBLE_ELEMENTS: | 60 case FAST_DOUBLE_ELEMENTS: |
| 61 case FAST_HOLEY_DOUBLE_ELEMENTS: | 61 case FAST_HOLEY_DOUBLE_ELEMENTS: |
| 62 case FLOAT64_ELEMENTS: | 62 case FLOAT64_ELEMENTS: |
| 63 return 3; | 63 return 3; |
| 64 case FAST_SMI_ELEMENTS: | 64 case FAST_SMI_ELEMENTS: |
| 65 case FAST_ELEMENTS: | 65 case FAST_ELEMENTS: |
| 66 case FAST_HOLEY_SMI_ELEMENTS: | 66 case FAST_HOLEY_SMI_ELEMENTS: |
| 67 case FAST_HOLEY_ELEMENTS: | 67 case FAST_HOLEY_ELEMENTS: |
| 68 case DICTIONARY_ELEMENTS: | 68 case DICTIONARY_ELEMENTS: |
| 69 case NON_STRICT_ARGUMENTS_ELEMENTS: | 69 case SLOPPY_ARGUMENTS_ELEMENTS: |
| 70 return kPointerSizeLog2; | 70 return kPointerSizeLog2; |
| 71 } | 71 } |
| 72 UNREACHABLE(); | 72 UNREACHABLE(); |
| 73 return 0; | 73 return 0; |
| 74 } | 74 } |
| 75 | 75 |
| 76 | 76 |
| 77 const char* ElementsKindToString(ElementsKind kind) { | 77 const char* ElementsKindToString(ElementsKind kind) { |
| 78 ElementsAccessor* accessor = ElementsAccessor::ForKind(kind); | 78 ElementsAccessor* accessor = ElementsAccessor::ForKind(kind); |
| 79 return accessor->name(); | 79 return accessor->name(); |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 return to_kind == FAST_HOLEY_ELEMENTS; | 178 return to_kind == FAST_HOLEY_ELEMENTS; |
| 179 case FAST_HOLEY_ELEMENTS: | 179 case FAST_HOLEY_ELEMENTS: |
| 180 return false; | 180 return false; |
| 181 default: | 181 default: |
| 182 return false; | 182 return false; |
| 183 } | 183 } |
| 184 } | 184 } |
| 185 | 185 |
| 186 | 186 |
| 187 } } // namespace v8::internal | 187 } } // namespace v8::internal |
| OLD | NEW |