Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(288)

Side by Side Diff: src/x64/lithium-codegen-x64.cc

Issue 104203003: Remove unused trigonometric code. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed comment Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/x64/codegen-x64.cc ('k') | src/x64/lithium-x64.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 3729 matching lines...) Expand 10 before | Expand all | Expand 10 after
3740 __ movsd(Operand(rsp, 0), input_reg); 3740 __ movsd(Operand(rsp, 0), input_reg);
3741 __ fld_d(Operand(rsp, 0)); 3741 __ fld_d(Operand(rsp, 0));
3742 __ fyl2x(); 3742 __ fyl2x();
3743 __ fstp_d(Operand(rsp, 0)); 3743 __ fstp_d(Operand(rsp, 0));
3744 __ movsd(input_reg, Operand(rsp, 0)); 3744 __ movsd(input_reg, Operand(rsp, 0));
3745 __ addq(rsp, Immediate(kDoubleSize)); 3745 __ addq(rsp, Immediate(kDoubleSize));
3746 __ bind(&done); 3746 __ bind(&done);
3747 } 3747 }
3748 3748
3749 3749
3750 void LCodeGen::DoMathTan(LMathTan* instr) {
3751 ASSERT(ToDoubleRegister(instr->result()).is(xmm1));
3752 // Set the context register to a GC-safe fake value. Clobbering it is
3753 // OK because this instruction is marked as a call.
3754 __ Set(rsi, 0);
3755 TranscendentalCacheStub stub(TranscendentalCache::TAN,
3756 TranscendentalCacheStub::UNTAGGED);
3757 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr);
3758 }
3759
3760
3761 void LCodeGen::DoMathCos(LMathCos* instr) {
3762 ASSERT(ToDoubleRegister(instr->result()).is(xmm1));
3763 // Set the context register to a GC-safe fake value. Clobbering it is
3764 // OK because this instruction is marked as a call.
3765 __ Set(rsi, 0);
3766 TranscendentalCacheStub stub(TranscendentalCache::COS,
3767 TranscendentalCacheStub::UNTAGGED);
3768 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr);
3769 }
3770
3771
3772 void LCodeGen::DoMathSin(LMathSin* instr) {
3773 ASSERT(ToDoubleRegister(instr->result()).is(xmm1));
3774 // Set the context register to a GC-safe fake value. Clobbering it is
3775 // OK because this instruction is marked as a call.
3776 __ Set(rsi, 0);
3777 TranscendentalCacheStub stub(TranscendentalCache::SIN,
3778 TranscendentalCacheStub::UNTAGGED);
3779 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr);
3780 }
3781
3782
3783 void LCodeGen::DoInvokeFunction(LInvokeFunction* instr) { 3750 void LCodeGen::DoInvokeFunction(LInvokeFunction* instr) {
3784 ASSERT(ToRegister(instr->context()).is(rsi)); 3751 ASSERT(ToRegister(instr->context()).is(rsi));
3785 ASSERT(ToRegister(instr->function()).is(rdi)); 3752 ASSERT(ToRegister(instr->function()).is(rdi));
3786 ASSERT(instr->HasPointerMap()); 3753 ASSERT(instr->HasPointerMap());
3787 3754
3788 Handle<JSFunction> known_function = instr->hydrogen()->known_function(); 3755 Handle<JSFunction> known_function = instr->hydrogen()->known_function();
3789 if (known_function.is_null()) { 3756 if (known_function.is_null()) {
3790 LPointerMap* pointers = instr->pointer_map(); 3757 LPointerMap* pointers = instr->pointer_map();
3791 SafepointGenerator generator(this, pointers, Safepoint::kLazyDeopt); 3758 SafepointGenerator generator(this, pointers, Safepoint::kLazyDeopt);
3792 ParameterCount count(instr->arity()); 3759 ParameterCount count(instr->arity());
(...skipping 1822 matching lines...) Expand 10 before | Expand all | Expand 10 after
5615 FixedArray::kHeaderSize - kPointerSize)); 5582 FixedArray::kHeaderSize - kPointerSize));
5616 __ bind(&done); 5583 __ bind(&done);
5617 } 5584 }
5618 5585
5619 5586
5620 #undef __ 5587 #undef __
5621 5588
5622 } } // namespace v8::internal 5589 } } // namespace v8::internal
5623 5590
5624 #endif // V8_TARGET_ARCH_X64 5591 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/codegen-x64.cc ('k') | src/x64/lithium-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698