11b268ca467c924004286c97bac133db489cf43d0Ben Murdoch// Copyright 2016 the V8 project authors. All rights reserved. 21b268ca467c924004286c97bac133db489cf43d0Ben Murdoch// Use of this source code is governed by a BSD-style license that can be 31b268ca467c924004286c97bac133db489cf43d0Ben Murdoch// found in the LICENSE file. 41b268ca467c924004286c97bac133db489cf43d0Ben Murdoch 51b268ca467c924004286c97bac133db489cf43d0Ben Murdoch// Flags: --allow-natives-syntax 61b268ca467c924004286c97bac133db489cf43d0Ben Murdoch 71b268ca467c924004286c97bac133db489cf43d0Ben Murdochfunction foo(x) { 81b268ca467c924004286c97bac133db489cf43d0Ben Murdoch var s = Math.floor(x / 3600); 91b268ca467c924004286c97bac133db489cf43d0Ben Murdoch Math.floor(s); 101b268ca467c924004286c97bac133db489cf43d0Ben Murdoch return s % 24; 111b268ca467c924004286c97bac133db489cf43d0Ben Murdoch} 121b268ca467c924004286c97bac133db489cf43d0Ben Murdoch 131b268ca467c924004286c97bac133db489cf43d0Ben Murdochfoo(12345678); 141b268ca467c924004286c97bac133db489cf43d0Ben Murdochfoo(12345678); 151b268ca467c924004286c97bac133db489cf43d0Ben Murdoch%OptimizeFunctionOnNextCall(foo); 161b268ca467c924004286c97bac133db489cf43d0Ben Murdochfoo(12345678); 17