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

Side by Side Diff: src/crankshaft/x64/lithium-codegen-x64.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 #if V8_TARGET_ARCH_X64 5 #if V8_TARGET_ARCH_X64
6 6
7 #include "src/crankshaft/x64/lithium-codegen-x64.h" 7 #include "src/crankshaft/x64/lithium-codegen-x64.h"
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 2810 matching lines...) Expand 10 before | Expand all | Expand 10 after
2821 DCHECK(hinstr->elements_kind() == FAST_HOLEY_ELEMENTS); 2821 DCHECK(hinstr->elements_kind() == FAST_HOLEY_ELEMENTS);
2822 Label done; 2822 Label done;
2823 __ CompareRoot(result, Heap::kTheHoleValueRootIndex); 2823 __ CompareRoot(result, Heap::kTheHoleValueRootIndex);
2824 __ j(not_equal, &done); 2824 __ j(not_equal, &done);
2825 if (info()->IsStub()) { 2825 if (info()->IsStub()) {
2826 // A stub can safely convert the hole to undefined only if the array 2826 // A stub can safely convert the hole to undefined only if the array
2827 // protector cell contains (Smi) Isolate::kArrayProtectorValid. Otherwise 2827 // protector cell contains (Smi) Isolate::kArrayProtectorValid. Otherwise
2828 // it needs to bail out. 2828 // it needs to bail out.
2829 __ LoadRoot(result, Heap::kArrayProtectorRootIndex); 2829 __ LoadRoot(result, Heap::kArrayProtectorRootIndex);
2830 __ Cmp(FieldOperand(result, Cell::kValueOffset), 2830 __ Cmp(FieldOperand(result, Cell::kValueOffset),
2831 Smi::FromInt(Isolate::kArrayProtectorValid)); 2831 Smi::FromInt(Isolate::kProtectorValid));
2832 DeoptimizeIf(not_equal, instr, DeoptimizeReason::kHole); 2832 DeoptimizeIf(not_equal, instr, DeoptimizeReason::kHole);
2833 } 2833 }
2834 __ Move(result, isolate()->factory()->undefined_value()); 2834 __ Move(result, isolate()->factory()->undefined_value());
2835 __ bind(&done); 2835 __ bind(&done);
2836 } 2836 }
2837 } 2837 }
2838 2838
2839 2839
2840 void LCodeGen::DoLoadKeyed(LLoadKeyed* instr) { 2840 void LCodeGen::DoLoadKeyed(LLoadKeyed* instr) {
2841 if (instr->is_fixed_typed_array()) { 2841 if (instr->is_fixed_typed_array()) {
(...skipping 2589 matching lines...) Expand 10 before | Expand all | Expand 10 after
5431 __ bind(deferred->exit()); 5431 __ bind(deferred->exit());
5432 __ bind(&done); 5432 __ bind(&done);
5433 } 5433 }
5434 5434
5435 #undef __ 5435 #undef __
5436 5436
5437 } // namespace internal 5437 } // namespace internal
5438 } // namespace v8 5438 } // namespace v8
5439 5439
5440 #endif // V8_TARGET_ARCH_X64 5440 #endif // V8_TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698