| 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/simplified-lowering.h" | 5 #include "src/compiler/simplified-lowering.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 | 8 |
| 9 #include "src/address-map.h" | 9 #include "src/address-map.h" |
| 10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
| (...skipping 2317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2328 NodeInfo* GetInfo(Node* node) { | 2328 NodeInfo* GetInfo(Node* node) { |
| 2329 DCHECK(node->id() >= 0); | 2329 DCHECK(node->id() >= 0); |
| 2330 DCHECK(node->id() < count_); | 2330 DCHECK(node->id() < count_); |
| 2331 return &info_[node->id()]; | 2331 return &info_[node->id()]; |
| 2332 } | 2332 } |
| 2333 Zone* zone() { return zone_; } | 2333 Zone* zone() { return zone_; } |
| 2334 Zone* graph_zone() { return jsgraph_->zone(); } | 2334 Zone* graph_zone() { return jsgraph_->zone(); } |
| 2335 }; | 2335 }; |
| 2336 | 2336 |
| 2337 SimplifiedLowering::SimplifiedLowering(JSGraph* jsgraph, Zone* zone, | 2337 SimplifiedLowering::SimplifiedLowering(JSGraph* jsgraph, Zone* zone, |
| 2338 SourcePositionTable* source_positions, | 2338 SourcePositionTable* source_positions) |
| 2339 Flags flags) | |
| 2340 : jsgraph_(jsgraph), | 2339 : jsgraph_(jsgraph), |
| 2341 zone_(zone), | 2340 zone_(zone), |
| 2342 type_cache_(TypeCache::Get()), | 2341 type_cache_(TypeCache::Get()), |
| 2343 flags_(flags), | |
| 2344 source_positions_(source_positions) {} | 2342 source_positions_(source_positions) {} |
| 2345 | 2343 |
| 2346 void SimplifiedLowering::LowerAllNodes() { | 2344 void SimplifiedLowering::LowerAllNodes() { |
| 2347 RepresentationChanger changer(jsgraph(), jsgraph()->isolate()); | 2345 RepresentationChanger changer(jsgraph(), jsgraph()->isolate()); |
| 2348 RepresentationSelector selector(jsgraph(), zone_, &changer, | 2346 RepresentationSelector selector(jsgraph(), zone_, &changer, |
| 2349 source_positions_); | 2347 source_positions_); |
| 2350 selector.Run(this); | 2348 selector.Run(this); |
| 2351 } | 2349 } |
| 2352 | 2350 |
| 2353 void SimplifiedLowering::DoJSToNumberTruncatesToFloat64( | 2351 void SimplifiedLowering::DoJSToNumberTruncatesToFloat64( |
| (...skipping 934 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3288 isolate(), graph()->zone(), callable.descriptor(), 0, flags, | 3286 isolate(), graph()->zone(), callable.descriptor(), 0, flags, |
| 3289 Operator::kNoProperties); | 3287 Operator::kNoProperties); |
| 3290 to_number_operator_.set(common()->Call(desc)); | 3288 to_number_operator_.set(common()->Call(desc)); |
| 3291 } | 3289 } |
| 3292 return to_number_operator_.get(); | 3290 return to_number_operator_.get(); |
| 3293 } | 3291 } |
| 3294 | 3292 |
| 3295 } // namespace compiler | 3293 } // namespace compiler |
| 3296 } // namespace internal | 3294 } // namespace internal |
| 3297 } // namespace v8 | 3295 } // namespace v8 |
| OLD | NEW |