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

Side by Side Diff: test/unittests/compiler/js-typed-lowering-unittest.cc

Issue 2259853002: Revert of Replace LANGUAGE_END with LAST_LANGUAGE_MODE (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « src/runtime/runtime.h ('k') | 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/code-factory.h" 5 #include "src/code-factory.h"
6 #include "src/compiler/access-builder.h" 6 #include "src/compiler/access-builder.h"
7 #include "src/compiler/js-graph.h" 7 #include "src/compiler/js-graph.h"
8 #include "src/compiler/js-operator.h" 8 #include "src/compiler/js-operator.h"
9 #include "src/compiler/js-typed-lowering.h" 9 #include "src/compiler/js-typed-lowering.h"
10 #include "src/compiler/machine-operator.h" 10 #include "src/compiler/machine-operator.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 59
60 const double kIntegerValues[] = {-V8_INFINITY, INT_MIN, -1000.0, -42.0, 60 const double kIntegerValues[] = {-V8_INFINITY, INT_MIN, -1000.0, -42.0,
61 -1.0, 0.0, 1.0, 42.0, 61 -1.0, 0.0, 1.0, 42.0,
62 1000.0, INT_MAX, UINT_MAX, V8_INFINITY}; 62 1000.0, INT_MAX, UINT_MAX, V8_INFINITY};
63 63
64 64
65 Type* const kJSTypes[] = {Type::Undefined(), Type::Null(), Type::Boolean(), 65 Type* const kJSTypes[] = {Type::Undefined(), Type::Null(), Type::Boolean(),
66 Type::Number(), Type::String(), Type::Object()}; 66 Type::Number(), Type::String(), Type::Object()};
67 67
68 STATIC_ASSERT(LAST_LANGUAGE_MODE == 1); 68 STATIC_ASSERT(LANGUAGE_END == 2);
69 const LanguageMode kLanguageModes[] = {SLOPPY, STRICT}; 69 const LanguageMode kLanguageModes[] = {SLOPPY, STRICT};
70 70
71 } // namespace 71 } // namespace
72 72
73 73
74 class JSTypedLoweringTest : public TypedGraphTest { 74 class JSTypedLoweringTest : public TypedGraphTest {
75 public: 75 public:
76 JSTypedLoweringTest() 76 JSTypedLoweringTest()
77 : TypedGraphTest(3), javascript_(zone()), deps_(isolate(), zone()) {} 77 : TypedGraphTest(3), javascript_(zone()), deps_(isolate(), zone()) {}
78 ~JSTypedLoweringTest() override {} 78 ~JSTypedLoweringTest() override {}
(...skipping 1143 matching lines...) Expand 10 before | Expand all | Expand 10 after
1222 EmptyFrameState(), effect, control)); 1222 EmptyFrameState(), effect, control));
1223 ASSERT_TRUE(r.Changed()); 1223 ASSERT_TRUE(r.Changed());
1224 EXPECT_THAT(r.replacement(), IsSpeculativeNumberBitwiseXor( 1224 EXPECT_THAT(r.replacement(), IsSpeculativeNumberBitwiseXor(
1225 NumberOperationHint::kNumberOrOddball, lhs, 1225 NumberOperationHint::kNumberOrOddball, lhs,
1226 rhs, effect, control)); 1226 rhs, effect, control));
1227 } 1227 }
1228 1228
1229 } // namespace compiler 1229 } // namespace compiler
1230 } // namespace internal 1230 } // namespace internal
1231 } // namespace v8 1231 } // namespace v8
OLDNEW
« no previous file with comments | « src/runtime/runtime.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698