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

Side by Side Diff: src/arm/lithium-codegen-arm.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/arm/lithium-arm.cc ('k') | src/hydrogen-instructions.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 5206 matching lines...) Expand 10 before | Expand all | Expand 10 after
5217 __ tst(scratch1, Operand(HeapNumber::kSignMask)); 5217 __ tst(scratch1, Operand(HeapNumber::kSignMask));
5218 DeoptimizeIf(ne, instr->environment()); 5218 DeoptimizeIf(ne, instr->environment());
5219 __ bind(&done); 5219 __ bind(&done);
5220 } 5220 }
5221 } 5221 }
5222 __ SmiTag(result_reg, SetCC); 5222 __ SmiTag(result_reg, SetCC);
5223 DeoptimizeIf(vs, instr->environment()); 5223 DeoptimizeIf(vs, instr->environment());
5224 } 5224 }
5225 5225
5226 5226
5227 void LCodeGen::DoCheckSmiAndReturn(LCheckSmiAndReturn* instr) {
5228 LOperand* input = instr->value();
5229 __ SmiTst(ToRegister(input));
5230 DeoptimizeIf(ne, instr->environment());
5231 }
5232
5233
5227 void LCodeGen::DoCheckSmi(LCheckSmi* instr) { 5234 void LCodeGen::DoCheckSmi(LCheckSmi* instr) {
5228 LOperand* input = instr->value(); 5235 LOperand* input = instr->value();
5229 __ SmiTst(ToRegister(input)); 5236 __ SmiTst(ToRegister(input));
5230 DeoptimizeIf(ne, instr->environment()); 5237 DeoptimizeIf(ne, instr->environment());
5231 } 5238 }
5232 5239
5233 5240
5234 void LCodeGen::DoCheckNonSmi(LCheckNonSmi* instr) { 5241 void LCodeGen::DoCheckNonSmi(LCheckNonSmi* instr) {
5235 LOperand* input = instr->value(); 5242 LOperand* input = instr->value();
5236 __ SmiTst(ToRegister(input)); 5243 __ SmiTst(ToRegister(input));
(...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after
5988 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); 5995 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index));
5989 __ ldr(result, FieldMemOperand(scratch, 5996 __ ldr(result, FieldMemOperand(scratch,
5990 FixedArray::kHeaderSize - kPointerSize)); 5997 FixedArray::kHeaderSize - kPointerSize));
5991 __ bind(&done); 5998 __ bind(&done);
5992 } 5999 }
5993 6000
5994 6001
5995 #undef __ 6002 #undef __
5996 6003
5997 } } // namespace v8::internal 6004 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.cc ('k') | src/hydrogen-instructions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698