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

Side by Side Diff: src/compiler/typer.cc

Issue 1314473007: [turbofan] Remove usage of Unique<T> from graph. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased and fixed. Created 5 years, 3 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
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/typer.h" 5 #include "src/compiler/typer.h"
6 6
7 #include "src/base/flags.h" 7 #include "src/base/flags.h"
8 #include "src/base/lazy-instance.h" 8 #include "src/base/lazy-instance.h"
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/compiler/common-operator.h" 10 #include "src/compiler/common-operator.h"
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 534
535 535
536 Bounds Typer::Visitor::TypeNumberConstant(Node* node) { 536 Bounds Typer::Visitor::TypeNumberConstant(Node* node) {
537 Factory* f = isolate()->factory(); 537 Factory* f = isolate()->factory();
538 return Bounds(Type::Constant( 538 return Bounds(Type::Constant(
539 f->NewNumber(OpParameter<double>(node)), zone())); 539 f->NewNumber(OpParameter<double>(node)), zone()));
540 } 540 }
541 541
542 542
543 Bounds Typer::Visitor::TypeHeapConstant(Node* node) { 543 Bounds Typer::Visitor::TypeHeapConstant(Node* node) {
544 return Bounds(TypeConstant(OpParameter<Unique<HeapObject> >(node).handle())); 544 return Bounds(TypeConstant(OpParameter<Handle<HeapObject>>(node)));
545 } 545 }
546 546
547 547
548 Bounds Typer::Visitor::TypeExternalConstant(Node* node) { 548 Bounds Typer::Visitor::TypeExternalConstant(Node* node) {
549 return Bounds(Type::None(zone()), Type::Internal(zone())); 549 return Bounds(Type::None(zone()), Type::Internal(zone()));
550 } 550 }
551 551
552 552
553 Bounds Typer::Visitor::TypeSelect(Node* node) { 553 Bounds Typer::Visitor::TypeSelect(Node* node) {
554 return Bounds::Either(Operand(node, 1), Operand(node, 2), zone()); 554 return Bounds::Either(Operand(node, 1), Operand(node, 2), zone());
(...skipping 1737 matching lines...) Expand 10 before | Expand all | Expand 10 after
2292 TYPED_ARRAYS(TYPED_ARRAY_CASE) 2292 TYPED_ARRAYS(TYPED_ARRAY_CASE)
2293 #undef TYPED_ARRAY_CASE 2293 #undef TYPED_ARRAY_CASE
2294 } 2294 }
2295 } 2295 }
2296 return Type::Constant(value, zone()); 2296 return Type::Constant(value, zone());
2297 } 2297 }
2298 2298
2299 } // namespace compiler 2299 } // namespace compiler
2300 } // namespace internal 2300 } // namespace internal
2301 } // namespace v8 2301 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/simplified-operator-reducer.cc ('k') | src/compiler/x87/instruction-selector-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698