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 2611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2622 assembler->GotoIf(assembler->SmiEqual(capacity, zero), &zero_capacity); | 2622 assembler->GotoIf(assembler->SmiEqual(capacity, zero), &zero_capacity); |
2623 | 2623 |
2624 Node* elements_map = assembler->LoadMap(boilerplate_elements); | 2624 Node* elements_map = assembler->LoadMap(boilerplate_elements); |
2625 assembler->GotoIf(assembler->IsFixedCOWArrayMap(elements_map), &cow_elements); | 2625 assembler->GotoIf(assembler->IsFixedCOWArrayMap(elements_map), &cow_elements); |
2626 | 2626 |
2627 assembler->GotoIf(assembler->IsFixedArrayMap(elements_map), &fast_elements); | 2627 assembler->GotoIf(assembler->IsFixedArrayMap(elements_map), &fast_elements); |
2628 { | 2628 { |
2629 assembler->Comment("fast double elements path"); | 2629 assembler->Comment("fast double elements path"); |
2630 if (FLAG_debug_code) { | 2630 if (FLAG_debug_code) { |
2631 Label correct_elements_map(assembler), abort(assembler, Label::kDeferred); | 2631 Label correct_elements_map(assembler), abort(assembler, Label::kDeferred); |
2632 assembler->BranchIf(assembler->IsFixedDoubleArrayMap(elements_map), | 2632 assembler->Branch(assembler->IsFixedDoubleArrayMap(elements_map), |
2633 &correct_elements_map, &abort); | 2633 &correct_elements_map, &abort); |
2634 | 2634 |
2635 assembler->Bind(&abort); | 2635 assembler->Bind(&abort); |
2636 { | 2636 { |
2637 Node* abort_id = assembler->SmiConstant( | 2637 Node* abort_id = assembler->SmiConstant( |
2638 Smi::FromInt(BailoutReason::kExpectedFixedDoubleArrayMap)); | 2638 Smi::FromInt(BailoutReason::kExpectedFixedDoubleArrayMap)); |
2639 assembler->TailCallRuntime(Runtime::kAbort, context, abort_id); | 2639 assembler->TailCallRuntime(Runtime::kAbort, context, abort_id); |
2640 } | 2640 } |
2641 assembler->Bind(&correct_elements_map); | 2641 assembler->Bind(&correct_elements_map); |
2642 } | 2642 } |
2643 | 2643 |
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3062 | 3062 |
3063 if (type == MachineType::Pointer()) { | 3063 if (type == MachineType::Pointer()) { |
3064 return Representation::External(); | 3064 return Representation::External(); |
3065 } | 3065 } |
3066 | 3066 |
3067 return Representation::Tagged(); | 3067 return Representation::Tagged(); |
3068 } | 3068 } |
3069 | 3069 |
3070 } // namespace internal | 3070 } // namespace internal |
3071 } // namespace v8 | 3071 } // namespace v8 |
OLD | NEW |