OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 3459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3470 | 3470 |
3471 | 3471 |
3472 void LCodeGen::DoDeferredRandom(LRandom* instr) { | 3472 void LCodeGen::DoDeferredRandom(LRandom* instr) { |
3473 __ PrepareCallCFunction(1); | 3473 __ PrepareCallCFunction(1); |
3474 __ CallCFunction(ExternalReference::random_uint32_function(isolate()), 1); | 3474 __ CallCFunction(ExternalReference::random_uint32_function(isolate()), 1); |
3475 __ movq(rsi, Operand(rbp, StandardFrameConstants::kContextOffset)); | 3475 __ movq(rsi, Operand(rbp, StandardFrameConstants::kContextOffset)); |
3476 // Return value is in rax. | 3476 // Return value is in rax. |
3477 } | 3477 } |
3478 | 3478 |
3479 | 3479 |
| 3480 void LCodeGen::DoMathExp(LMathExp* instr) { |
| 3481 XMMRegister input = ToDoubleRegister(instr->value()); |
| 3482 XMMRegister result = ToDoubleRegister(instr->result()); |
| 3483 Register temp1 = ToRegister(instr->temp1()); |
| 3484 Register temp2 = ToRegister(instr->temp2()); |
| 3485 |
| 3486 MathExpGenerator::EmitMathExp(masm(), input, result, xmm0, temp1, temp2); |
| 3487 } |
| 3488 |
| 3489 |
3480 void LCodeGen::DoMathLog(LUnaryMathOperation* instr) { | 3490 void LCodeGen::DoMathLog(LUnaryMathOperation* instr) { |
3481 ASSERT(ToDoubleRegister(instr->result()).is(xmm1)); | 3491 ASSERT(ToDoubleRegister(instr->result()).is(xmm1)); |
3482 TranscendentalCacheStub stub(TranscendentalCache::LOG, | 3492 TranscendentalCacheStub stub(TranscendentalCache::LOG, |
3483 TranscendentalCacheStub::UNTAGGED); | 3493 TranscendentalCacheStub::UNTAGGED); |
3484 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); | 3494 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); |
3485 } | 3495 } |
3486 | 3496 |
3487 | 3497 |
3488 void LCodeGen::DoMathTan(LUnaryMathOperation* instr) { | 3498 void LCodeGen::DoMathTan(LUnaryMathOperation* instr) { |
3489 ASSERT(ToDoubleRegister(instr->result()).is(xmm1)); | 3499 ASSERT(ToDoubleRegister(instr->result()).is(xmm1)); |
(...skipping 1881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5371 FixedArray::kHeaderSize - kPointerSize)); | 5381 FixedArray::kHeaderSize - kPointerSize)); |
5372 __ bind(&done); | 5382 __ bind(&done); |
5373 } | 5383 } |
5374 | 5384 |
5375 | 5385 |
5376 #undef __ | 5386 #undef __ |
5377 | 5387 |
5378 } } // namespace v8::internal | 5388 } } // namespace v8::internal |
5379 | 5389 |
5380 #endif // V8_TARGET_ARCH_X64 | 5390 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |