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 
5 #include "src/arguments.h"
6 
7 namespace v8 {
8 namespace internal {
9 
ClobberDoubleRegisters(double x1,double x2,double x3,double x4)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 
17 }  // namespace internal
18 }  // namespace v8
19