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

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

Issue 15858006: Tag length of FixedArrayBase and smi-array[x] as smi representation (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Split check-smi-and-return from check-smi 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/hydrogen-instructions.h ('k') | src/ia32/lithium-ia32.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 5679 matching lines...) Expand 10 before | Expand all | Expand 10 after
5690 // deoptimize. 5690 // deoptimize.
5691 __ and_(result_reg, 1); 5691 __ and_(result_reg, 1);
5692 DeoptimizeIf(not_zero, instr->environment()); 5692 DeoptimizeIf(not_zero, instr->environment());
5693 __ bind(&done); 5693 __ bind(&done);
5694 } 5694 }
5695 __ SmiTag(result_reg); 5695 __ SmiTag(result_reg);
5696 DeoptimizeIf(overflow, instr->environment()); 5696 DeoptimizeIf(overflow, instr->environment());
5697 } 5697 }
5698 5698
5699 5699
5700 void LCodeGen::DoCheckSmiAndReturn(LCheckSmiAndReturn* instr) {
5701 LOperand* input = instr->value();
5702 __ test(ToOperand(input), Immediate(kSmiTagMask));
5703 DeoptimizeIf(not_zero, instr->environment());
5704 }
5705
5706
5700 void LCodeGen::DoCheckSmi(LCheckSmi* instr) { 5707 void LCodeGen::DoCheckSmi(LCheckSmi* instr) {
5701 LOperand* input = instr->value(); 5708 LOperand* input = instr->value();
5702 __ test(ToOperand(input), Immediate(kSmiTagMask)); 5709 __ test(ToOperand(input), Immediate(kSmiTagMask));
5703 DeoptimizeIf(not_zero, instr->environment()); 5710 DeoptimizeIf(not_zero, instr->environment());
5704 } 5711 }
5705 5712
5706 5713
5707 void LCodeGen::DoCheckNonSmi(LCheckNonSmi* instr) { 5714 void LCodeGen::DoCheckNonSmi(LCheckNonSmi* instr) {
5708 LOperand* input = instr->value(); 5715 LOperand* input = instr->value();
5709 __ test(ToOperand(input), Immediate(kSmiTagMask)); 5716 __ test(ToOperand(input), Immediate(kSmiTagMask));
(...skipping 876 matching lines...) Expand 10 before | Expand all | Expand 10 after
6586 FixedArray::kHeaderSize - kPointerSize)); 6593 FixedArray::kHeaderSize - kPointerSize));
6587 __ bind(&done); 6594 __ bind(&done);
6588 } 6595 }
6589 6596
6590 6597
6591 #undef __ 6598 #undef __
6592 6599
6593 } } // namespace v8::internal 6600 } } // namespace v8::internal
6594 6601
6595 #endif // V8_TARGET_ARCH_IA32 6602 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/ia32/lithium-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698