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

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

Issue 2465253011: Fastpath some spread-call desugaring. (Closed)
Patch Set: Rename array protector valid values Created 4 years, 1 month 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 3205 matching lines...) Expand 10 before | Expand all | Expand 10 after
3216 DCHECK(instr->hydrogen()->elements_kind() == FAST_HOLEY_ELEMENTS); 3216 DCHECK(instr->hydrogen()->elements_kind() == FAST_HOLEY_ELEMENTS);
3217 Label done; 3217 Label done;
3218 __ CompareRoot(result, Heap::kTheHoleValueRootIndex); 3218 __ CompareRoot(result, Heap::kTheHoleValueRootIndex);
3219 __ B(ne, &done); 3219 __ B(ne, &done);
3220 if (info()->IsStub()) { 3220 if (info()->IsStub()) {
3221 // A stub can safely convert the hole to undefined only if the array 3221 // A stub can safely convert the hole to undefined only if the array
3222 // protector cell contains (Smi) Isolate::kArrayProtectorValid. Otherwise 3222 // protector cell contains (Smi) Isolate::kArrayProtectorValid. Otherwise
3223 // it needs to bail out. 3223 // it needs to bail out.
3224 __ LoadRoot(result, Heap::kArrayProtectorRootIndex); 3224 __ LoadRoot(result, Heap::kArrayProtectorRootIndex);
3225 __ Ldr(result, FieldMemOperand(result, Cell::kValueOffset)); 3225 __ Ldr(result, FieldMemOperand(result, Cell::kValueOffset));
3226 __ Cmp(result, Operand(Smi::FromInt(Isolate::kArrayProtectorValid))); 3226 __ Cmp(result, Operand(Smi::FromInt(Isolate::kProtectorValid)));
3227 DeoptimizeIf(ne, instr, DeoptimizeReason::kHole); 3227 DeoptimizeIf(ne, instr, DeoptimizeReason::kHole);
3228 } 3228 }
3229 __ LoadRoot(result, Heap::kUndefinedValueRootIndex); 3229 __ LoadRoot(result, Heap::kUndefinedValueRootIndex);
3230 __ Bind(&done); 3230 __ Bind(&done);
3231 } 3231 }
3232 } 3232 }
3233 3233
3234 3234
3235 void LCodeGen::DoLoadNamedField(LLoadNamedField* instr) { 3235 void LCodeGen::DoLoadNamedField(LLoadNamedField* instr) {
3236 HObjectAccess access = instr->hydrogen()->access(); 3236 HObjectAccess access = instr->hydrogen()->access();
(...skipping 2329 matching lines...) Expand 10 before | Expand all | Expand 10 after
5566 // Index is equal to negated out of object property index plus 1. 5566 // Index is equal to negated out of object property index plus 1.
5567 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); 5567 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2));
5568 __ Ldr(result, FieldMemOperand(result, 5568 __ Ldr(result, FieldMemOperand(result,
5569 FixedArray::kHeaderSize - kPointerSize)); 5569 FixedArray::kHeaderSize - kPointerSize));
5570 __ Bind(deferred->exit()); 5570 __ Bind(deferred->exit());
5571 __ Bind(&done); 5571 __ Bind(&done);
5572 } 5572 }
5573 5573
5574 } // namespace internal 5574 } // namespace internal
5575 } // namespace v8 5575 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698