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

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

Issue 1773653002: [strong] Remove all remainders of strong mode (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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
« src/parsing/parser.cc ('K') | « test/mjsunit/strong/var-let-const.js ('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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 68
69 STATIC_ASSERT(LANGUAGE_END == 3); 69 STATIC_ASSERT(LANGUAGE_END == 3);
70 const LanguageMode kLanguageModes[] = {SLOPPY, STRICT, STRONG}; 70 const LanguageMode kLanguageModes[] = {SLOPPY, STRICT};
71 71
72 } // namespace 72 } // namespace
73 73
74 74
75 class JSTypedLoweringTest : public TypedGraphTest { 75 class JSTypedLoweringTest : public TypedGraphTest {
76 public: 76 public:
77 JSTypedLoweringTest() 77 JSTypedLoweringTest()
78 : TypedGraphTest(3), javascript_(zone()), deps_(isolate(), zone()) {} 78 : TypedGraphTest(3), javascript_(zone()), deps_(isolate(), zone()) {}
79 ~JSTypedLoweringTest() override {} 79 ~JSTypedLoweringTest() override {}
80 80
(...skipping 844 matching lines...) Expand 10 before | Expand all | Expand 10 after
925 Node* dummy = graph()->NewNode(javascript()->ToObject(), instanceOf, context, 925 Node* dummy = graph()->NewNode(javascript()->ToObject(), instanceOf, context,
926 frame_state, effect, control); 926 frame_state, effect, control);
927 Reduction r = Reduce(instanceOf); 927 Reduction r = Reduce(instanceOf);
928 ASSERT_FALSE(r.Changed()); 928 ASSERT_FALSE(r.Changed());
929 ASSERT_EQ(instanceOf, dummy->InputAt(0)); 929 ASSERT_EQ(instanceOf, dummy->InputAt(0));
930 } 930 }
931 931
932 } // namespace compiler 932 } // namespace compiler
933 } // namespace internal 933 } // namespace internal
934 } // namespace v8 934 } // namespace v8
OLDNEW
« src/parsing/parser.cc ('K') | « test/mjsunit/strong/var-let-const.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698