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 "v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "arguments.h" | 7 #include "src/arguments.h" |
8 #include "conversions.h" | 8 #include "src/conversions.h" |
9 #include "elements.h" | 9 #include "src/elements.h" |
10 #include "objects.h" | 10 #include "src/objects.h" |
11 #include "utils.h" | 11 #include "src/utils.h" |
12 | 12 |
13 // Each concrete ElementsAccessor can handle exactly one ElementsKind, | 13 // Each concrete ElementsAccessor can handle exactly one ElementsKind, |
14 // several abstract ElementsAccessor classes are used to allow sharing | 14 // several abstract ElementsAccessor classes are used to allow sharing |
15 // common code. | 15 // common code. |
16 // | 16 // |
17 // Inheritance hierarchy: | 17 // Inheritance hierarchy: |
18 // - ElementsAccessorBase (abstract) | 18 // - ElementsAccessorBase (abstract) |
19 // - FastElementsAccessor (abstract) | 19 // - FastElementsAccessor (abstract) |
20 // - FastSmiOrObjectElementsAccessor | 20 // - FastSmiOrObjectElementsAccessor |
21 // - FastPackedSmiElementsAccessor | 21 // - FastPackedSmiElementsAccessor |
(...skipping 1970 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1992 UNREACHABLE(); | 1992 UNREACHABLE(); |
1993 break; | 1993 break; |
1994 } | 1994 } |
1995 | 1995 |
1996 array->set_elements(*elms); | 1996 array->set_elements(*elms); |
1997 array->set_length(Smi::FromInt(number_of_elements)); | 1997 array->set_length(Smi::FromInt(number_of_elements)); |
1998 return array; | 1998 return array; |
1999 } | 1999 } |
2000 | 2000 |
2001 } } // namespace v8::internal | 2001 } } // namespace v8::internal |
OLD | NEW |