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

Side by Side Diff: test/unittests/wasm/loop-assignment-analysis-unittest.cc

Issue 1661713003: [wasm] Rename local_int32_count to local_i32_count and similar textual replacements. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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 15 matching lines...) Expand all
26 WasmLoopAssignmentAnalyzerTest() : TestWithZone(), sigs() { 26 WasmLoopAssignmentAnalyzerTest() : TestWithZone(), sigs() {
27 init_env(&env, sigs.v_v()); 27 init_env(&env, sigs.v_v());
28 } 28 }
29 29
30 TestSignatures sigs; 30 TestSignatures sigs;
31 FunctionEnv env; 31 FunctionEnv env;
32 32
33 static void init_env(FunctionEnv* env, FunctionSig* sig) { 33 static void init_env(FunctionEnv* env, FunctionSig* sig) {
34 env->module = nullptr; 34 env->module = nullptr;
35 env->sig = sig; 35 env->sig = sig;
36 env->local_int32_count = 0; 36 env->local_i32_count = 0;
37 env->local_int64_count = 0; 37 env->local_i64_count = 0;
38 env->local_float32_count = 0; 38 env->local_f32_count = 0;
39 env->local_float64_count = 0; 39 env->local_f64_count = 0;
40 env->SumLocals(); 40 env->SumLocals();
41 } 41 }
42 42
43 BitVector* Analyze(const byte* start, const byte* end) { 43 BitVector* Analyze(const byte* start, const byte* end) {
44 return AnalyzeLoopAssignmentForTesting(zone(), &env, start, end); 44 return AnalyzeLoopAssignmentForTesting(zone(), &env, start, end);
45 } 45 }
46 }; 46 };
47 47
48 48
49 TEST_F(WasmLoopAssignmentAnalyzerTest, Empty0) { 49 TEST_F(WasmLoopAssignmentAnalyzerTest, Empty0) {
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 for (int j = 0; j < assigned->length(); j++) { 202 for (int j = 0; j < assigned->length(); j++) {
203 bool expected = j == kIter || j == kSum; 203 bool expected = j == kIter || j == kSum;
204 CHECK_EQ(expected, assigned->Contains(j)); 204 CHECK_EQ(expected, assigned->Contains(j));
205 } 205 }
206 } 206 }
207 207
208 208
209 } // namespace wasm 209 } // namespace wasm
210 } // namespace internal 210 } // namespace internal
211 } // namespace v8 211 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698