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/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/arguments.h" | 7 #include "src/arguments.h" |
8 #include "src/conversions.h" | 8 #include "src/conversions.h" |
9 #include "src/elements.h" | 9 #include "src/elements.h" |
10 #include "src/messages.h" | 10 #include "src/messages.h" |
(...skipping 1882 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1893 default: | 1893 default: |
1894 UNREACHABLE(); | 1894 UNREACHABLE(); |
1895 break; | 1895 break; |
1896 } | 1896 } |
1897 | 1897 |
1898 array->set_elements(*elms); | 1898 array->set_elements(*elms); |
1899 array->set_length(Smi::FromInt(number_of_elements)); | 1899 array->set_length(Smi::FromInt(number_of_elements)); |
1900 return array; | 1900 return array; |
1901 } | 1901 } |
1902 | 1902 |
1903 } } // namespace v8::internal | 1903 } // namespace internal |
| 1904 } // namespace v8 |
OLD | NEW |