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

Side by Side Diff: src/ia32/code-stubs-ia32.cc

Issue 5901001: Mark TranscendentalCacheSSE2Stub as allowing internal stub calls. Mark pextr... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 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/ia32/assembler-ia32.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 2772 matching lines...) Expand 10 before | Expand all | Expand 10 after
2783 __ movdbl(Operand(esp, 0), xmm1); 2783 __ movdbl(Operand(esp, 0), xmm1);
2784 __ fld_d(Operand(esp, 0)); 2784 __ fld_d(Operand(esp, 0));
2785 GenerateOperation(masm); 2785 GenerateOperation(masm);
2786 __ fstp_d(Operand(esp, 0)); 2786 __ fstp_d(Operand(esp, 0));
2787 __ movdbl(xmm1, Operand(esp, 0)); 2787 __ movdbl(xmm1, Operand(esp, 0));
2788 __ add(Operand(esp), Immediate(kDoubleSize)); 2788 __ add(Operand(esp), Immediate(kDoubleSize));
2789 __ Ret(); 2789 __ Ret();
2790 2790
2791 __ bind(&call_runtime); 2791 __ bind(&call_runtime);
2792 __ AllocateHeapNumber(eax, edi, no_reg, &skip_cache); 2792 __ AllocateHeapNumber(eax, edi, no_reg, &skip_cache);
2793 __ movdbl(FieldOperand(eax, HeapNumber::kValueOffset), xmm1);
2794 __ EnterInternalFrame();
2793 __ push(eax); 2795 __ push(eax);
2794 __ movdbl(FieldOperand(eax, HeapNumber::kValueOffset), xmm1);
2795 __ CallRuntime(RuntimeFunction(), 1); 2796 __ CallRuntime(RuntimeFunction(), 1);
2797 __ LeaveInternalFrame();
2796 __ movdbl(xmm1, FieldOperand(eax, HeapNumber::kValueOffset)); 2798 __ movdbl(xmm1, FieldOperand(eax, HeapNumber::kValueOffset));
2797 __ Ret(); 2799 __ Ret();
2798 } 2800 }
2799 2801
2800 2802
2801 Runtime::FunctionId TranscendentalCacheSSE2Stub::RuntimeFunction() { 2803 Runtime::FunctionId TranscendentalCacheSSE2Stub::RuntimeFunction() {
2802 switch (type_) { 2804 switch (type_) {
2803 // Add more cases when necessary. 2805 // Add more cases when necessary.
2804 case TranscendentalCache::LOG: return Runtime::kMath_log; 2806 case TranscendentalCache::LOG: return Runtime::kMath_log;
2805 default: 2807 default:
(...skipping 3614 matching lines...) Expand 10 before | Expand all | Expand 10 after
6420 // Do a tail call to the rewritten stub. 6422 // Do a tail call to the rewritten stub.
6421 __ jmp(Operand(edi)); 6423 __ jmp(Operand(edi));
6422 } 6424 }
6423 6425
6424 6426
6425 #undef __ 6427 #undef __
6426 6428
6427 } } // namespace v8::internal 6429 } } // namespace v8::internal
6428 6430
6429 #endif // V8_TARGET_ARCH_IA32 6431 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/assembler-ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698