| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved.7 | 1 // Copyright 2012 the V8 project authors. All rights reserved.7 |
| 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 4067 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4078 | 4078 |
| 4079 ASSERT(!(representation.IsSmi() && | 4079 ASSERT(!(representation.IsSmi() && |
| 4080 instr->value()->IsConstantOperand() && | 4080 instr->value()->IsConstantOperand() && |
| 4081 !IsSmi(LConstantOperand::cast(instr->value())))); | 4081 !IsSmi(LConstantOperand::cast(instr->value())))); |
| 4082 if (representation.IsHeapObject()) { | 4082 if (representation.IsHeapObject()) { |
| 4083 Register value = ToRegister(instr->value()); | 4083 Register value = ToRegister(instr->value()); |
| 4084 if (!instr->hydrogen()->value()->type().IsHeapObject()) { | 4084 if (!instr->hydrogen()->value()->type().IsHeapObject()) { |
| 4085 __ SmiTst(value, scratch); | 4085 __ SmiTst(value, scratch); |
| 4086 DeoptimizeIf(eq, instr->environment(), scratch, Operand(zero_reg)); | 4086 DeoptimizeIf(eq, instr->environment(), scratch, Operand(zero_reg)); |
| 4087 | 4087 |
| 4088 // We know that value is a smi now, so we can omit the check below. | 4088 // We know now that value is not a smi, so we can omit the check below. |
| 4089 check_needed = OMIT_SMI_CHECK; | 4089 check_needed = OMIT_SMI_CHECK; |
| 4090 } | 4090 } |
| 4091 } else if (representation.IsDouble()) { | 4091 } else if (representation.IsDouble()) { |
| 4092 ASSERT(transition.is_null()); | 4092 ASSERT(transition.is_null()); |
| 4093 ASSERT(access.IsInobject()); | 4093 ASSERT(access.IsInobject()); |
| 4094 ASSERT(!instr->hydrogen()->NeedsWriteBarrier()); | 4094 ASSERT(!instr->hydrogen()->NeedsWriteBarrier()); |
| 4095 DoubleRegister value = ToDoubleRegister(instr->value()); | 4095 DoubleRegister value = ToDoubleRegister(instr->value()); |
| 4096 __ sdc1(value, FieldMemOperand(object, offset)); | 4096 __ sdc1(value, FieldMemOperand(object, offset)); |
| 4097 return; | 4097 return; |
| 4098 } | 4098 } |
| (...skipping 1811 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5910 __ lw(result, FieldMemOperand(scratch, | 5910 __ lw(result, FieldMemOperand(scratch, |
| 5911 FixedArray::kHeaderSize - kPointerSize)); | 5911 FixedArray::kHeaderSize - kPointerSize)); |
| 5912 __ bind(deferred->exit()); | 5912 __ bind(deferred->exit()); |
| 5913 __ bind(&done); | 5913 __ bind(&done); |
| 5914 } | 5914 } |
| 5915 | 5915 |
| 5916 | 5916 |
| 5917 #undef __ | 5917 #undef __ |
| 5918 | 5918 |
| 5919 } } // namespace v8::internal | 5919 } } // namespace v8::internal |
| OLD | NEW |