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

Side by Side Diff: test/unittests/compiler/js-typed-lowering-unittest.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
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/access-builder.h" 5 #include "src/compiler/access-builder.h"
6 #include "src/compiler/js-graph.h" 6 #include "src/compiler/js-graph.h"
7 #include "src/compiler/js-operator.h" 7 #include "src/compiler/js-operator.h"
8 #include "src/compiler/js-typed-lowering.h" 8 #include "src/compiler/js-typed-lowering.h"
9 #include "src/compiler/machine-operator.h" 9 #include "src/compiler/machine-operator.h"
10 #include "src/compiler/node-properties-inl.h" 10 #include "src/compiler/node-properties-inl.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 69
70 class JSTypedLoweringTest : public TypedGraphTest { 70 class JSTypedLoweringTest : public TypedGraphTest {
71 public: 71 public:
72 JSTypedLoweringTest() : TypedGraphTest(3), javascript_(zone()) {} 72 JSTypedLoweringTest() : TypedGraphTest(3), javascript_(zone()) {}
73 ~JSTypedLoweringTest() OVERRIDE {} 73 ~JSTypedLoweringTest() OVERRIDE {}
74 74
75 protected: 75 protected:
76 Reduction Reduce(Node* node) { 76 Reduction Reduce(Node* node) {
77 MachineOperatorBuilder machine(zone()); 77 MachineOperatorBuilder machine(zone());
78 JSGraph jsgraph(graph(), common(), javascript(), &machine); 78 JSGraph jsgraph(isolate(), graph(), common(), javascript(), &machine);
79 JSTypedLowering reducer(&jsgraph, zone()); 79 JSTypedLowering reducer(&jsgraph, zone());
80 return reducer.Reduce(node); 80 return reducer.Reduce(node);
81 } 81 }
82 82
83 Node* EmptyFrameState() { 83 Node* EmptyFrameState() {
84 MachineOperatorBuilder machine(zone()); 84 MachineOperatorBuilder machine(zone());
85 JSGraph jsgraph(graph(), common(), javascript(), &machine); 85 JSGraph jsgraph(isolate(), graph(), common(), javascript(), &machine);
86 return jsgraph.EmptyFrameState(); 86 return jsgraph.EmptyFrameState();
87 } 87 }
88 88
89 Handle<JSArrayBuffer> NewArrayBuffer(void* bytes, size_t byte_length) { 89 Handle<JSArrayBuffer> NewArrayBuffer(void* bytes, size_t byte_length) {
90 Handle<JSArrayBuffer> buffer = factory()->NewJSArrayBuffer(); 90 Handle<JSArrayBuffer> buffer = factory()->NewJSArrayBuffer();
91 Runtime::SetupArrayBuffer(isolate(), buffer, true, bytes, byte_length); 91 Runtime::SetupArrayBuffer(isolate(), buffer, true, bytes, byte_length);
92 return buffer; 92 return buffer;
93 } 93 }
94 94
95 Matcher<Node*> IsIntPtrConstant(intptr_t value) { 95 Matcher<Node*> IsIntPtrConstant(intptr_t value) {
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after
809 IsStoreElement( 809 IsStoreElement(
810 access, IsIntPtrConstant(bit_cast<intptr_t>(&backing_store[0])), 810 access, IsIntPtrConstant(bit_cast<intptr_t>(&backing_store[0])),
811 key, value, effect, control)); 811 key, value, effect, control));
812 } 812 }
813 } 813 }
814 } 814 }
815 815
816 } // namespace compiler 816 } // namespace compiler
817 } // namespace internal 817 } // namespace internal
818 } // namespace v8 818 } // namespace v8
OLDNEW
« no previous file with comments | « test/unittests/compiler/js-builtin-reducer-unittest.cc ('k') | test/unittests/compiler/loop-peeling-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698