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

Side by Side Diff: src/mips/lithium-codegen-mips.cc

Issue 22152003: Never hchange nan-hole to hole or hole to nan-hole. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Also change in header Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « src/lithium.h ('k') | src/x64/lithium-codegen-x64.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 4748 matching lines...) Expand 10 before | Expand all | Expand 10 after
4759 } 4759 }
4760 4760
4761 Label no_special_nan_handling; 4761 Label no_special_nan_handling;
4762 Label done; 4762 Label done;
4763 if (convert_hole) { 4763 if (convert_hole) {
4764 DoubleRegister input_reg = ToDoubleRegister(instr->value()); 4764 DoubleRegister input_reg = ToDoubleRegister(instr->value());
4765 __ BranchF(&no_special_nan_handling, NULL, eq, input_reg, input_reg); 4765 __ BranchF(&no_special_nan_handling, NULL, eq, input_reg, input_reg);
4766 __ Move(reg, scratch0(), input_reg); 4766 __ Move(reg, scratch0(), input_reg);
4767 Label canonicalize; 4767 Label canonicalize;
4768 __ Branch(&canonicalize, ne, scratch0(), Operand(kHoleNanUpper32)); 4768 __ Branch(&canonicalize, ne, scratch0(), Operand(kHoleNanUpper32));
4769 __ li(reg, factory()->the_hole_value()); 4769 __ li(reg, factory()->undefined_value());
4770 __ Branch(&done); 4770 __ Branch(&done);
4771 __ bind(&canonicalize); 4771 __ bind(&canonicalize);
4772 __ Move(input_reg, 4772 __ Move(input_reg,
4773 FixedDoubleArray::canonical_not_the_hole_nan_as_double()); 4773 FixedDoubleArray::canonical_not_the_hole_nan_as_double());
4774 } 4774 }
4775 4775
4776 __ bind(&no_special_nan_handling); 4776 __ bind(&no_special_nan_handling);
4777 DeferredNumberTagD* deferred = new(zone()) DeferredNumberTagD(this, instr); 4777 DeferredNumberTagD* deferred = new(zone()) DeferredNumberTagD(this, instr);
4778 if (FLAG_inline_new) { 4778 if (FLAG_inline_new) {
4779 __ LoadRoot(scratch, Heap::kHeapNumberMapRootIndex); 4779 __ LoadRoot(scratch, Heap::kHeapNumberMapRootIndex);
(...skipping 1065 matching lines...) Expand 10 before | Expand all | Expand 10 after
5845 __ Subu(scratch, result, scratch); 5845 __ Subu(scratch, result, scratch);
5846 __ lw(result, FieldMemOperand(scratch, 5846 __ lw(result, FieldMemOperand(scratch,
5847 FixedArray::kHeaderSize - kPointerSize)); 5847 FixedArray::kHeaderSize - kPointerSize));
5848 __ bind(&done); 5848 __ bind(&done);
5849 } 5849 }
5850 5850
5851 5851
5852 #undef __ 5852 #undef __
5853 5853
5854 } } // namespace v8::internal 5854 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/lithium.h ('k') | src/x64/lithium-codegen-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698