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

Side by Side Diff: test/unittests/compiler/graph-unittest.h

Issue 1844553002: [wasm] New attempt to implement the Int64Lowering of phis. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixed out-of-bounds memory access. Created 4 years, 8 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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 V8_UNITTESTS_COMPILER_GRAPH_UNITTEST_H_ 5 #ifndef V8_UNITTESTS_COMPILER_GRAPH_UNITTEST_H_
6 #define V8_UNITTESTS_COMPILER_GRAPH_UNITTEST_H_ 6 #define V8_UNITTESTS_COMPILER_GRAPH_UNITTEST_H_
7 7
8 #include "src/compiler/common-operator.h" 8 #include "src/compiler/common-operator.h"
9 #include "src/compiler/graph.h" 9 #include "src/compiler/graph.h"
10 #include "src/compiler/typer.h" 10 #include "src/compiler/typer.h"
(...skipping 11 matching lines...) Expand all
22 namespace compiler { 22 namespace compiler {
23 23
24 using ::testing::Matcher; 24 using ::testing::Matcher;
25 25
26 26
27 class GraphTest : public TestWithContext, public TestWithIsolateAndZone { 27 class GraphTest : public TestWithContext, public TestWithIsolateAndZone {
28 public: 28 public:
29 explicit GraphTest(int num_parameters = 1); 29 explicit GraphTest(int num_parameters = 1);
30 ~GraphTest() override; 30 ~GraphTest() override;
31 31
32 protected:
33 Node* start() { return graph()->start(); } 32 Node* start() { return graph()->start(); }
34 Node* end() { return graph()->end(); } 33 Node* end() { return graph()->end(); }
35 34
36 Node* Parameter(int32_t index = 0); 35 Node* Parameter(int32_t index = 0);
37 Node* Float32Constant(volatile float value); 36 Node* Float32Constant(volatile float value);
38 Node* Float64Constant(volatile double value); 37 Node* Float64Constant(volatile double value);
39 Node* Int32Constant(int32_t value); 38 Node* Int32Constant(int32_t value);
40 Node* Uint32Constant(uint32_t value) { 39 Node* Uint32Constant(uint32_t value) {
41 return Int32Constant(bit_cast<int32_t>(value)); 40 return Int32Constant(bit_cast<int32_t>(value));
42 } 41 }
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 74
76 private: 75 private:
77 Typer typer_; 76 Typer typer_;
78 }; 77 };
79 78
80 } // namespace compiler 79 } // namespace compiler
81 } // namespace internal 80 } // namespace internal
82 } // namespace v8 81 } // namespace v8
83 82
84 #endif // V8_UNITTESTS_COMPILER_GRAPH_UNITTEST_H_ 83 #endif // V8_UNITTESTS_COMPILER_GRAPH_UNITTEST_H_
OLDNEW
« no previous file with comments | « test/cctest/wasm/test-run-wasm-64.cc ('k') | test/unittests/compiler/int64-lowering-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698