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 50d557d212afc00050c9f68a15442e58b0985be4..cfee0bd4d02d0ca7abc96c628de35a8cc171cf4b 100644 |
--- a/test/unittests/compiler/js-typed-lowering-unittest.cc |
+++ b/test/unittests/compiler/js-typed-lowering-unittest.cc |
@@ -929,76 +929,6 @@ TEST_F(JSTypedLoweringTest, JSLoadNamedStringLength) { |
// ----------------------------------------------------------------------------- |
-// JSLoadDynamicGlobal |
- |
- |
-TEST_F(JSTypedLoweringTest, JSLoadDynamicGlobal) { |
- Node* const context = Parameter(Type::Any()); |
- Node* const vector = UndefinedConstant(); |
- Node* const frame_state = EmptyFrameState(); |
- Node* const effect = graph()->start(); |
- Node* const control = graph()->start(); |
- Handle<String> name = factory()->object_string(); |
- VectorSlotPair feedback; |
- for (int i = 0; i < DynamicGlobalAccess::kMaxCheckDepth; ++i) { |
- uint32_t bitset = 1 << i; // Only single check. |
- Reduction r = Reduce(graph()->NewNode( |
- javascript()->LoadDynamicGlobal(name, bitset, feedback, |
- NOT_INSIDE_TYPEOF), |
- vector, context, context, frame_state, frame_state, effect, control)); |
- ASSERT_TRUE(r.Changed()); |
- EXPECT_THAT( |
- r.replacement(), |
- IsPhi(kMachAnyTagged, _, _, |
- IsMerge( |
- IsIfTrue(IsBranch( |
- IsReferenceEqual( |
- Type::Tagged(), |
- IsLoadContext( |
- ContextAccess(i, Context::EXTENSION_INDEX, false), |
- context), |
- IsNumberConstant(BitEq(0.0))), |
- control)), |
- _))); |
- } |
-} |
- |
- |
-// ----------------------------------------------------------------------------- |
-// JSLoadDynamicContext |
- |
- |
-TEST_F(JSTypedLoweringTest, JSLoadDynamicContext) { |
- Node* const context = Parameter(Type::Any()); |
- Node* const frame_state = EmptyFrameState(); |
- Node* const effect = graph()->start(); |
- Node* const control = graph()->start(); |
- Handle<String> name = factory()->object_string(); |
- for (int i = 0; i < DynamicContextAccess::kMaxCheckDepth; ++i) { |
- uint32_t bitset = 1 << i; // Only single check. |
- Reduction r = Reduce( |
- graph()->NewNode(javascript()->LoadDynamicContext(name, bitset, 23, 42), |
- context, context, frame_state, effect, control)); |
- ASSERT_TRUE(r.Changed()); |
- EXPECT_THAT( |
- r.replacement(), |
- IsPhi(kMachAnyTagged, |
- IsLoadContext(ContextAccess(23, 42, false), context), _, |
- IsMerge( |
- IsIfTrue(IsBranch( |
- IsReferenceEqual( |
- Type::Tagged(), |
- IsLoadContext( |
- ContextAccess(i, Context::EXTENSION_INDEX, false), |
- context), |
- IsNumberConstant(BitEq(0.0))), |
- control)), |
- _))); |
- } |
-} |
- |
- |
-// ----------------------------------------------------------------------------- |
// JSAdd |