OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |