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

Side by Side Diff: test/mjsunit/es6/generators-mirror.js

Issue 2079613003: [generators] Implement %GeneratorGetSourcePosition. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rename again, and move subtraction to runtime Created 4 years, 6 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/Generators.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
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Flags: --expose-debug-as debug 5 // Flags: --expose-debug-as debug --ignition-generators
6 // Test the mirror object for functions. 6 // Test the mirror object for functions.
7 7
8 function *generator(f) { 8 function *generator(f) {
9 "use strict"; 9 "use strict";
10 yield; 10 yield;
11 f(); 11 f();
12 yield; 12 yield;
13 } 13 }
14 14
15 function MirrorRefCache(json_refs) { 15 function MirrorRefCache(json_refs) {
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 TestGeneratorMirror(iter2, 'suspended', 7, 19, obj); 103 TestGeneratorMirror(iter2, 'suspended', 7, 19, obj);
104 104
105 iter2.next(); 105 iter2.next();
106 TestGeneratorMirror(iter2, 'suspended', 9, 2, obj); 106 TestGeneratorMirror(iter2, 'suspended', 9, 2, obj);
107 107
108 iter2.next(); 108 iter2.next();
109 TestGeneratorMirror(iter2, 'suspended', 11, 2, obj); 109 TestGeneratorMirror(iter2, 'suspended', 11, 2, obj);
110 110
111 iter2.next(); 111 iter2.next();
112 TestGeneratorMirror(iter2, 'closed', 0, 0, obj); 112 TestGeneratorMirror(iter2, 'closed', 0, 0, obj);
OLDNEW
« no previous file with comments | « test/cctest/interpreter/bytecode_expectations/Generators.golden ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698