| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |