Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(711)

Side by Side Diff: test/mjsunit/regress/regress-5252.js

Issue 2200733002: [interpreter] Elide OSR polling from fake loops. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Recement. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/cctest/interpreter/bytecode_expectations/RemoveRedundantLdar.golden ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 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 // Flags: --allow-natives-syntax --ignition --ignition-osr --turbo-from-bytecode
6
7 (function TestNonLoopyLoop() {
8 function f() {
9 do {
10 %OptimizeOsr();
11 return 23;
12 } while(false)
13 }
14 assertEquals(23, f());
15 assertEquals(23, f());
16 })();
17
18 (function TestNonLoopyGenerator() {
19 function* g() {
20 do {
21 %OptimizeOsr();
22 yield 23;
23 yield 42;
24 } while(false)
25 return 999;
26 }
27 var gen = g();
28 assertEquals({ value:23, done:false }, gen.next());
29 assertEquals({ value:42, done:false }, gen.next());
30 assertEquals({ value:999, done:true }, gen.next());
31 })();
OLDNEW
« no previous file with comments | « test/cctest/interpreter/bytecode_expectations/RemoveRedundantLdar.golden ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698