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

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

Issue 2473643002: Revert of [turbofan] Support variable size argument popping in TF-generated functions (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
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 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 parameters); 382 parameters);
383 383
384 effect = graph()->NewNode( 384 effect = graph()->NewNode(
385 machine()->Store( 385 machine()->Store(
386 StoreRepresentation(MachineTypeForC<ReturnType>().representation(), 386 StoreRepresentation(MachineTypeForC<ReturnType>().representation(),
387 WriteBarrierKind::kNoWriteBarrier)), 387 WriteBarrierKind::kNoWriteBarrier)),
388 graph()->NewNode(common()->Parameter(WASM_RUNNER_MAX_NUM_PARAMETERS), 388 graph()->NewNode(common()->Parameter(WASM_RUNNER_MAX_NUM_PARAMETERS),
389 graph()->start()), 389 graph()->start()),
390 graph()->NewNode(common()->Int32Constant(0)), call, effect, 390 graph()->NewNode(common()->Int32Constant(0)), call, effect,
391 graph()->start()); 391 graph()->start());
392 Node* zero = graph()->NewNode(common()->Int32Constant(0));
393 Node* r = graph()->NewNode( 392 Node* r = graph()->NewNode(
394 common()->Return(), zero, 393 common()->Return(),
395 graph()->NewNode(common()->Int32Constant(WASM_WRAPPER_RETURN_VALUE)), 394 graph()->NewNode(common()->Int32Constant(WASM_WRAPPER_RETURN_VALUE)),
396 effect, graph()->start()); 395 effect, graph()->start());
397 graph()->SetEnd(graph()->NewNode(common()->End(2), r, graph()->start())); 396 graph()->SetEnd(graph()->NewNode(common()->End(2), r, graph()->start()));
398 } 397 }
399 398
400 void SetInnerCode(Handle<Code> code_handle) { 399 void SetInnerCode(Handle<Code> code_handle) {
401 NodeProperties::ChangeOp(inner_code_node_, 400 NodeProperties::ChangeOp(inner_code_node_,
402 common()->HeapConstant(code_handle)); 401 common()->HeapConstant(code_handle));
403 } 402 }
404 403
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
787 // interpreter. 786 // interpreter.
788 #define WASM_EXEC_TEST(name) \ 787 #define WASM_EXEC_TEST(name) \
789 void RunWasm_##name(WasmExecutionMode execution_mode); \ 788 void RunWasm_##name(WasmExecutionMode execution_mode); \
790 TEST(RunWasmCompiled_##name) { RunWasm_##name(kExecuteCompiled); } \ 789 TEST(RunWasmCompiled_##name) { RunWasm_##name(kExecuteCompiled); } \
791 TEST(RunWasmInterpreted_##name) { RunWasm_##name(kExecuteInterpreted); } \ 790 TEST(RunWasmInterpreted_##name) { RunWasm_##name(kExecuteInterpreted); } \
792 void RunWasm_##name(WasmExecutionMode execution_mode) 791 void RunWasm_##name(WasmExecutionMode execution_mode)
793 792
794 } // namespace 793 } // namespace
795 794
796 #endif 795 #endif
OLDNEW
« no previous file with comments | « test/cctest/test-code-stub-assembler.cc ('k') | test/unittests/compiler/branch-elimination-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698