Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(194)

Side by Side Diff: src/compiler/simplified-lowering.cc

Issue 2132403002: [turbofan] Remove dead code from SimplifiedLowering. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@TurboFan_CheckBounds
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/simplified-lowering.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/compiler/simplified-lowering.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698