Ben Murdoch | b8a8cc1 | 2014-11-26 15:28:44 +0000 | [diff] [blame] | 1 | // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
Ben Murdoch | b8a8cc1 | 2014-11-26 15:28:44 +0000 | [diff] [blame] | 5 | #include "src/arguments.h" |
Ben Murdoch | 4a90d5f | 2016-03-22 12:00:34 +0000 | [diff] [blame] | 6 | |
Ben Murdoch | b8a8cc1 | 2014-11-26 15:28:44 +0000 | [diff] [blame] | 7 | namespace v8 { |
| 8 | namespace internal { |
| 9 | |
Ben Murdoch | b8a8cc1 | 2014-11-26 15:28:44 +0000 | [diff] [blame] | 10 | double ClobberDoubleRegisters(double x1, double x2, double x3, double x4) { |
| 11 | // TODO(ulan): This clobbers only subset of registers depending on compiler, |
| 12 | // Rewrite this in assembly to really clobber all registers. |
| 13 | // GCC for ia32 uses the FPU and does not touch XMM registers. |
| 14 | return x1 * 1.01 + x2 * 2.02 + x3 * 3.03 + x4 * 4.04; |
| 15 | } |
| 16 | |
Ben Murdoch | 4a90d5f | 2016-03-22 12:00:34 +0000 | [diff] [blame] | 17 | } // namespace internal |
| 18 | } // namespace v8 |