Index: test/unittests/compiler/js-typed-lowering-unittest.cc |
diff --git a/test/unittests/compiler/js-typed-lowering-unittest.cc b/test/unittests/compiler/js-typed-lowering-unittest.cc |
index ca2a4a9ec44e73a87e950d71e46dce6fb36bc9a6..a12d79f02bb4ca24c3b384055cb9f0c960208ca8 100644 |
--- a/test/unittests/compiler/js-typed-lowering-unittest.cc |
+++ b/test/unittests/compiler/js-typed-lowering-unittest.cc |
@@ -874,11 +874,7 @@ |
} |
-// ----------------------------------------------------------------------------- |
-// JSLoadGlobal |
- |
- |
-TEST_F(JSTypedLoweringTest, JSLoadGlobalConstants) { |
+TEST_F(JSTypedLoweringTest, JSLoadNamedGlobalConstants) { |
Handle<String> names[] = { |
Handle<String>(isolate()->heap()->undefined_string(), isolate()), |
Handle<String>(isolate()->heap()->infinity_string(), isolate()), |
@@ -906,31 +902,6 @@ |
ASSERT_TRUE(r.Changed()); |
EXPECT_THAT(r.replacement(), matches[i]); |
- } |
-} |
- |
- |
-// ----------------------------------------------------------------------------- |
-// JSLoadNamed |
- |
- |
-TEST_F(JSTypedLoweringTest, JSLoadNamedStringLength) { |
- VectorSlotPair feedback; |
- Unique<Name> name = Unique<Name>::CreateImmovable(factory()->length_string()); |
- Node* const receiver = Parameter(Type::String(), 0); |
- Node* const vector = Parameter(Type::Internal(), 1); |
- Node* const context = UndefinedConstant(); |
- Node* const effect = graph()->start(); |
- Node* const control = graph()->start(); |
- TRACED_FOREACH(LanguageMode, language_mode, kLanguageModes) { |
- Reduction const r = Reduce( |
- graph()->NewNode(javascript()->LoadNamed(name, feedback, language_mode), |
- receiver, vector, context, EmptyFrameState(), |
- EmptyFrameState(), effect, control)); |
- ASSERT_TRUE(r.Changed()); |
- EXPECT_THAT(r.replacement(), |
- IsLoadField(AccessBuilder::ForStringLength(zone()), receiver, |
- effect, control)); |
} |
} |