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

Side by Side Diff: test/unittests/compiler/node-test-utils.cc

Issue 1894063002: [Interpreter] Remove register file register and replace with LoadParentFramePointer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix gcc 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 #include "test/unittests/compiler/node-test-utils.h" 5 #include "test/unittests/compiler/node-test-utils.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "src/assembler.h" 9 #include "src/assembler.h"
10 #include "src/compiler/common-operator.h" 10 #include "src/compiler/common-operator.h"
(...skipping 2186 matching lines...) Expand 10 before | Expand all | Expand 10 after
2197 2197
2198 Matcher<Node*> IsParameter(const Matcher<int> index_matcher) { 2198 Matcher<Node*> IsParameter(const Matcher<int> index_matcher) {
2199 return MakeMatcher(new IsParameterMatcher(index_matcher)); 2199 return MakeMatcher(new IsParameterMatcher(index_matcher));
2200 } 2200 }
2201 2201
2202 2202
2203 Matcher<Node*> IsLoadFramePointer() { 2203 Matcher<Node*> IsLoadFramePointer() {
2204 return MakeMatcher(new NodeMatcher(IrOpcode::kLoadFramePointer)); 2204 return MakeMatcher(new NodeMatcher(IrOpcode::kLoadFramePointer));
2205 } 2205 }
2206 2206
2207 Matcher<Node*> IsLoadParentFramePointer() {
2208 return MakeMatcher(new NodeMatcher(IrOpcode::kLoadParentFramePointer));
2209 }
2210
2207 #define IS_QUADOP_MATCHER(Name) \ 2211 #define IS_QUADOP_MATCHER(Name) \
2208 Matcher<Node*> Is##Name( \ 2212 Matcher<Node*> Is##Name( \
2209 const Matcher<Node*>& a_matcher, const Matcher<Node*>& b_matcher, \ 2213 const Matcher<Node*>& a_matcher, const Matcher<Node*>& b_matcher, \
2210 const Matcher<Node*>& c_matcher, const Matcher<Node*>& d_matcher) { \ 2214 const Matcher<Node*>& c_matcher, const Matcher<Node*>& d_matcher) { \
2211 return MakeMatcher(new IsQuadopMatcher(IrOpcode::k##Name, a_matcher, \ 2215 return MakeMatcher(new IsQuadopMatcher(IrOpcode::k##Name, a_matcher, \
2212 b_matcher, c_matcher, d_matcher)); \ 2216 b_matcher, c_matcher, d_matcher)); \
2213 } 2217 }
2214 2218
2215 IS_QUADOP_MATCHER(Int32PairAdd) 2219 IS_QUADOP_MATCHER(Int32PairAdd)
2216 IS_QUADOP_MATCHER(Int32PairSub) 2220 IS_QUADOP_MATCHER(Int32PairSub)
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
2305 IS_UNOP_MATCHER(ObjectIsReceiver) 2309 IS_UNOP_MATCHER(ObjectIsReceiver)
2306 IS_UNOP_MATCHER(ObjectIsSmi) 2310 IS_UNOP_MATCHER(ObjectIsSmi)
2307 IS_UNOP_MATCHER(Word32Clz) 2311 IS_UNOP_MATCHER(Word32Clz)
2308 IS_UNOP_MATCHER(Word32Ctz) 2312 IS_UNOP_MATCHER(Word32Ctz)
2309 IS_UNOP_MATCHER(Word32Popcnt) 2313 IS_UNOP_MATCHER(Word32Popcnt)
2310 #undef IS_UNOP_MATCHER 2314 #undef IS_UNOP_MATCHER
2311 2315
2312 } // namespace compiler 2316 } // namespace compiler
2313 } // namespace internal 2317 } // namespace internal
2314 } // namespace v8 2318 } // namespace v8
OLDNEW
« no previous file with comments | « test/unittests/compiler/node-test-utils.h ('k') | test/unittests/interpreter/bytecode-array-builder-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698