OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/runtime/runtime-utils.h" | 8 #include "src/runtime/runtime-utils.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 833 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
844 } | 844 } |
845 int32_t int_value = Smi::cast(element)->value(); | 845 int32_t int_value = Smi::cast(element)->value(); |
846 double_storage->set(j, int_value); | 846 double_storage->set(j, int_value); |
847 j++; | 847 j++; |
848 } | 848 } |
849 break; | 849 break; |
850 } | 850 } |
851 case FAST_HOLEY_ELEMENTS: | 851 case FAST_HOLEY_ELEMENTS: |
852 case FAST_ELEMENTS: | 852 case FAST_ELEMENTS: |
853 case DICTIONARY_ELEMENTS: | 853 case DICTIONARY_ELEMENTS: |
854 DCHECK_EQ(0, length); | 854 DCHECK_EQ(0u, length); |
855 break; | 855 break; |
856 default: | 856 default: |
857 UNREACHABLE(); | 857 UNREACHABLE(); |
858 } | 858 } |
859 } | 859 } |
860 if (failure) break; | 860 if (failure) break; |
861 } | 861 } |
862 } | 862 } |
863 if (!failure) { | 863 if (!failure) { |
864 Handle<JSArray> array = isolate->factory()->NewJSArray(0); | 864 Handle<JSArray> array = isolate->factory()->NewJSArray(0); |
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1310 } | 1310 } |
1311 | 1311 |
1312 | 1312 |
1313 RUNTIME_FUNCTION(RuntimeReference_FastOneByteArrayJoin) { | 1313 RUNTIME_FUNCTION(RuntimeReference_FastOneByteArrayJoin) { |
1314 SealHandleScope shs(isolate); | 1314 SealHandleScope shs(isolate); |
1315 DCHECK(args.length() == 2); | 1315 DCHECK(args.length() == 2); |
1316 return isolate->heap()->undefined_value(); | 1316 return isolate->heap()->undefined_value(); |
1317 } | 1317 } |
1318 } | 1318 } |
1319 } // namespace v8::internal | 1319 } // namespace v8::internal |
OLD | NEW |