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

Side by Side Diff: test/cctest/wasm/wasm-run-utils.h

Issue 2463743002: [wasm] Use correct parameter type in wasm-run-utils.h (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « test/cctest/wasm/test-run-wasm.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 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 #ifndef WASM_RUN_UTILS_H 5 #ifndef WASM_RUN_UTILS_H
6 #define WASM_RUN_UTILS_H 6 #define WASM_RUN_UTILS_H
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <stdlib.h> 9 #include <stdlib.h>
10 #include <string.h> 10 #include <string.h>
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 if (p0 != MachineType::None()) { 348 if (p0 != MachineType::None()) {
349 parameters[parameter_count] = graph()->NewNode( 349 parameters[parameter_count] = graph()->NewNode(
350 machine()->Load(p0), 350 machine()->Load(p0),
351 graph()->NewNode(common()->Parameter(0), graph()->start()), 351 graph()->NewNode(common()->Parameter(0), graph()->start()),
352 graph()->NewNode(common()->Int32Constant(0)), effect, 352 graph()->NewNode(common()->Int32Constant(0)), effect,
353 graph()->start()); 353 graph()->start());
354 effect = parameters[parameter_count++]; 354 effect = parameters[parameter_count++];
355 } 355 }
356 if (p1 != MachineType::None()) { 356 if (p1 != MachineType::None()) {
357 parameters[parameter_count] = graph()->NewNode( 357 parameters[parameter_count] = graph()->NewNode(
358 machine()->Load(p0), 358 machine()->Load(p1),
359 graph()->NewNode(common()->Parameter(1), graph()->start()), 359 graph()->NewNode(common()->Parameter(1), graph()->start()),
360 graph()->NewNode(common()->Int32Constant(0)), effect, 360 graph()->NewNode(common()->Int32Constant(0)), effect,
361 graph()->start()); 361 graph()->start());
362 effect = parameters[parameter_count++]; 362 effect = parameters[parameter_count++];
363 } 363 }
364 if (p2 != MachineType::None()) { 364 if (p2 != MachineType::None()) {
365 parameters[parameter_count] = graph()->NewNode( 365 parameters[parameter_count] = graph()->NewNode(
366 machine()->Load(p0), 366 machine()->Load(p2),
367 graph()->NewNode(common()->Parameter(2), graph()->start()), 367 graph()->NewNode(common()->Parameter(2), graph()->start()),
368 graph()->NewNode(common()->Int32Constant(0)), effect, 368 graph()->NewNode(common()->Int32Constant(0)), effect,
369 graph()->start()); 369 graph()->start());
370 effect = parameters[parameter_count++]; 370 effect = parameters[parameter_count++];
371 } 371 }
372 if (p3 != MachineType::None()) { 372 if (p3 != MachineType::None()) {
373 parameters[parameter_count] = graph()->NewNode( 373 parameters[parameter_count] = graph()->NewNode(
374 machine()->Load(p0), 374 machine()->Load(p3),
375 graph()->NewNode(common()->Parameter(3), graph()->start()), 375 graph()->NewNode(common()->Parameter(3), graph()->start()),
376 graph()->NewNode(common()->Int32Constant(0)), effect, 376 graph()->NewNode(common()->Int32Constant(0)), effect,
377 graph()->start()); 377 graph()->start());
378 effect = parameters[parameter_count++]; 378 effect = parameters[parameter_count++];
379 } 379 }
380 380
381 parameters[parameter_count++] = effect; 381 parameters[parameter_count++] = effect;
382 parameters[parameter_count++] = graph()->start(); 382 parameters[parameter_count++] = graph()->start();
383 Node* call = graph()->NewNode(common()->Call(descriptor), parameter_count, 383 Node* call = graph()->NewNode(common()->Call(descriptor), parameter_count,
384 parameters); 384 parameters);
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
788 // interpreter. 788 // interpreter.
789 #define WASM_EXEC_TEST(name) \ 789 #define WASM_EXEC_TEST(name) \
790 void RunWasm_##name(WasmExecutionMode execution_mode); \ 790 void RunWasm_##name(WasmExecutionMode execution_mode); \
791 TEST(RunWasmCompiled_##name) { RunWasm_##name(kExecuteCompiled); } \ 791 TEST(RunWasmCompiled_##name) { RunWasm_##name(kExecuteCompiled); } \
792 TEST(RunWasmInterpreted_##name) { RunWasm_##name(kExecuteInterpreted); } \ 792 TEST(RunWasmInterpreted_##name) { RunWasm_##name(kExecuteInterpreted); } \
793 void RunWasm_##name(WasmExecutionMode execution_mode) 793 void RunWasm_##name(WasmExecutionMode execution_mode)
794 794
795 } // namespace 795 } // namespace
796 796
797 #endif 797 #endif
OLDNEW
« no previous file with comments | « test/cctest/wasm/test-run-wasm.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698