My favorites | Sign in
v8
Project Home Downloads Wiki Issues Source Code Search
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 2044: --noopt does not disable optimizations
2 people starred this issue and may be notified of changes. Back to list
Status:  Accepted
Owner:  jkummerow@chromium.org


Sign in to add a comment
 
Project Member Reported by vegorov@chromium.org, Mar 30, 2012
% cat t.js                                                                                                 [ce99163...@]

function len (p) {
  return Math.sqrt(p.x * p.x + p.y * p.y);
}

function Point(x, y) { this.x = x; this.y = y; }

var p = new Point(1.1, 1.2);

while (true) len(p);

% out/ia32.release/d8 --noopt --trace-opt t.js                                                             [ce99163...@]
[marking valueOf 0x2f340084 for recompilation, reason: small function, ICs with typeinfo: 1/1 (100%)]
[marking toString 0x2f33fdec for recompilation, reason: small function, ICs with typeinfo: 1/1 (100%)]
[marking IsPrimitive 0x2f339c28 for recompilation, reason: small function, ICs with typeinfo: 0/0 (100%)]
[optimizing: valueOf / 2f340085 - took 1.347 ms]
[optimizing: IsPrimitive / 2f339c29 - took 0.102 ms]
[optimizing: toString / 2f33fded - took 0.077 ms]
[marking len 0x2f342300 for recompilation, reason: small function, ICs with typeinfo: 9/9 (100%)]
[optimizing: len / 2f342301 - took 0.160 ms]
[marking  0x2f3422dc for recompilation, reason: small function, ICs with typeinfo: 2/3 (66%)]
[optimizing:  / 2f3422dd - took 0.390 ms]
Sign in to add a comment

Powered by Google Project Hosting