| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 1992 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2003 __ xorps(xmm0, xmm0); | 2003 __ xorps(xmm0, xmm0); |
| 2004 __ ucomisd(xmm0, FieldOperand(reg, HeapNumber::kValueOffset)); | 2004 __ ucomisd(xmm0, FieldOperand(reg, HeapNumber::kValueOffset)); |
| 2005 __ j(zero, instr->FalseLabel(chunk_)); | 2005 __ j(zero, instr->FalseLabel(chunk_)); |
| 2006 __ jmp(instr->TrueLabel(chunk_)); | 2006 __ jmp(instr->TrueLabel(chunk_)); |
| 2007 __ bind(¬_heap_number); | 2007 __ bind(¬_heap_number); |
| 2008 } | 2008 } |
| 2009 | 2009 |
| 2010 if (!expected.IsGeneric()) { | 2010 if (!expected.IsGeneric()) { |
| 2011 // We've seen something for the first time -> deopt. | 2011 // We've seen something for the first time -> deopt. |
| 2012 // This can only happen if we are not generic already. | 2012 // This can only happen if we are not generic already. |
| 2013 DeoptimizeIf(no_condition, instr->environment()); | 2013 if (!info()->IsStub()) { |
| 2014 SoftDeoptimize(instr->environment()); |
| 2015 } else { |
| 2016 DeoptimizeIf(no_condition, instr->environment()); |
| 2017 } |
| 2014 } | 2018 } |
| 2015 } | 2019 } |
| 2016 } | 2020 } |
| 2017 } | 2021 } |
| 2018 | 2022 |
| 2019 | 2023 |
| 2020 void LCodeGen::EmitGoto(int block) { | 2024 void LCodeGen::EmitGoto(int block) { |
| 2021 if (!IsNextEmittedBlock(block)) { | 2025 if (!IsNextEmittedBlock(block)) { |
| 2022 __ jmp(chunk_->GetAssemblyLabel(chunk_->LookupDestination(block))); | 2026 __ jmp(chunk_->GetAssemblyLabel(chunk_->LookupDestination(block))); |
| 2023 } | 2027 } |
| (...skipping 3637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5661 FixedArray::kHeaderSize - kPointerSize)); | 5665 FixedArray::kHeaderSize - kPointerSize)); |
| 5662 __ bind(&done); | 5666 __ bind(&done); |
| 5663 } | 5667 } |
| 5664 | 5668 |
| 5665 | 5669 |
| 5666 #undef __ | 5670 #undef __ |
| 5667 | 5671 |
| 5668 } } // namespace v8::internal | 5672 } } // namespace v8::internal |
| 5669 | 5673 |
| 5670 #endif // V8_TARGET_ARCH_X64 | 5674 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |