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

Side by Side Diff: test/cctest/compiler/test-representation-change.cc

Issue 868883002: Remove the dependency of Zone on Isolate (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix compilation issues Created 5 years, 11 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-osr.cc ('k') | test/cctest/compiler/test-simplified-lowering.cc » ('j') | 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 <limits> 5 #include <limits>
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 #include "test/cctest/cctest.h" 8 #include "test/cctest/cctest.h"
9 #include "test/cctest/compiler/graph-builder-tester.h" 9 #include "test/cctest/compiler/graph-builder-tester.h"
10 #include "test/cctest/compiler/value-helper.h" 10 #include "test/cctest/compiler/value-helper.h"
11 11
12 #include "src/compiler/node-matchers.h" 12 #include "src/compiler/node-matchers.h"
13 #include "src/compiler/representation-change.h" 13 #include "src/compiler/representation-change.h"
14 14
15 using namespace v8::internal; 15 using namespace v8::internal;
16 using namespace v8::internal::compiler; 16 using namespace v8::internal::compiler;
17 17
18 namespace v8 { // for friendiness. 18 namespace v8 { // for friendiness.
19 namespace internal { 19 namespace internal {
20 namespace compiler { 20 namespace compiler {
21 21
22 class RepresentationChangerTester : public HandleAndZoneScope, 22 class RepresentationChangerTester : public HandleAndZoneScope,
23 public GraphAndBuilders { 23 public GraphAndBuilders {
24 public: 24 public:
25 explicit RepresentationChangerTester(int num_parameters = 0) 25 explicit RepresentationChangerTester(int num_parameters = 0)
26 : GraphAndBuilders(main_zone()), 26 : GraphAndBuilders(main_zone()),
27 javascript_(main_zone()), 27 javascript_(main_zone()),
28 jsgraph_(main_graph_, &main_common_, &javascript_, &main_machine_), 28 jsgraph_(main_isolate(), main_graph_, &main_common_, &javascript_,
29 &main_machine_),
29 changer_(&jsgraph_, &main_simplified_, main_isolate()) { 30 changer_(&jsgraph_, &main_simplified_, main_isolate()) {
30 Node* s = graph()->NewNode(common()->Start(num_parameters)); 31 Node* s = graph()->NewNode(common()->Start(num_parameters));
31 graph()->SetStart(s); 32 graph()->SetStart(s);
32 } 33 }
33 34
34 JSOperatorBuilder javascript_; 35 JSOperatorBuilder javascript_;
35 JSGraph jsgraph_; 36 JSGraph jsgraph_;
36 RepresentationChanger changer_; 37 RepresentationChanger changer_;
37 38
38 Isolate* isolate() { return main_isolate(); } 39 Isolate* isolate() { return main_isolate(); }
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 r.CheckTypeError(kRepWord32 | kTypeUint32, kRepWord64); 543 r.CheckTypeError(kRepWord32 | kTypeUint32, kRepWord64);
543 544
544 for (size_t i = 0; i < arraysize(all_reps); i++) { 545 for (size_t i = 0; i < arraysize(all_reps); i++) {
545 for (size_t j = 0; j < arraysize(all_reps); j++) { 546 for (size_t j = 0; j < arraysize(all_reps); j++) {
546 if (i == j) continue; 547 if (i == j) continue;
547 // Only a single from representation is allowed. 548 // Only a single from representation is allowed.
548 r.CheckTypeError(all_reps[i] | all_reps[j], kRepTagged); 549 r.CheckTypeError(all_reps[i] | all_reps[j], kRepTagged);
549 } 550 }
550 } 551 }
551 } 552 }
OLDNEW
« no previous file with comments | « test/cctest/compiler/test-osr.cc ('k') | test/cctest/compiler/test-simplified-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698