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

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

Issue 8699004: Shorten FP register pops where possible. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 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/lithium-codegen-ia32.cc ('k') | src/ia32/stub-cache-ia32.cc » ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 sub(scratch, Immediate(FIRST_NONCALLABLE_SPEC_OBJECT_TYPE)); 533 sub(scratch, Immediate(FIRST_NONCALLABLE_SPEC_OBJECT_TYPE));
534 cmp(scratch, 534 cmp(scratch,
535 LAST_NONCALLABLE_SPEC_OBJECT_TYPE - FIRST_NONCALLABLE_SPEC_OBJECT_TYPE); 535 LAST_NONCALLABLE_SPEC_OBJECT_TYPE - FIRST_NONCALLABLE_SPEC_OBJECT_TYPE);
536 j(above, fail); 536 j(above, fail);
537 } 537 }
538 538
539 539
540 void MacroAssembler::FCmp() { 540 void MacroAssembler::FCmp() {
541 if (CpuFeatures::IsSupported(CMOV)) { 541 if (CpuFeatures::IsSupported(CMOV)) {
542 fucomip(); 542 fucomip();
543 ffree(0); 543 fstp(0);
544 fincstp();
545 } else { 544 } else {
546 fucompp(); 545 fucompp();
547 push(eax); 546 push(eax);
548 fnstsw_ax(); 547 fnstsw_ax();
549 sahf(); 548 sahf();
550 pop(eax); 549 pop(eax);
551 } 550 }
552 } 551 }
553 552
554 553
(...skipping 2105 matching lines...) Expand 10 before | Expand all | Expand 10 after
2660 cmp(length, Operand(bitmap_scratch, MemoryChunk::kSizeOffset)); 2659 cmp(length, Operand(bitmap_scratch, MemoryChunk::kSizeOffset));
2661 Check(less_equal, "Live Bytes Count overflow chunk size"); 2660 Check(less_equal, "Live Bytes Count overflow chunk size");
2662 } 2661 }
2663 2662
2664 bind(&done); 2663 bind(&done);
2665 } 2664 }
2666 2665
2667 } } // namespace v8::internal 2666 } } // namespace v8::internal
2668 2667
2669 #endif // V8_TARGET_ARCH_IA32 2668 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/stub-cache-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698