| 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 "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "src/ast/ast.h" | 7 #include "src/ast/ast.h" |
| 8 #include "src/ast/ast-expression-visitor.h" | 8 #include "src/ast/ast-expression-visitor.h" |
| 9 #include "src/ast/scopes.h" | 9 #include "src/ast/scopes.h" |
| 10 #include "src/parsing/parser.h" | 10 #include "src/parsing/parser.h" |
| (...skipping 1782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1793 | 1793 |
| 1794 TEST(NeStrict) { | 1794 TEST(NeStrict) { |
| 1795 CHECK_FUNC_ERROR( | 1795 CHECK_FUNC_ERROR( |
| 1796 "function bar() { return (0 !== 0)|0; }\n" | 1796 "function bar() { return (0 !== 0)|0; }\n" |
| 1797 "function foo() { bar(); }", | 1797 "function foo() { bar(); }", |
| 1798 "asm: line 1: illegal comparison operator\n"); | 1798 "asm: line 1: illegal comparison operator\n"); |
| 1799 } | 1799 } |
| 1800 | 1800 |
| 1801 | 1801 |
| 1802 TEST(InstanceOf) { | 1802 TEST(InstanceOf) { |
| 1803 const char* errorMsg = FLAG_harmony_instanceof | |
| 1804 ? "asm: line 0: do-expression encountered\n" | |
| 1805 : "asm: line 1: illegal comparison operator\n"; | |
| 1806 | |
| 1807 CHECK_FUNC_ERROR( | 1803 CHECK_FUNC_ERROR( |
| 1808 "function bar() { return (0 instanceof 0)|0; }\n" | 1804 "function bar() { return (0 instanceof 0)|0; }\n" |
| 1809 "function foo() { bar(); }", | 1805 "function foo() { bar(); }", |
| 1810 errorMsg); | 1806 "asm: line 1: illegal comparison operator\n"); |
| 1811 } | 1807 } |
| 1812 | 1808 |
| 1813 | 1809 |
| 1814 TEST(InOperator) { | 1810 TEST(InOperator) { |
| 1815 CHECK_FUNC_ERROR( | 1811 CHECK_FUNC_ERROR( |
| 1816 "function bar() { return (0 in 0)|0; }\n" | 1812 "function bar() { return (0 in 0)|0; }\n" |
| 1817 "function foo() { bar(); }", | 1813 "function foo() { bar(); }", |
| 1818 "asm: line 1: illegal comparison operator\n"); | 1814 "asm: line 1: illegal comparison operator\n"); |
| 1819 } | 1815 } |
| 1820 | 1816 |
| (...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2504 CHECK_EXPR(BinaryOperation, Bounds(cache.kAsmDouble)) { | 2500 CHECK_EXPR(BinaryOperation, Bounds(cache.kAsmDouble)) { |
| 2505 CHECK_VAR(x, Bounds(cache.kAsmDouble)); | 2501 CHECK_VAR(x, Bounds(cache.kAsmDouble)); |
| 2506 CHECK_EXPR(Literal, Bounds(cache.kAsmDouble)); | 2502 CHECK_EXPR(Literal, Bounds(cache.kAsmDouble)); |
| 2507 } | 2503 } |
| 2508 } | 2504 } |
| 2509 } | 2505 } |
| 2510 CHECK_SKIP(); | 2506 CHECK_SKIP(); |
| 2511 } | 2507 } |
| 2512 CHECK_FUNC_TYPES_END | 2508 CHECK_FUNC_TYPES_END |
| 2513 } | 2509 } |
| OLD | NEW |