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

Side by Side Diff: test/cctest/test-ast-expression-visitor.cc

Issue 1883443003: [generators] Simplify %CreateJSGeneratorObject (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add back initialization of continuation, just to be on the safe side. Created 4 years, 8 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 | « src/runtime/runtime-generator.cc ('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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 #include <stdlib.h> 5 #include <stdlib.h>
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #include "src/ast/ast.h" 9 #include "src/ast/ast.h"
10 #include "src/ast/ast-expression-visitor.h" 10 #include "src/ast/ast-expression-visitor.h"
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 " yield 123;\n" 367 " yield 123;\n"
368 "}\n"; 368 "}\n";
369 CollectTypes(&handles, test_function, &types); 369 CollectTypes(&handles, test_function, &types);
370 CHECK_TYPES_BEGIN { 370 CHECK_TYPES_BEGIN {
371 CHECK_EXPR(FunctionLiteral, Bounds::Unbounded()) { 371 CHECK_EXPR(FunctionLiteral, Bounds::Unbounded()) {
372 // Implicit initial yield 372 // Implicit initial yield
373 CHECK_EXPR(Yield, Bounds::Unbounded()) { 373 CHECK_EXPR(Yield, Bounds::Unbounded()) {
374 CHECK_VAR(.generator_object, Bounds::Unbounded()); 374 CHECK_VAR(.generator_object, Bounds::Unbounded());
375 CHECK_EXPR(Assignment, Bounds::Unbounded()) { 375 CHECK_EXPR(Assignment, Bounds::Unbounded()) {
376 CHECK_VAR(.generator_object, Bounds::Unbounded()); 376 CHECK_VAR(.generator_object, Bounds::Unbounded());
377 CHECK_EXPR(CallRuntime, Bounds::Unbounded()); 377 CHECK_EXPR(CallRuntime, Bounds::Unbounded()) {
378 CHECK_EXPR(ThisFunction, Bounds::Unbounded());
379 CHECK_EXPR(VariableProxy, Bounds::Unbounded());
380 }
378 } 381 }
379 } 382 }
380 // Explicit yield (argument wrapped with CreateIterResultObject) 383 // Explicit yield (argument wrapped with CreateIterResultObject)
381 CHECK_EXPR(Yield, Bounds::Unbounded()) { 384 CHECK_EXPR(Yield, Bounds::Unbounded()) {
382 CHECK_VAR(.generator_object, Bounds::Unbounded()); 385 CHECK_VAR(.generator_object, Bounds::Unbounded());
383 CHECK_EXPR(CallRuntime, Bounds::Unbounded()) { 386 CHECK_EXPR(CallRuntime, Bounds::Unbounded()) {
384 CHECK_EXPR(Literal, Bounds::Unbounded()); 387 CHECK_EXPR(Literal, Bounds::Unbounded());
385 CHECK_EXPR(Literal, Bounds::Unbounded()); 388 CHECK_EXPR(Literal, Bounds::Unbounded());
386 } 389 }
387 } 390 }
(...skipping 25 matching lines...) Expand all
413 CHECK_EXPR(FunctionLiteral, Bounds::Unbounded()) { 416 CHECK_EXPR(FunctionLiteral, Bounds::Unbounded()) {
414 CHECK_EXPR(BinaryOperation, Bounds::Unbounded()) { 417 CHECK_EXPR(BinaryOperation, Bounds::Unbounded()) {
415 // Skip x + x 418 // Skip x + x
416 CHECK_SKIP(); 419 CHECK_SKIP();
417 CHECK_EXPR(Literal, Bounds::Unbounded()); 420 CHECK_EXPR(Literal, Bounds::Unbounded());
418 } 421 }
419 } 422 }
420 } 423 }
421 CHECK_TYPES_END 424 CHECK_TYPES_END
422 } 425 }
OLDNEW
« no previous file with comments | « src/runtime/runtime-generator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698