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

Side by Side Diff: test/unittests/compiler/js-intrinsic-lowering-unittest.cc

Issue 2014473003: [turbofan] Remove the EmptyFrameState caching on JSGraph. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@JSInliner_Zone
Patch Set: Created 4 years, 7 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
« no previous file with comments | « test/cctest/compiler/test-js-context-specialization.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 "src/compiler/access-builder.h" 5 #include "src/compiler/access-builder.h"
6 #include "src/compiler/diamond.h" 6 #include "src/compiler/diamond.h"
7 #include "src/compiler/js-graph.h" 7 #include "src/compiler/js-graph.h"
8 #include "src/compiler/js-intrinsic-lowering.h" 8 #include "src/compiler/js-intrinsic-lowering.h"
9 #include "src/compiler/js-operator.h" 9 #include "src/compiler/js-operator.h"
10 #include "test/unittests/compiler/graph-unittest.h" 10 #include "test/unittests/compiler/graph-unittest.h"
(...skipping 25 matching lines...) Expand all
36 SimplifiedOperatorBuilder simplified(zone()); 36 SimplifiedOperatorBuilder simplified(zone());
37 JSGraph jsgraph(isolate(), graph(), common(), javascript(), &simplified, 37 JSGraph jsgraph(isolate(), graph(), common(), javascript(), &simplified,
38 &machine); 38 &machine);
39 // TODO(titzer): mock the GraphReducer here for better unit testing. 39 // TODO(titzer): mock the GraphReducer here for better unit testing.
40 GraphReducer graph_reducer(zone(), graph()); 40 GraphReducer graph_reducer(zone(), graph());
41 JSIntrinsicLowering reducer(&graph_reducer, &jsgraph, 41 JSIntrinsicLowering reducer(&graph_reducer, &jsgraph,
42 JSIntrinsicLowering::kDeoptimizationEnabled); 42 JSIntrinsicLowering::kDeoptimizationEnabled);
43 return reducer.Reduce(node); 43 return reducer.Reduce(node);
44 } 44 }
45 45
46 Node* EmptyFrameState() {
47 MachineOperatorBuilder machine(zone());
48 JSGraph jsgraph(isolate(), graph(), common(), javascript(), nullptr,
49 &machine);
50 return jsgraph.EmptyFrameState();
51 }
52
53 JSOperatorBuilder* javascript() { return &javascript_; } 46 JSOperatorBuilder* javascript() { return &javascript_; }
54 47
55 private: 48 private:
56 JSOperatorBuilder javascript_; 49 JSOperatorBuilder javascript_;
57 }; 50 };
58 51
59 52
60 // ----------------------------------------------------------------------------- 53 // -----------------------------------------------------------------------------
61 // %_ConstructDouble 54 // %_ConstructDouble
62 55
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 CaptureEq(&if_false0)))))), 273 CaptureEq(&if_false0)))))),
281 IsMerge( 274 IsMerge(
282 IsIfTrue(AllOf(CaptureEq(&branch0), 275 IsIfTrue(AllOf(CaptureEq(&branch0),
283 IsBranch(IsObjectIsSmi(input), control))), 276 IsBranch(IsObjectIsSmi(input), control))),
284 AllOf(CaptureEq(&if_false0), IsIfFalse(CaptureEq(&branch0)))))); 277 AllOf(CaptureEq(&if_false0), IsIfFalse(CaptureEq(&branch0))))));
285 } 278 }
286 279
287 } // namespace compiler 280 } // namespace compiler
288 } // namespace internal 281 } // namespace internal
289 } // namespace v8 282 } // namespace v8
OLDNEW
« no previous file with comments | « test/cctest/compiler/test-js-context-specialization.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698