arguments.cc 633 Bytes
Newer Older
1
// Copyright 2013 the V8 project authors. All rights reserved.
2 3
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
4

5
#include "src/execution/arguments.h"
6

7 8 9
namespace v8 {
namespace internal {

10
double ClobberDoubleRegisters(double x1, double x2, double x3, double x4) {
11 12 13
  // TODO(v8:11798): This clobbers only subset of registers depending on
  // compiler, Rewrite this in assembly to really clobber all registers. GCC for
  // ia32 uses the FPU and does not touch XMM registers.
14 15 16
  return x1 * 1.01 + x2 * 2.02 + x3 * 3.03 + x4 * 4.04;
}

17 18
}  // namespace internal
}  // namespace v8