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

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

Issue 15841007: Remove HCheckSmi, LCheckSmi and rename LCheckSmiAndReturn to LCheckSmi. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Use ForceRepresentation rather than directly inserting HChange Created 7 years, 7 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/ia32/lithium-ia32.cc ('k') | src/x64/lithium-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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 4885 matching lines...) Expand 10 before | Expand all | Expand 10 after
4896 // deoptimize. 4896 // deoptimize.
4897 __ andl(result_reg, Immediate(1)); 4897 __ andl(result_reg, Immediate(1));
4898 DeoptimizeIf(not_zero, instr->environment()); 4898 DeoptimizeIf(not_zero, instr->environment());
4899 __ bind(&done); 4899 __ bind(&done);
4900 } 4900 }
4901 __ Integer32ToSmi(result_reg, result_reg); 4901 __ Integer32ToSmi(result_reg, result_reg);
4902 DeoptimizeIf(overflow, instr->environment()); 4902 DeoptimizeIf(overflow, instr->environment());
4903 } 4903 }
4904 4904
4905 4905
4906 void LCodeGen::DoCheckSmiAndReturn(LCheckSmiAndReturn* instr) {
4907 LOperand* input = instr->value();
4908 Condition cc = masm()->CheckSmi(ToRegister(input));
4909 DeoptimizeIf(NegateCondition(cc), instr->environment());
4910 }
4911
4912
4913 void LCodeGen::DoCheckSmi(LCheckSmi* instr) { 4906 void LCodeGen::DoCheckSmi(LCheckSmi* instr) {
4914 LOperand* input = instr->value(); 4907 LOperand* input = instr->value();
4915 Condition cc = masm()->CheckSmi(ToRegister(input)); 4908 Condition cc = masm()->CheckSmi(ToRegister(input));
4916 DeoptimizeIf(NegateCondition(cc), instr->environment()); 4909 DeoptimizeIf(NegateCondition(cc), instr->environment());
4917 } 4910 }
4918 4911
4919 4912
4920 void LCodeGen::DoCheckNonSmi(LCheckNonSmi* instr) { 4913 void LCodeGen::DoCheckNonSmi(LCheckNonSmi* instr) {
4921 LOperand* input = instr->value(); 4914 LOperand* input = instr->value();
4922 Condition cc = masm()->CheckSmi(ToRegister(input)); 4915 Condition cc = masm()->CheckSmi(ToRegister(input));
(...skipping 757 matching lines...) Expand 10 before | Expand all | Expand 10 after
5680 FixedArray::kHeaderSize - kPointerSize)); 5673 FixedArray::kHeaderSize - kPointerSize));
5681 __ bind(&done); 5674 __ bind(&done);
5682 } 5675 }
5683 5676
5684 5677
5685 #undef __ 5678 #undef __
5686 5679
5687 } } // namespace v8::internal 5680 } } // namespace v8::internal
5688 5681
5689 #endif // V8_TARGET_ARCH_X64 5682 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/x64/lithium-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698