Home | History | Annotate | Download | only in src
      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 #include "src/objects-inl.h"
      7 
      8 namespace v8 {
      9 namespace internal {
     10 
     11 double ClobberDoubleRegisters(double x1, double x2, double x3, double x4) {
     12   // TODO(ulan): This clobbers only subset of registers depending on compiler,
     13   // Rewrite this in assembly to really clobber all registers.
     14   // GCC for ia32 uses the FPU and does not touch XMM registers.
     15   return x1 * 1.01 + x2 * 2.02 + x3 * 3.03 + x4 * 4.04;
     16 }
     17 
     18 }  // namespace internal
     19 }  // namespace v8
     20