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

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

Issue 2449373002: PPC/s390: [crankshaft] Refactor kAllowUndefinedAsNaN to kTruncatingToNumber. (Closed)
Patch Set: 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
« no previous file with comments | « src/crankshaft/ppc/lithium-ppc.h ('k') | src/crankshaft/s390/lithium-s390.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // 2 //
3 // Use of this source code is governed by a BSD-style license that can be 3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file. 4 // found in the LICENSE file.
5 5
6 #include "src/crankshaft/s390/lithium-codegen-s390.h" 6 #include "src/crankshaft/s390/lithium-codegen-s390.h"
7 7
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 4637 matching lines...) Expand 10 before | Expand all | Expand 10 after
4648 DeoptimizeIf(ne, instr, DeoptimizeReason::kNotASmi, cr0); 4648 DeoptimizeIf(ne, instr, DeoptimizeReason::kNotASmi, cr0);
4649 __ SmiUntag(result, input); 4649 __ SmiUntag(result, input);
4650 } else { 4650 } else {
4651 __ SmiUntag(result, input); 4651 __ SmiUntag(result, input);
4652 } 4652 }
4653 } 4653 }
4654 4654
4655 void LCodeGen::EmitNumberUntagD(LNumberUntagD* instr, Register input_reg, 4655 void LCodeGen::EmitNumberUntagD(LNumberUntagD* instr, Register input_reg,
4656 DoubleRegister result_reg, 4656 DoubleRegister result_reg,
4657 NumberUntagDMode mode) { 4657 NumberUntagDMode mode) {
4658 bool can_convert_undefined_to_nan = 4658 bool can_convert_undefined_to_nan = instr->truncating();
4659 instr->hydrogen()->can_convert_undefined_to_nan();
4660 bool deoptimize_on_minus_zero = instr->hydrogen()->deoptimize_on_minus_zero(); 4659 bool deoptimize_on_minus_zero = instr->hydrogen()->deoptimize_on_minus_zero();
4661 4660
4662 Register scratch = scratch0(); 4661 Register scratch = scratch0();
4663 DCHECK(!result_reg.is(double_scratch0())); 4662 DCHECK(!result_reg.is(double_scratch0()));
4664 4663
4665 Label convert, load_smi, done; 4664 Label convert, load_smi, done;
4666 4665
4667 if (mode == NUMBER_CANDIDATE_IS_ANY_TAGGED) { 4666 if (mode == NUMBER_CANDIDATE_IS_ANY_TAGGED) {
4668 // Smi check. 4667 // Smi check.
4669 __ UntagAndJumpIfSmi(scratch, input_reg, &load_smi); 4668 __ UntagAndJumpIfSmi(scratch, input_reg, &load_smi);
(...skipping 890 matching lines...) Expand 10 before | Expand all | Expand 10 after
5560 __ LoadP(result, 5559 __ LoadP(result,
5561 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); 5560 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize));
5562 __ bind(deferred->exit()); 5561 __ bind(deferred->exit());
5563 __ bind(&done); 5562 __ bind(&done);
5564 } 5563 }
5565 5564
5566 #undef __ 5565 #undef __
5567 5566
5568 } // namespace internal 5567 } // namespace internal
5569 } // namespace v8 5568 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/ppc/lithium-ppc.h ('k') | src/crankshaft/s390/lithium-s390.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698