| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 1404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1415 Register reg = ToRegister(instr->InputAt(0)); | 1415 Register reg = ToRegister(instr->InputAt(0)); |
| 1416 __ cmp(reg, Operand(0)); | 1416 __ cmp(reg, Operand(0)); |
| 1417 EmitBranch(true_block, false_block, ne); | 1417 EmitBranch(true_block, false_block, ne); |
| 1418 } else if (r.IsDouble()) { | 1418 } else if (r.IsDouble()) { |
| 1419 DoubleRegister reg = ToDoubleRegister(instr->InputAt(0)); | 1419 DoubleRegister reg = ToDoubleRegister(instr->InputAt(0)); |
| 1420 Register scratch = scratch0(); | 1420 Register scratch = scratch0(); |
| 1421 | 1421 |
| 1422 // Test the double value. Zero and NaN are false. | 1422 // Test the double value. Zero and NaN are false. |
| 1423 __ VFPCompareAndLoadFlags(reg, 0.0, scratch); | 1423 __ VFPCompareAndLoadFlags(reg, 0.0, scratch); |
| 1424 __ tst(scratch, Operand(kVFPZConditionFlagBit | kVFPVConditionFlagBit)); | 1424 __ tst(scratch, Operand(kVFPZConditionFlagBit | kVFPVConditionFlagBit)); |
| 1425 EmitBranch(true_block, false_block, ne); | 1425 EmitBranch(true_block, false_block, eq); |
| 1426 } else { | 1426 } else { |
| 1427 ASSERT(r.IsTagged()); | 1427 ASSERT(r.IsTagged()); |
| 1428 Register reg = ToRegister(instr->InputAt(0)); | 1428 Register reg = ToRegister(instr->InputAt(0)); |
| 1429 if (instr->hydrogen()->type().IsBoolean()) { | 1429 if (instr->hydrogen()->type().IsBoolean()) { |
| 1430 __ LoadRoot(ip, Heap::kTrueValueRootIndex); | 1430 __ LoadRoot(ip, Heap::kTrueValueRootIndex); |
| 1431 __ cmp(reg, ip); | 1431 __ cmp(reg, ip); |
| 1432 EmitBranch(true_block, false_block, eq); | 1432 EmitBranch(true_block, false_block, eq); |
| 1433 } else { | 1433 } else { |
| 1434 Label* true_label = chunk_->GetAssemblyLabel(true_block); | 1434 Label* true_label = chunk_->GetAssemblyLabel(true_block); |
| 1435 Label* false_label = chunk_->GetAssemblyLabel(false_block); | 1435 Label* false_label = chunk_->GetAssemblyLabel(false_block); |
| (...skipping 2780 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4216 ASSERT(!environment->HasBeenRegistered()); | 4216 ASSERT(!environment->HasBeenRegistered()); |
| 4217 RegisterEnvironmentForDeoptimization(environment); | 4217 RegisterEnvironmentForDeoptimization(environment); |
| 4218 ASSERT(osr_pc_offset_ == -1); | 4218 ASSERT(osr_pc_offset_ == -1); |
| 4219 osr_pc_offset_ = masm()->pc_offset(); | 4219 osr_pc_offset_ = masm()->pc_offset(); |
| 4220 } | 4220 } |
| 4221 | 4221 |
| 4222 | 4222 |
| 4223 #undef __ | 4223 #undef __ |
| 4224 | 4224 |
| 4225 } } // namespace v8::internal | 4225 } } // namespace v8::internal |
| OLD | NEW |