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/code-stubs.h" | 5 #include "src/code-stubs.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #include "src/ast/ast.h" | 9 #include "src/ast/ast.h" |
10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
(...skipping 2873 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2884 assembler->Comment("fast double elements path"); | 2884 assembler->Comment("fast double elements path"); |
2885 if (FLAG_debug_code) { | 2885 if (FLAG_debug_code) { |
2886 Label correct_elements_map(assembler), abort(assembler, Label::kDeferred); | 2886 Label correct_elements_map(assembler), abort(assembler, Label::kDeferred); |
2887 assembler->Branch(assembler->IsFixedDoubleArrayMap(elements_map), | 2887 assembler->Branch(assembler->IsFixedDoubleArrayMap(elements_map), |
2888 &correct_elements_map, &abort); | 2888 &correct_elements_map, &abort); |
2889 | 2889 |
2890 assembler->Bind(&abort); | 2890 assembler->Bind(&abort); |
2891 { | 2891 { |
2892 Node* abort_id = assembler->SmiConstant( | 2892 Node* abort_id = assembler->SmiConstant( |
2893 Smi::FromInt(BailoutReason::kExpectedFixedDoubleArrayMap)); | 2893 Smi::FromInt(BailoutReason::kExpectedFixedDoubleArrayMap)); |
2894 assembler->TailCallRuntime(Runtime::kAbort, context, abort_id); | 2894 assembler->CallRuntime(Runtime::kAbort, context, abort_id); |
| 2895 result.Bind(assembler->UndefinedConstant()); |
| 2896 assembler->Goto(&return_result); |
2895 } | 2897 } |
2896 assembler->Bind(&correct_elements_map); | 2898 assembler->Bind(&correct_elements_map); |
2897 } | 2899 } |
2898 | 2900 |
2899 Node* array = NonEmptyShallowClone(assembler, boilerplate, boilerplate_map, | 2901 Node* array = NonEmptyShallowClone(assembler, boilerplate, boilerplate_map, |
2900 boilerplate_elements, allocation_site, | 2902 boilerplate_elements, allocation_site, |
2901 capacity, FAST_DOUBLE_ELEMENTS); | 2903 capacity, FAST_DOUBLE_ELEMENTS); |
2902 result.Bind(array); | 2904 result.Bind(array); |
2903 assembler->Goto(&return_result); | 2905 assembler->Goto(&return_result); |
2904 } | 2906 } |
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3317 | 3319 |
3318 if (type == MachineType::Pointer()) { | 3320 if (type == MachineType::Pointer()) { |
3319 return Representation::External(); | 3321 return Representation::External(); |
3320 } | 3322 } |
3321 | 3323 |
3322 return Representation::Tagged(); | 3324 return Representation::Tagged(); |
3323 } | 3325 } |
3324 | 3326 |
3325 } // namespace internal | 3327 } // namespace internal |
3326 } // namespace v8 | 3328 } // namespace v8 |
OLD | NEW |