| 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 // TODO(jochen): Remove this after the setting is turned on globally. | 5 // TODO(jochen): Remove this after the setting is turned on globally. |
| 6 #define V8_IMMINENT_DEPRECATION_WARNINGS | 6 #define V8_IMMINENT_DEPRECATION_WARNINGS |
| 7 | 7 |
| 8 #include "src/v8.h" | 8 #include "src/v8.h" |
| 9 | 9 |
| 10 #include "src/ast/ast.h" | 10 #include "src/ast/ast.h" |
| (...skipping 1512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1523 "function bar(x) { x = x * 4.0; }\n" | 1523 "function bar(x) { x = x * 4.0; }\n" |
| 1524 "function foo() { bar(2); }", | 1524 "function foo() { bar(2); }", |
| 1525 "asm: line 39: invalid type annotation on binary op\n"); | 1525 "asm: line 39: invalid type annotation on binary op\n"); |
| 1526 } | 1526 } |
| 1527 | 1527 |
| 1528 | 1528 |
| 1529 TEST(InvalidArgumentCount) { | 1529 TEST(InvalidArgumentCount) { |
| 1530 CHECK_FUNC_ERROR( | 1530 CHECK_FUNC_ERROR( |
| 1531 "function bar(x) { return fround(4, 5); }\n" | 1531 "function bar(x) { return fround(4, 5); }\n" |
| 1532 "function foo() { bar(); }", | 1532 "function foo() { bar(); }", |
| 1533 "asm: line 39: invalid argument count calling fround\n"); | 1533 "asm: line 39: invalid argument count calling function\n"); |
| 1534 } | 1534 } |
| 1535 | 1535 |
| 1536 | 1536 |
| 1537 TEST(InvalidTypeAnnotationArity) { | 1537 TEST(InvalidTypeAnnotationArity) { |
| 1538 CHECK_FUNC_ERROR( | 1538 CHECK_FUNC_ERROR( |
| 1539 "function bar(x) { x = max(x); }\n" | 1539 "function bar(x) { x = max(x); }\n" |
| 1540 "function foo() { bar(3); }", | 1540 "function foo() { bar(3); }", |
| 1541 "asm: line 39: only fround allowed on expression annotations\n"); | 1541 "asm: line 39: only fround allowed on expression annotations\n"); |
| 1542 } | 1542 } |
| 1543 | 1543 |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1818 CHECK(!cache.kAsmFloat->Is(cache.kAsmFixnum)); | 1818 CHECK(!cache.kAsmFloat->Is(cache.kAsmFixnum)); |
| 1819 CHECK(!cache.kAsmFloat->Is(cache.kAsmDouble)); | 1819 CHECK(!cache.kAsmFloat->Is(cache.kAsmDouble)); |
| 1820 | 1820 |
| 1821 CHECK(cache.kAsmDouble->Is(cache.kAsmDouble)); | 1821 CHECK(cache.kAsmDouble->Is(cache.kAsmDouble)); |
| 1822 CHECK(!cache.kAsmDouble->Is(cache.kAsmInt)); | 1822 CHECK(!cache.kAsmDouble->Is(cache.kAsmInt)); |
| 1823 CHECK(!cache.kAsmDouble->Is(cache.kAsmUnsigned)); | 1823 CHECK(!cache.kAsmDouble->Is(cache.kAsmUnsigned)); |
| 1824 CHECK(!cache.kAsmDouble->Is(cache.kAsmSigned)); | 1824 CHECK(!cache.kAsmDouble->Is(cache.kAsmSigned)); |
| 1825 CHECK(!cache.kAsmDouble->Is(cache.kAsmFixnum)); | 1825 CHECK(!cache.kAsmDouble->Is(cache.kAsmFixnum)); |
| 1826 CHECK(!cache.kAsmDouble->Is(cache.kAsmFloat)); | 1826 CHECK(!cache.kAsmDouble->Is(cache.kAsmFloat)); |
| 1827 } | 1827 } |
| OLD | NEW |