| 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 1293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1304 "function bar(x) { x = x * 4.0; }\n" | 1304 "function bar(x) { x = x * 4.0; }\n" |
| 1305 "function foo() { bar(2); }", | 1305 "function foo() { bar(2); }", |
| 1306 "asm: line 39: invalid type annotation on binary op\n"); | 1306 "asm: line 39: invalid type annotation on binary op\n"); |
| 1307 } | 1307 } |
| 1308 | 1308 |
| 1309 | 1309 |
| 1310 TEST(InvalidArgumentCount) { | 1310 TEST(InvalidArgumentCount) { |
| 1311 CHECK_FUNC_ERROR( | 1311 CHECK_FUNC_ERROR( |
| 1312 "function bar(x) { return fround(4, 5); }\n" | 1312 "function bar(x) { return fround(4, 5); }\n" |
| 1313 "function foo() { bar(); }", | 1313 "function foo() { bar(); }", |
| 1314 "asm: line 39: invalid argument count calling fround\n"); | 1314 "asm: line 39: invalid argument count calling function\n"); |
| 1315 } | 1315 } |
| 1316 | 1316 |
| 1317 | 1317 |
| 1318 TEST(InvalidTypeAnnotationArity) { | 1318 TEST(InvalidTypeAnnotationArity) { |
| 1319 CHECK_FUNC_ERROR( | 1319 CHECK_FUNC_ERROR( |
| 1320 "function bar(x) { x = max(x); }\n" | 1320 "function bar(x) { x = max(x); }\n" |
| 1321 "function foo() { bar(3); }", | 1321 "function foo() { bar(3); }", |
| 1322 "asm: line 39: only fround allowed on expression annotations\n"); | 1322 "asm: line 39: only fround allowed on expression annotations\n"); |
| 1323 } | 1323 } |
| 1324 | 1324 |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1523 CHECK(!cache.kAsmFloat->Is(cache.kAsmFixnum)); | 1523 CHECK(!cache.kAsmFloat->Is(cache.kAsmFixnum)); |
| 1524 CHECK(!cache.kAsmFloat->Is(cache.kAsmDouble)); | 1524 CHECK(!cache.kAsmFloat->Is(cache.kAsmDouble)); |
| 1525 | 1525 |
| 1526 CHECK(cache.kAsmDouble->Is(cache.kAsmDouble)); | 1526 CHECK(cache.kAsmDouble->Is(cache.kAsmDouble)); |
| 1527 CHECK(!cache.kAsmDouble->Is(cache.kAsmInt)); | 1527 CHECK(!cache.kAsmDouble->Is(cache.kAsmInt)); |
| 1528 CHECK(!cache.kAsmDouble->Is(cache.kAsmUnsigned)); | 1528 CHECK(!cache.kAsmDouble->Is(cache.kAsmUnsigned)); |
| 1529 CHECK(!cache.kAsmDouble->Is(cache.kAsmSigned)); | 1529 CHECK(!cache.kAsmDouble->Is(cache.kAsmSigned)); |
| 1530 CHECK(!cache.kAsmDouble->Is(cache.kAsmFixnum)); | 1530 CHECK(!cache.kAsmDouble->Is(cache.kAsmFixnum)); |
| 1531 CHECK(!cache.kAsmDouble->Is(cache.kAsmFloat)); | 1531 CHECK(!cache.kAsmDouble->Is(cache.kAsmFloat)); |
| 1532 } | 1532 } |
| OLD | NEW |