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

Side by Side Diff: src/compiler/machine-operator-reducer-unittest.cc

Issue 577353004: Fix windows build. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | 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/base/bits.h" 5 #include "src/base/bits.h"
6 #include "src/compiler/graph-unittest.h" 6 #include "src/compiler/graph-unittest.h"
7 #include "src/compiler/js-graph.h" 7 #include "src/compiler/js-graph.h"
8 #include "src/compiler/machine-operator-reducer.h" 8 #include "src/compiler/machine-operator-reducer.h"
9 #include "src/compiler/typer.h" 9 #include "src/compiler/typer.h"
10 10
(...skipping 29 matching lines...) Expand all
40 public: 40 public:
41 explicit MachineOperatorReducerTestWithParam(int num_parameters = 2) 41 explicit MachineOperatorReducerTestWithParam(int num_parameters = 2)
42 : MachineOperatorReducerTest(num_parameters) {} 42 : MachineOperatorReducerTest(num_parameters) {}
43 virtual ~MachineOperatorReducerTestWithParam() {} 43 virtual ~MachineOperatorReducerTestWithParam() {}
44 }; 44 };
45 45
46 46
47 namespace { 47 namespace {
48 48
49 static const float kFloat32Values[] = { 49 static const float kFloat32Values[] = {
50 -V8_INFINITY, -2.70497e+38f, -1.4698e+37f, -1.22813e+35f, -1.20555e+35f, 50 -std::numeric_limits<float>::infinity(), -2.70497e+38f, -1.4698e+37f,
51 -1.34584e+34f, -1.0079e+32f, -6.49364e+26f, -3.06077e+25f, -1.46821e+25f, 51 -1.22813e+35f, -1.20555e+35f, -1.34584e+34f,
52 -1.17658e+23f, -1.9617e+22f, -2.7357e+20f, -1.48708e+13f, -1.89633e+12f, 52 -1.0079e+32f, -6.49364e+26f, -3.06077e+25f,
53 -4.66622e+11f, -2.22581e+11f, -1.45381e+10f, -1.3956e+09f, -1.32951e+09f, 53 -1.46821e+25f, -1.17658e+23f, -1.9617e+22f,
54 -1.30721e+09f, -1.19756e+09f, -9.26822e+08f, -6.35647e+08f, -4.00037e+08f, 54 -2.7357e+20f, -1.48708e+13f, -1.89633e+12f,
55 -1.81227e+08f, -5.09256e+07f, -964300.0f, -192446.0f, -28455.0f, 55 -4.66622e+11f, -2.22581e+11f, -1.45381e+10f,
56 -27194.0f, -26401.0f, -20575.0f, -17069.0f, -9167.0f, 56 -1.3956e+09f, -1.32951e+09f, -1.30721e+09f,
57 -960.178f, -113.0f, -62.0f, -15.0f, -7.0f, 57 -1.19756e+09f, -9.26822e+08f, -6.35647e+08f,
58 -0.0256635f, -4.60374e-07f, -3.63759e-10f, -4.30175e-14f, -5.27385e-15f, 58 -4.00037e+08f, -1.81227e+08f, -5.09256e+07f,
59 -1.48084e-15f, -1.05755e-19f, -3.2995e-21f, -1.67354e-23f, -1.11885e-23f, 59 -964300.0f, -192446.0f, -28455.0f,
60 -1.78506e-30f, -5.07594e-31f, -3.65799e-31f, -1.43718e-34f, -1.27126e-38f, 60 -27194.0f, -26401.0f, -20575.0f,
61 -0.0f, 0.0f, 1.17549e-38f, 1.56657e-37f, 4.08512e-29f, 61 -17069.0f, -9167.0f, -960.178f,
62 3.31357e-28f, 6.25073e-22f, 4.1723e-13f, 1.44343e-09f, 5.27004e-08f, 62 -113.0f, -62.0f, -15.0f,
63 9.48298e-08f, 5.57888e-07f, 4.89988e-05f, 0.244326f, 12.4895f, 63 -7.0f, -0.0256635f, -4.60374e-07f,
64 19.0f, 47.0f, 106.0f, 538.324f, 564.536f, 64 -3.63759e-10f, -4.30175e-14f, -5.27385e-15f,
65 819.124f, 7048.0f, 12611.0f, 19878.0f, 20309.0f, 65 -1.48084e-15f, -1.05755e-19f, -3.2995e-21f,
66 797056.0f, 1.77219e+09f, 1.51116e+11f, 4.18193e+13f, 3.59167e+16f, 66 -1.67354e-23f, -1.11885e-23f, -1.78506e-30f,
67 3.38211e+19f, 2.67488e+20f, 1.78831e+21f, 9.20914e+21f, 8.35654e+23f, 67 -5.07594e-31f, -3.65799e-31f, -1.43718e-34f,
68 1.4495e+24f, 5.94015e+25f, 4.43608e+30f, 2.44502e+33f, 2.61152e+33f, 68 -1.27126e-38f, -0.0f, 0.0f,
69 1.38178e+37f, 1.71306e+37f, 3.31899e+38f, 3.40282e+38f, V8_INFINITY}; 69 1.17549e-38f, 1.56657e-37f, 4.08512e-29f,
70 3.31357e-28f, 6.25073e-22f, 4.1723e-13f,
71 1.44343e-09f, 5.27004e-08f, 9.48298e-08f,
72 5.57888e-07f, 4.89988e-05f, 0.244326f,
73 12.4895f, 19.0f, 47.0f,
74 106.0f, 538.324f, 564.536f,
75 819.124f, 7048.0f, 12611.0f,
76 19878.0f, 20309.0f, 797056.0f,
77 1.77219e+09f, 1.51116e+11f, 4.18193e+13f,
78 3.59167e+16f, 3.38211e+19f, 2.67488e+20f,
79 1.78831e+21f, 9.20914e+21f, 8.35654e+23f,
80 1.4495e+24f, 5.94015e+25f, 4.43608e+30f,
81 2.44502e+33f, 2.61152e+33f, 1.38178e+37f,
82 1.71306e+37f, 3.31899e+38f, 3.40282e+38f,
83 std::numeric_limits<float>::infinity()};
70 84
71 85
72 static const double kFloat64Values[] = { 86 static const double kFloat64Values[] = {
73 -V8_INFINITY, -4.23878e+275, -5.82632e+265, -6.60355e+220, -6.26172e+212, 87 -V8_INFINITY, -4.23878e+275, -5.82632e+265, -6.60355e+220, -6.26172e+212,
74 -2.56222e+211, -4.82408e+201, -1.84106e+157, -1.63662e+127, -1.55772e+100, 88 -2.56222e+211, -4.82408e+201, -1.84106e+157, -1.63662e+127, -1.55772e+100,
75 -1.67813e+72, -2.3382e+55, -3.179e+30, -1.441e+09, -1.0647e+09, 89 -1.67813e+72, -2.3382e+55, -3.179e+30, -1.441e+09, -1.0647e+09,
76 -7.99361e+08, -5.77375e+08, -2.20984e+08, -32757, -13171, 90 -7.99361e+08, -5.77375e+08, -2.20984e+08, -32757, -13171,
77 -9970, -3984, -107, -105, -92, 91 -9970, -3984, -107, -105, -92,
78 -77, -61, -0.000208163, -1.86685e-06, -1.17296e-10, 92 -77, -61, -0.000208163, -1.86685e-06, -1.17296e-10,
79 -9.26358e-11, -5.08004e-60, -1.74753e-65, -1.06561e-71, -5.67879e-79, 93 -9.26358e-11, -5.08004e-60, -1.74753e-65, -1.06561e-71, -5.67879e-79,
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
593 r = Reduce(graph()->NewNode(common()->Projection(0), add)); 607 r = Reduce(graph()->NewNode(common()->Projection(0), add));
594 ASSERT_TRUE(r.Changed()); 608 ASSERT_TRUE(r.Changed());
595 EXPECT_THAT(r.replacement(), IsInt32Constant(z)); 609 EXPECT_THAT(r.replacement(), IsInt32Constant(z));
596 } 610 }
597 } 611 }
598 } 612 }
599 613
600 } // namespace compiler 614 } // namespace compiler
601 } // namespace internal 615 } // namespace internal
602 } // namespace v8 616 } // namespace v8
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