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

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

Issue 705113002: Disable ranging for modulus in hopes it will fix arm. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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/bootstrapper.h" 5 #include "src/bootstrapper.h"
6 #include "src/compiler/graph-inl.h" 6 #include "src/compiler/graph-inl.h"
7 #include "src/compiler/js-operator.h" 7 #include "src/compiler/js-operator.h"
8 #include "src/compiler/node.h" 8 #include "src/compiler/node.h"
9 #include "src/compiler/node-properties-inl.h" 9 #include "src/compiler/node-properties-inl.h"
10 #include "src/compiler/node-properties.h" 10 #include "src/compiler/node-properties.h"
(...skipping 1015 matching lines...) Expand 10 before | Expand all | Expand 10 after
1026 1026
1027 if (lhs->Maybe(Type::NaN()) || rhs->Maybe(t->zeroish) || 1027 if (lhs->Maybe(Type::NaN()) || rhs->Maybe(t->zeroish) ||
1028 lhs->Min() == -V8_INFINITY || lhs->Max() == +V8_INFINITY) { 1028 lhs->Min() == -V8_INFINITY || lhs->Max() == +V8_INFINITY) {
1029 // Result maybe NaN. 1029 // Result maybe NaN.
1030 return Type::Number(); 1030 return Type::Number();
1031 } 1031 }
1032 1032
1033 lhs = Rangify(lhs, t); 1033 lhs = Rangify(lhs, t);
1034 rhs = Rangify(rhs, t); 1034 rhs = Rangify(rhs, t);
1035 if (lhs->IsRange() && rhs->IsRange()) { 1035 if (lhs->IsRange() && rhs->IsRange()) {
1036 return JSModulusRanger(lhs->AsRange(), rhs->AsRange(), t); 1036 // TODO(titzer): fix me.
1037 // return JSModulusRanger(lhs->AsRange(), rhs->AsRange(), t);
1037 } 1038 }
1038 return Type::OrderedNumber(); 1039 return Type::OrderedNumber();
1039 } 1040 }
1040 1041
1041 1042
1042 // JS unary operators. 1043 // JS unary operators.
1043 1044
1044 1045
1045 Type* Typer::Visitor::JSUnaryNotTyper(Type* type, Typer* t) { 1046 Type* Typer::Visitor::JSUnaryNotTyper(Type* type, Typer* t) {
1046 return Invert(ToBoolean(type, t), t); 1047 return Invert(ToBoolean(type, t), t);
(...skipping 885 matching lines...) Expand 10 before | Expand all | Expand 10 after
1932 return typer_->float64_array_fun_; 1933 return typer_->float64_array_fun_;
1933 } 1934 }
1934 } 1935 }
1935 } 1936 }
1936 return Type::Constant(value, zone()); 1937 return Type::Constant(value, zone());
1937 } 1938 }
1938 1939
1939 } 1940 }
1940 } 1941 }
1941 } // namespace v8::internal::compiler 1942 } // namespace v8::internal::compiler
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698