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

Side by Side Diff: src/ia32/macro-assembler-ia32.cc

Issue 23621038: Reland "Fix phis for non-sse2 double values" (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 months 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/lithium-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 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 2780 matching lines...) Expand 10 before | Expand all | Expand 10 after
2791 add(esp, Immediate(bytes_dropped)); 2791 add(esp, Immediate(bytes_dropped));
2792 push(scratch); 2792 push(scratch);
2793 ret(0); 2793 ret(0);
2794 } 2794 }
2795 } 2795 }
2796 2796
2797 2797
2798 void MacroAssembler::VerifyX87StackDepth(uint32_t depth) { 2798 void MacroAssembler::VerifyX87StackDepth(uint32_t depth) {
2799 // Make sure the floating point stack is either empty or has depth items. 2799 // Make sure the floating point stack is either empty or has depth items.
2800 ASSERT(depth <= 7); 2800 ASSERT(depth <= 7);
2801 // This is a very expensive.
2802 ASSERT(FLAG_debug_code && FLAG_enable_slow_asserts);
2801 2803
2802 // The top-of-stack (tos) is 7 if there is one item pushed. 2804 // The top-of-stack (tos) is 7 if there is one item pushed.
2803 int tos = (8 - depth) % 8; 2805 int tos = (8 - depth) % 8;
2804 const int kTopMask = 0x3800; 2806 const int kTopMask = 0x3800;
2805 push(eax); 2807 push(eax);
2806 fwait(); 2808 fwait();
2807 fnstsw_ax(); 2809 fnstsw_ax();
2808 and_(eax, kTopMask); 2810 and_(eax, kTopMask);
2809 shr(eax, 11); 2811 shr(eax, 11);
2810 cmp(eax, Immediate(tos)); 2812 cmp(eax, Immediate(tos));
(...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after
3422 j(greater, &no_memento_available); 3424 j(greater, &no_memento_available);
3423 cmp(MemOperand(scratch_reg, -AllocationMemento::kSize), 3425 cmp(MemOperand(scratch_reg, -AllocationMemento::kSize),
3424 Immediate(Handle<Map>(isolate()->heap()->allocation_memento_map()))); 3426 Immediate(Handle<Map>(isolate()->heap()->allocation_memento_map())));
3425 bind(&no_memento_available); 3427 bind(&no_memento_available);
3426 } 3428 }
3427 3429
3428 3430
3429 } } // namespace v8::internal 3431 } } // namespace v8::internal
3430 3432
3431 #endif // V8_TARGET_ARCH_IA32 3433 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698