blob: 815f5de57749ceeb60c4d2136156d14b79b2ec6a [file] [log] [blame]
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001// 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 Murdochb8a8cc12014-11-26 15:28:44 +00005#include "src/arguments.h"
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00006
Ben Murdochb8a8cc12014-11-26 15:28:44 +00007namespace v8 {
8namespace internal {
9
Ben Murdochb8a8cc12014-11-26 15:28:44 +000010double 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 Murdoch4a90d5f2016-03-22 12:00:34 +000017} // namespace internal
18} // namespace v8