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

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

Issue 23154004: Fix no-sse2 part 2. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 4 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 | « no previous file | 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 2493 matching lines...) Expand 10 before | Expand all | Expand 10 after
2504 2504
2505 bool use_sse2 = CpuFeatures::IsSupported(SSE2); 2505 bool use_sse2 = CpuFeatures::IsSupported(SSE2);
2506 if (use_sse2) { 2506 if (use_sse2) {
2507 CpuFeatureScope scope(masm(), SSE2); 2507 CpuFeatureScope scope(masm(), SSE2);
2508 XMMRegister input_reg = ToDoubleRegister(instr->object()); 2508 XMMRegister input_reg = ToDoubleRegister(instr->object());
2509 __ ucomisd(input_reg, input_reg); 2509 __ ucomisd(input_reg, input_reg);
2510 EmitFalseBranch(instr, parity_odd); 2510 EmitFalseBranch(instr, parity_odd);
2511 } else { 2511 } else {
2512 // Put the value to the top of stack 2512 // Put the value to the top of stack
2513 X87Register src = ToX87Register(instr->object()); 2513 X87Register src = ToX87Register(instr->object());
2514 X87Fxch(src); 2514 X87LoadForUsage(src);
2515 __ fld(0); 2515 __ fld(0);
2516 __ fld(0); 2516 __ fld(0);
2517 __ FCmp(); 2517 __ FCmp();
2518 Label ok; 2518 Label ok;
2519 __ j(parity_even, &ok); 2519 __ j(parity_even, &ok);
2520 __ fstp(0); 2520 __ fstp(0);
2521 EmitFalseBranch(instr, no_condition); 2521 EmitFalseBranch(instr, no_condition);
2522 __ bind(&ok); 2522 __ bind(&ok);
2523 } 2523 }
2524 2524
(...skipping 3927 matching lines...) Expand 10 before | Expand all | Expand 10 after
6452 FixedArray::kHeaderSize - kPointerSize)); 6452 FixedArray::kHeaderSize - kPointerSize));
6453 __ bind(&done); 6453 __ bind(&done);
6454 } 6454 }
6455 6455
6456 6456
6457 #undef __ 6457 #undef __
6458 6458
6459 } } // namespace v8::internal 6459 } } // namespace v8::internal
6460 6460
6461 #endif // V8_TARGET_ARCH_IA32 6461 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698