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

Side by Side Diff: test/cctest/compiler/test-js-context-specialization.cc

Issue 2792553002: [turbofan] Specialize to closure with function context specialization. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « src/compiler/pipeline.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 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 "src/compiler/compiler-source-position-table.h" 5 #include "src/compiler/compiler-source-position-table.h"
6 #include "src/compiler/js-context-specialization.h" 6 #include "src/compiler/js-context-specialization.h"
7 #include "src/compiler/js-graph.h" 7 #include "src/compiler/js-graph.h"
8 #include "src/compiler/js-operator.h" 8 #include "src/compiler/js-operator.h"
9 #include "src/compiler/node-matchers.h" 9 #include "src/compiler/node-matchers.h"
10 #include "src/compiler/node-properties.h" 10 #include "src/compiler/node-properties.h"
(...skipping 12 matching lines...) Expand all
23 public: 23 public:
24 explicit ContextSpecializationTester(MaybeHandle<Context> context) 24 explicit ContextSpecializationTester(MaybeHandle<Context> context)
25 : graph_(new (main_zone()) Graph(main_zone())), 25 : graph_(new (main_zone()) Graph(main_zone())),
26 common_(main_zone()), 26 common_(main_zone()),
27 javascript_(main_zone()), 27 javascript_(main_zone()),
28 machine_(main_zone()), 28 machine_(main_zone()),
29 simplified_(main_zone()), 29 simplified_(main_zone()),
30 jsgraph_(main_isolate(), graph(), common(), &javascript_, &simplified_, 30 jsgraph_(main_isolate(), graph(), common(), &javascript_, &simplified_,
31 &machine_), 31 &machine_),
32 reducer_(main_zone(), graph()), 32 reducer_(main_zone(), graph()),
33 spec_(&reducer_, jsgraph(), context) {} 33 spec_(&reducer_, jsgraph(), context, MaybeHandle<JSFunction>()) {}
34 34
35 JSContextSpecialization* spec() { return &spec_; } 35 JSContextSpecialization* spec() { return &spec_; }
36 Factory* factory() { return main_isolate()->factory(); } 36 Factory* factory() { return main_isolate()->factory(); }
37 CommonOperatorBuilder* common() { return &common_; } 37 CommonOperatorBuilder* common() { return &common_; }
38 JSOperatorBuilder* javascript() { return &javascript_; } 38 JSOperatorBuilder* javascript() { return &javascript_; }
39 SimplifiedOperatorBuilder* simplified() { return &simplified_; } 39 SimplifiedOperatorBuilder* simplified() { return &simplified_; }
40 JSGraph* jsgraph() { return &jsgraph_; } 40 JSGraph* jsgraph() { return &jsgraph_; }
41 Graph* graph() { return graph_; } 41 Graph* graph() { return graph_; }
42 42
43 void CheckChangesToValue(Node* node, Handle<HeapObject> expected_value); 43 void CheckChangesToValue(Node* node, Handle<HeapObject> expected_value);
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after
669 669
670 CHECK(T.Call(T.Val(0.0), T.Val(0.0)).ToHandleChecked()->IsNaN()); 670 CHECK(T.Call(T.Val(0.0), T.Val(0.0)).ToHandleChecked()->IsNaN());
671 CHECK(T.Call(T.Val(2.0), T.Val(0.0)).ToHandleChecked()->IsNaN()); 671 CHECK(T.Call(T.Val(2.0), T.Val(0.0)).ToHandleChecked()->IsNaN());
672 CHECK(T.Call(T.Val(-2.1), T.Val(0.0)).ToHandleChecked()->IsNaN()); 672 CHECK(T.Call(T.Val(-2.1), T.Val(0.0)).ToHandleChecked()->IsNaN());
673 } 673 }
674 } 674 }
675 675
676 } // namespace compiler 676 } // namespace compiler
677 } // namespace internal 677 } // namespace internal
678 } // namespace v8 678 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/pipeline.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698