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

Side by Side Diff: test/cctest/test-asm-validator.cc

Issue 1473513004: Refactor VisitProperty, add starting point for SIMD.js support. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: revision Created 5 years 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
« src/typing-asm.cc ('K') | « src/typing-asm.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 // 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.h" 10 #include "src/ast.h"
(...skipping 1293 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« src/typing-asm.cc ('K') | « src/typing-asm.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698