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

Unified Diff: src/compiler/typer.cc

Issue 612043003: Add inlining for intrinsics. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix windows conversion warning. Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: src/compiler/typer.cc
diff --git a/src/compiler/typer.cc b/src/compiler/typer.cc
index e30a47bea54895c2d3318329d92c7aa28acb9c20..90c3606cbd3952e34881f076fb495121f843ffa1 100644
--- a/src/compiler/typer.cc
+++ b/src/compiler/typer.cc
@@ -812,11 +812,21 @@ Bounds Typer::Visitor::TypeStoreElement(Node* node) {
}
+Bounds Typer::Visitor::TypeIsSmi(Node* node) { return Bounds(Type::Boolean()); }
+
+
+Bounds Typer::Visitor::TypeIsNonNegativeSmi(Node* node) {
+ return Bounds(Type::Boolean());
+}
+
+
// Machine operators.
// TODO(rossberg): implement
-#define DEFINE_METHOD(x) \
- Bounds Typer::Visitor::Type##x(Node* node) { return Bounds(Type::None()); }
+#define DEFINE_METHOD(x) \
+ Bounds Typer::Visitor::Type##x(Node* node) { \
+ return Bounds::Unbounded(zone()); \
+ }
MACHINE_OP_LIST(DEFINE_METHOD)
#undef DEFINE_METHOD

Powered by Google App Engine
This is Rietveld 408576698