| 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 3491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3502 | 3502 |
| 3503 MathExpGenerator::EmitMathExp( | 3503 MathExpGenerator::EmitMathExp( |
| 3504 masm(), input, result, double_scratch1, double_scratch2, | 3504 masm(), input, result, double_scratch1, double_scratch2, |
| 3505 temp1, temp2, scratch0()); | 3505 temp1, temp2, scratch0()); |
| 3506 } | 3506 } |
| 3507 | 3507 |
| 3508 | 3508 |
| 3509 void LCodeGen::DoMathLog(LMathLog* instr) { | 3509 void LCodeGen::DoMathLog(LMathLog* instr) { |
| 3510 __ PrepareCallCFunction(0, 1, scratch0()); | 3510 __ PrepareCallCFunction(0, 1, scratch0()); |
| 3511 __ MovToFloatParameter(ToDoubleRegister(instr->value())); | 3511 __ MovToFloatParameter(ToDoubleRegister(instr->value())); |
| 3512 __ CallCFunction(ExternalReference::math_log_double_function(isolate()), | 3512 __ CallCFunction(ExternalReference::ieee754_log_function(isolate()), 0, 1); |
| 3513 0, 1); | |
| 3514 __ MovFromFloatResult(ToDoubleRegister(instr->result())); | 3513 __ MovFromFloatResult(ToDoubleRegister(instr->result())); |
| 3515 } | 3514 } |
| 3516 | 3515 |
| 3517 | 3516 |
| 3518 void LCodeGen::DoMathClz32(LMathClz32* instr) { | 3517 void LCodeGen::DoMathClz32(LMathClz32* instr) { |
| 3519 Register input = ToRegister(instr->value()); | 3518 Register input = ToRegister(instr->value()); |
| 3520 Register result = ToRegister(instr->result()); | 3519 Register result = ToRegister(instr->result()); |
| 3521 __ Clz(result, input); | 3520 __ Clz(result, input); |
| 3522 } | 3521 } |
| 3523 | 3522 |
| (...skipping 2032 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5556 __ lw(result, FieldMemOperand(scratch, | 5555 __ lw(result, FieldMemOperand(scratch, |
| 5557 FixedArray::kHeaderSize - kPointerSize)); | 5556 FixedArray::kHeaderSize - kPointerSize)); |
| 5558 __ bind(deferred->exit()); | 5557 __ bind(deferred->exit()); |
| 5559 __ bind(&done); | 5558 __ bind(&done); |
| 5560 } | 5559 } |
| 5561 | 5560 |
| 5562 #undef __ | 5561 #undef __ |
| 5563 | 5562 |
| 5564 } // namespace internal | 5563 } // namespace internal |
| 5565 } // namespace v8 | 5564 } // namespace v8 |
| OLD | NEW |