Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Side by Side Diff: src/crankshaft/arm64/lithium-codegen-arm64.cc

Issue 1409123003: [runtime] Avoid @@isConcatSpreadable lookup for fast path Array.prototype.concat (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: adding more tests Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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/crankshaft/arm64/lithium-codegen-arm64.h" 5 #include "src/crankshaft/arm64/lithium-codegen-arm64.h"
6 6
7 #include "src/arm64/frames-arm64.h" 7 #include "src/arm64/frames-arm64.h"
8 #include "src/base/bits.h" 8 #include "src/base/bits.h"
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 3279 matching lines...) Expand 10 before | Expand all | Expand 10 after
3290 DeoptimizeIfRoot(result, Heap::kTheHoleValueRootIndex, instr, 3290 DeoptimizeIfRoot(result, Heap::kTheHoleValueRootIndex, instr,
3291 Deoptimizer::kHole); 3291 Deoptimizer::kHole);
3292 } 3292 }
3293 } else if (instr->hydrogen()->hole_mode() == CONVERT_HOLE_TO_UNDEFINED) { 3293 } else if (instr->hydrogen()->hole_mode() == CONVERT_HOLE_TO_UNDEFINED) {
3294 DCHECK(instr->hydrogen()->elements_kind() == FAST_HOLEY_ELEMENTS); 3294 DCHECK(instr->hydrogen()->elements_kind() == FAST_HOLEY_ELEMENTS);
3295 Label done; 3295 Label done;
3296 __ CompareRoot(result, Heap::kTheHoleValueRootIndex); 3296 __ CompareRoot(result, Heap::kTheHoleValueRootIndex);
3297 __ B(ne, &done); 3297 __ B(ne, &done);
3298 if (info()->IsStub()) { 3298 if (info()->IsStub()) {
3299 // A stub can safely convert the hole to undefined only if the array 3299 // A stub can safely convert the hole to undefined only if the array
3300 // protector cell contains (Smi) Isolate::kArrayProtectorValid. Otherwise 3300 // protector cell contains (Smi) Isolate::kArrayProtectorValid.
3301 // it needs to bail out. 3301 // Otherwise it needs to bail out.
3302 __ LoadRoot(result, Heap::kArrayProtectorRootIndex); 3302 __ LoadRoot(result, Heap::kArrayProtectorRootIndex);
3303 __ Ldr(result, FieldMemOperand(result, Cell::kValueOffset)); 3303 __ Ldr(result, FieldMemOperand(result, Cell::kValueOffset));
3304 __ Cmp(result, Operand(Smi::FromInt(Isolate::kArrayProtectorValid))); 3304 __ Cmp(result, Operand(Smi::FromInt(Isolate::kArrayProtectorValid)));
3305 DeoptimizeIf(ne, instr, Deoptimizer::kHole); 3305 DeoptimizeIf(ne, instr, Deoptimizer::kHole);
3306 } 3306 }
3307 __ LoadRoot(result, Heap::kUndefinedValueRootIndex); 3307 __ LoadRoot(result, Heap::kUndefinedValueRootIndex);
3308 __ Bind(&done); 3308 __ Bind(&done);
3309 } 3309 }
3310 } 3310 }
3311 3311
(...skipping 2413 matching lines...) Expand 10 before | Expand all | Expand 10 after
5725 // Index is equal to negated out of object property index plus 1. 5725 // Index is equal to negated out of object property index plus 1.
5726 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); 5726 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2));
5727 __ Ldr(result, FieldMemOperand(result, 5727 __ Ldr(result, FieldMemOperand(result,
5728 FixedArray::kHeaderSize - kPointerSize)); 5728 FixedArray::kHeaderSize - kPointerSize));
5729 __ Bind(deferred->exit()); 5729 __ Bind(deferred->exit());
5730 __ Bind(&done); 5730 __ Bind(&done);
5731 } 5731 }
5732 5732
5733 } // namespace internal 5733 } // namespace internal
5734 } // namespace v8 5734 } // namespace v8
OLDNEW
« no previous file with comments | « src/contexts-inl.h ('k') | src/crankshaft/ia32/lithium-codegen-ia32.cc » ('j') | src/isolate.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698