| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |