| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 1997 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2008 __ InvokeBuiltin(Builtins::SHR, JUMP_FUNCTION); | 2008 __ InvokeBuiltin(Builtins::SHR, JUMP_FUNCTION); |
| 2009 break; | 2009 break; |
| 2010 default: | 2010 default: |
| 2011 UNREACHABLE(); | 2011 UNREACHABLE(); |
| 2012 } | 2012 } |
| 2013 } | 2013 } |
| 2014 | 2014 |
| 2015 | 2015 |
| 2016 void TypeRecordingBinaryOpStub::GenerateHeapNumberStub(MacroAssembler* masm) { | 2016 void TypeRecordingBinaryOpStub::GenerateHeapNumberStub(MacroAssembler* masm) { |
| 2017 Label call_runtime; | 2017 Label call_runtime; |
| 2018 ASSERT(operands_type_ == TRBinaryOpIC::HEAP_NUMBER || | 2018 ASSERT(operands_type_ == TRBinaryOpIC::HEAP_NUMBER); |
| 2019 operands_type_ == TRBinaryOpIC::INT32); | |
| 2020 | 2019 |
| 2021 // Floating point case. | 2020 // Floating point case. |
| 2022 switch (op_) { | 2021 switch (op_) { |
| 2023 case Token::ADD: | 2022 case Token::ADD: |
| 2024 case Token::SUB: | 2023 case Token::SUB: |
| 2025 case Token::MUL: | 2024 case Token::MUL: |
| 2026 case Token::DIV: { | 2025 case Token::DIV: { |
| 2027 Label not_floats; | 2026 Label not_floats; |
| 2028 if (CpuFeatures::IsSupported(SSE2)) { | 2027 if (CpuFeatures::IsSupported(SSE2)) { |
| 2029 CpuFeatures::Scope use_sse2(SSE2); | 2028 CpuFeatures::Scope use_sse2(SSE2); |
| (...skipping 4478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6508 // Do a tail call to the rewritten stub. | 6507 // Do a tail call to the rewritten stub. |
| 6509 __ jmp(Operand(edi)); | 6508 __ jmp(Operand(edi)); |
| 6510 } | 6509 } |
| 6511 | 6510 |
| 6512 | 6511 |
| 6513 #undef __ | 6512 #undef __ |
| 6514 | 6513 |
| 6515 } } // namespace v8::internal | 6514 } } // namespace v8::internal |
| 6516 | 6515 |
| 6517 #endif // V8_TARGET_ARCH_IA32 | 6516 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |