| 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.h" | 10 #include "src/compiler/node-properties.h" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 | 65 |
| 66 STATIC_ASSERT(LANGUAGE_END == 3); | 66 STATIC_ASSERT(LANGUAGE_END == 3); |
| 67 const LanguageMode kLanguageModes[] = {SLOPPY, STRICT, STRONG}; | 67 const LanguageMode kLanguageModes[] = {SLOPPY, STRICT, STRONG}; |
| 68 | 68 |
| 69 } // namespace | 69 } // namespace |
| 70 | 70 |
| 71 | 71 |
| 72 class JSTypedLoweringTest : public TypedGraphTest { | 72 class JSTypedLoweringTest : public TypedGraphTest { |
| 73 public: | 73 public: |
| 74 JSTypedLoweringTest() : TypedGraphTest(3), javascript_(zone()) {} | 74 JSTypedLoweringTest() : TypedGraphTest(3), javascript_(zone()) {} |
| 75 ~JSTypedLoweringTest() OVERRIDE {} | 75 ~JSTypedLoweringTest() override {} |
| 76 | 76 |
| 77 protected: | 77 protected: |
| 78 Reduction Reduce(Node* node) { | 78 Reduction Reduce(Node* node) { |
| 79 MachineOperatorBuilder machine(zone()); | 79 MachineOperatorBuilder machine(zone()); |
| 80 JSGraph jsgraph(isolate(), graph(), common(), javascript(), &machine); | 80 JSGraph jsgraph(isolate(), graph(), common(), javascript(), &machine); |
| 81 JSTypedLowering reducer(&jsgraph, zone()); | 81 JSTypedLowering reducer(&jsgraph, zone()); |
| 82 return reducer.Reduce(node); | 82 return reducer.Reduce(node); |
| 83 } | 83 } |
| 84 | 84 |
| 85 Node* EmptyFrameState() { | 85 Node* EmptyFrameState() { |
| (...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 885 | 885 |
| 886 Reduction r = Reduce(node); | 886 Reduction r = Reduce(node); |
| 887 | 887 |
| 888 EXPECT_THAT(r.replacement(), matches[i]); | 888 EXPECT_THAT(r.replacement(), matches[i]); |
| 889 } | 889 } |
| 890 } | 890 } |
| 891 | 891 |
| 892 } // namespace compiler | 892 } // namespace compiler |
| 893 } // namespace internal | 893 } // namespace internal |
| 894 } // namespace v8 | 894 } // namespace v8 |
| OLD | NEW |