| 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/bootstrapper.h" | 5 #include "src/bootstrapper.h" |
| 6 #include "src/compiler/graph-inl.h" | 6 #include "src/compiler/graph-inl.h" |
| 7 #include "src/compiler/graph-reducer.h" | 7 #include "src/compiler/graph-reducer.h" |
| 8 #include "src/compiler/js-operator.h" | 8 #include "src/compiler/js-operator.h" |
| 9 #include "src/compiler/node.h" | 9 #include "src/compiler/node.h" |
| 10 #include "src/compiler/node-properties-inl.h" | 10 #include "src/compiler/node-properties-inl.h" |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 | 131 |
| 132 Factory* factory() const { return isolate()->factory(); } | 132 Factory* factory() const { return isolate()->factory(); } |
| 133 Isolate* isolate() const { return zone()->isolate(); } | 133 Isolate* isolate() const { return zone()->isolate(); } |
| 134 Zone* zone() const { return zone_; } | 134 Zone* zone() const { return zone_; } |
| 135 | 135 |
| 136 Type* cache_[kNumLazyCachedTypes]; | 136 Type* cache_[kNumLazyCachedTypes]; |
| 137 Zone* zone_; | 137 Zone* zone_; |
| 138 }; | 138 }; |
| 139 | 139 |
| 140 | 140 |
| 141 class Typer::Decorator : public GraphDecorator { | 141 class Typer::Decorator FINAL : public GraphDecorator { |
| 142 public: | 142 public: |
| 143 explicit Decorator(Typer* typer) : typer_(typer) {} | 143 explicit Decorator(Typer* typer) : typer_(typer) {} |
| 144 virtual void Decorate(Node* node); | 144 void Decorate(Node* node) FINAL; |
| 145 | 145 |
| 146 private: | 146 private: |
| 147 Typer* typer_; | 147 Typer* typer_; |
| 148 }; | 148 }; |
| 149 | 149 |
| 150 | 150 |
| 151 Typer::Typer(Graph* graph, MaybeHandle<Context> context) | 151 Typer::Typer(Graph* graph, MaybeHandle<Context> context) |
| 152 : graph_(graph), | 152 : graph_(graph), |
| 153 context_(context), | 153 context_(context), |
| 154 decorator_(NULL), | 154 decorator_(NULL), |
| (...skipping 1942 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2097 // TODO(rossberg): Do we want some ClampedArray type to express this? | 2097 // TODO(rossberg): Do we want some ClampedArray type to express this? |
| 2098 break; | 2098 break; |
| 2099 } | 2099 } |
| 2100 } | 2100 } |
| 2101 return Type::Constant(value, zone()); | 2101 return Type::Constant(value, zone()); |
| 2102 } | 2102 } |
| 2103 | 2103 |
| 2104 } // namespace compiler | 2104 } // namespace compiler |
| 2105 } // namespace internal | 2105 } // namespace internal |
| 2106 } // namespace v8 | 2106 } // namespace v8 |
| OLD | NEW |