| 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/js-context-specialization.h" | 5 #include "src/compiler/js-context-specialization.h" |
| 6 | 6 |
| 7 #include "src/compiler/common-operator.h" | 7 #include "src/compiler/common-operator.h" |
| 8 #include "src/compiler/js-graph.h" | 8 #include "src/compiler/js-graph.h" |
| 9 #include "src/compiler/js-operator.h" | 9 #include "src/compiler/js-operator.h" |
| 10 #include "src/compiler/node-matchers.h" | 10 #include "src/compiler/node-matchers.h" |
| 11 #include "src/compiler/node-properties.h" | 11 #include "src/compiler/node-properties.h" |
| 12 #include "src/contexts.h" | 12 #include "src/contexts.h" |
| 13 #include "src/objects-inl.h" |
| 13 | 14 |
| 14 namespace v8 { | 15 namespace v8 { |
| 15 namespace internal { | 16 namespace internal { |
| 16 namespace compiler { | 17 namespace compiler { |
| 17 | 18 |
| 18 Reduction JSContextSpecialization::Reduce(Node* node) { | 19 Reduction JSContextSpecialization::Reduce(Node* node) { |
| 19 switch (node->opcode()) { | 20 switch (node->opcode()) { |
| 20 case IrOpcode::kJSLoadContext: | 21 case IrOpcode::kJSLoadContext: |
| 21 return ReduceJSLoadContext(node); | 22 return ReduceJSLoadContext(node); |
| 22 case IrOpcode::kJSStoreContext: | 23 case IrOpcode::kJSStoreContext: |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 } | 130 } |
| 130 | 131 |
| 131 | 132 |
| 132 JSOperatorBuilder* JSContextSpecialization::javascript() const { | 133 JSOperatorBuilder* JSContextSpecialization::javascript() const { |
| 133 return jsgraph()->javascript(); | 134 return jsgraph()->javascript(); |
| 134 } | 135 } |
| 135 | 136 |
| 136 } // namespace compiler | 137 } // namespace compiler |
| 137 } // namespace internal | 138 } // namespace internal |
| 138 } // namespace v8 | 139 } // namespace v8 |
| OLD | NEW |