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

Side by Side Diff: test/unittests/wasm/ast-decoder-unittest.cc

Issue 2344143003: Moved zones and zone related stuff in its own directory. (Closed)
Patch Set: Renamed defines to match new file locations Created 4 years, 3 months 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
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 #include "test/unittests/test-utils.h" 5 #include "test/unittests/test-utils.h"
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #include "test/cctest/wasm/test-signatures.h" 9 #include "test/cctest/wasm/test-signatures.h"
10 10
(...skipping 2475 matching lines...) Expand 10 before | Expand all | Expand 10 after
2486 EXPECT_ARITY(1, kExprF64ConvertF32); 2486 EXPECT_ARITY(1, kExprF64ConvertF32);
2487 EXPECT_ARITY(1, kExprF64ReinterpretI64); 2487 EXPECT_ARITY(1, kExprF64ReinterpretI64);
2488 EXPECT_ARITY(1, kExprI32ReinterpretF32); 2488 EXPECT_ARITY(1, kExprI32ReinterpretF32);
2489 EXPECT_ARITY(1, kExprI64ReinterpretF64); 2489 EXPECT_ARITY(1, kExprI64ReinterpretF64);
2490 } 2490 }
2491 2491
2492 typedef ZoneVector<LocalType> LocalTypeMap; 2492 typedef ZoneVector<LocalType> LocalTypeMap;
2493 2493
2494 class LocalDeclDecoderTest : public TestWithZone { 2494 class LocalDeclDecoderTest : public TestWithZone {
2495 public: 2495 public:
2496 base::AccountingAllocator allocator; 2496 v8::internal::AccountingAllocator allocator;
2497 2497
2498 size_t ExpectRun(LocalTypeMap map, size_t pos, LocalType expected, 2498 size_t ExpectRun(LocalTypeMap map, size_t pos, LocalType expected,
2499 size_t count) { 2499 size_t count) {
2500 for (size_t i = 0; i < count; i++) { 2500 for (size_t i = 0; i < count; i++) {
2501 EXPECT_EQ(expected, map[pos++]); 2501 EXPECT_EQ(expected, map[pos++]);
2502 } 2502 }
2503 return pos; 2503 return pos;
2504 } 2504 }
2505 2505
2506 LocalTypeMap Expand(AstLocalDecls& decls) { 2506 LocalTypeMap Expand(AstLocalDecls& decls) {
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
2658 iter.next(); 2658 iter.next();
2659 EXPECT_TRUE(iter.has_next()); 2659 EXPECT_TRUE(iter.has_next());
2660 EXPECT_EQ(kExprI8Const, iter.current()); 2660 EXPECT_EQ(kExprI8Const, iter.current());
2661 iter.next(); 2661 iter.next();
2662 EXPECT_FALSE(iter.has_next()); 2662 EXPECT_FALSE(iter.has_next());
2663 } 2663 }
2664 2664
2665 } // namespace wasm 2665 } // namespace wasm
2666 } // namespace internal 2666 } // namespace internal
2667 } // namespace v8 2667 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698