Chromium Code Reviews

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

Issue 612043003: Add inlining for intrinsics. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Comments. Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
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/graph-inl.h" 5 #include "src/compiler/graph-inl.h"
6 #include "src/compiler/js-operator.h" 6 #include "src/compiler/js-operator.h"
7 #include "src/compiler/node.h" 7 #include "src/compiler/node.h"
8 #include "src/compiler/node-properties-inl.h" 8 #include "src/compiler/node-properties-inl.h"
9 #include "src/compiler/node-properties.h" 9 #include "src/compiler/node-properties.h"
10 #include "src/compiler/simplified-operator.h" 10 #include "src/compiler/simplified-operator.h"
(...skipping 1187 matching lines...)
1198 return Bounds(); 1198 return Bounds();
1199 } 1199 }
1200 1200
1201 1201
1202 Bounds Typer::Visitor::TypeStoreElement(Node* node) { 1202 Bounds Typer::Visitor::TypeStoreElement(Node* node) {
1203 UNREACHABLE(); 1203 UNREACHABLE();
1204 return Bounds(); 1204 return Bounds();
1205 } 1205 }
1206 1206
1207 1207
1208 Bounds Typer::Visitor::TypeIsSmi(Node* node) { return Bounds(Type::Boolean()); }
1209
1210
1211 Bounds Typer::Visitor::TypeIsNonNegativeSmi(Node* node) {
1212 return Bounds(Type::Boolean());
1213 }
1214
1215
1208 // Machine operators. 1216 // Machine operators.
1209 1217
1210
1211 Bounds Typer::Visitor::TypeLoad(Node* node) { 1218 Bounds Typer::Visitor::TypeLoad(Node* node) {
1212 return Bounds::Unbounded(zone()); 1219 return Bounds::Unbounded(zone());
1213 } 1220 }
1214 1221
1215 1222
1216 Bounds Typer::Visitor::TypeStore(Node* node) { 1223 Bounds Typer::Visitor::TypeStore(Node* node) {
1217 UNREACHABLE(); 1224 UNREACHABLE();
1218 return Bounds(); 1225 return Bounds();
1219 } 1226 }
1220 1227
(...skipping 393 matching lines...)
1614 } 1621 }
1615 1622
1616 1623
1617 void Typer::DecorateGraph(Graph* graph) { 1624 void Typer::DecorateGraph(Graph* graph) {
1618 graph->AddDecorator(new (zone()) TyperDecorator(this)); 1625 graph->AddDecorator(new (zone()) TyperDecorator(this));
1619 } 1626 }
1620 1627
1621 } 1628 }
1622 } 1629 }
1623 } // namespace v8::internal::compiler 1630 } // namespace v8::internal::compiler
OLDNEW

Powered by Google App Engine