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

Side by Side Diff: test/unittests/compiler/js-builtin-reducer-unittest.cc

Issue 795713003: Steps towards unification of number bitset and range types. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix BitsetType::Max for OtherNumber with missing representation Created 6 years 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/js-builtin-reducer.h" 5 #include "src/compiler/js-builtin-reducer.h"
6 #include "src/compiler/js-graph.h" 6 #include "src/compiler/js-graph.h"
7 #include "src/compiler/node-properties-inl.h" 7 #include "src/compiler/node-properties-inl.h"
8 #include "src/compiler/typer.h" 8 #include "src/compiler/typer.h"
9 #include "test/unittests/compiler/graph-unittest.h" 9 #include "test/unittests/compiler/graph-unittest.h"
10 #include "test/unittests/compiler/node-test-utils.h" 10 #include "test/unittests/compiler/node-test-utils.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 private: 52 private:
53 JSOperatorBuilder javascript_; 53 JSOperatorBuilder javascript_;
54 }; 54 };
55 55
56 56
57 namespace { 57 namespace {
58 58
59 // TODO(mstarzinger): Find a common place and unify with test-js-typed-lowering. 59 // TODO(mstarzinger): Find a common place and unify with test-js-typed-lowering.
60 Type* const kNumberTypes[] = { 60 Type* const kNumberTypes[] = {
61 Type::UnsignedSmall(), Type::NegativeSigned32(), 61 Type::Unsigned30(), Type::Negative32(), Type::Unsigned31(),
62 Type::NonNegativeSigned32(), Type::SignedSmall(), 62 Type::Signed31(), Type::Signed32(), Type::Unsigned32(),
63 Type::Signed32(), Type::Unsigned32(), 63 Type::Integral32(), Type::MinusZero(), Type::NaN(),
64 Type::Integral32(), Type::MinusZero(), 64 Type::OrderedNumber(), Type::PlainNumber(), Type::Number()};
65 Type::NaN(), Type::OrderedNumber(),
66 Type::PlainNumber(), Type::Number()};
67 65
68 } // namespace 66 } // namespace
69 67
70 68
71 // ----------------------------------------------------------------------------- 69 // -----------------------------------------------------------------------------
72 // Math.abs 70 // Math.abs
73 71
74 72
75 TEST_F(JSBuiltinReducerTest, MathAbs) { 73 TEST_F(JSBuiltinReducerTest, MathAbs) {
76 Handle<JSFunction> f = MathFunction("abs"); 74 Handle<JSFunction> f = MathFunction("abs");
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 graph()->NewNode(javascript()->CallFunction(3, NO_CALL_FUNCTION_FLAGS), 295 graph()->NewNode(javascript()->CallFunction(3, NO_CALL_FUNCTION_FLAGS),
298 fun, UndefinedConstant(), p0); 296 fun, UndefinedConstant(), p0);
299 Reduction r = Reduce(call, MachineOperatorBuilder::Flag::kNoFlags); 297 Reduction r = Reduce(call, MachineOperatorBuilder::Flag::kNoFlags);
300 298
301 ASSERT_FALSE(r.Changed()); 299 ASSERT_FALSE(r.Changed());
302 } 300 }
303 } 301 }
304 } // namespace compiler 302 } // namespace compiler
305 } // namespace internal 303 } // namespace internal
306 } // namespace v8 304 } // namespace v8
OLDNEW
« test/cctest/test-types.cc ('K') | « test/unittests/compiler/change-lowering-unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698