| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/elements-kind.h" | 5 #include "src/elements-kind.h" |
| 6 | 6 |
| 7 #include "src/api.h" | 7 #include "src/api.h" |
| 8 #include "src/base/lazy-instance.h" | 8 #include "src/base/lazy-instance.h" |
| 9 #include "src/elements.h" | 9 #include "src/elements.h" |
| 10 #include "src/objects-inl.h" |
| 10 #include "src/objects.h" | 11 #include "src/objects.h" |
| 11 | 12 |
| 12 namespace v8 { | 13 namespace v8 { |
| 13 namespace internal { | 14 namespace internal { |
| 14 | 15 |
| 15 | 16 |
| 16 int ElementsKindToShiftSize(ElementsKind elements_kind) { | 17 int ElementsKindToShiftSize(ElementsKind elements_kind) { |
| 17 switch (elements_kind) { | 18 switch (elements_kind) { |
| 18 case UINT8_ELEMENTS: | 19 case UINT8_ELEMENTS: |
| 19 case INT8_ELEMENTS: | 20 case INT8_ELEMENTS: |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 default: | 153 default: |
| 153 return false; | 154 return false; |
| 154 } | 155 } |
| 155 } | 156 } |
| 156 return false; | 157 return false; |
| 157 } | 158 } |
| 158 | 159 |
| 159 | 160 |
| 160 } // namespace internal | 161 } // namespace internal |
| 161 } // namespace v8 | 162 } // namespace v8 |
| OLD | NEW |