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 50c1734c0802be425e2b80843691d28d223dde05..c5f2a82cf786f6bed5268543b3638946934cd521 100644 |
--- a/test/unittests/compiler/js-typed-lowering-unittest.cc |
+++ b/test/unittests/compiler/js-typed-lowering-unittest.cc |
@@ -885,7 +885,7 @@ TEST_F(JSTypedLoweringTest, JSLoadNamedGlobalConstants) { |
}; |
VectorSlotPair feedback; |
- Node* global = Parameter(Type::GlobalObject()); |
+ Node* global = UndefinedConstant(); |
Node* vector = UndefinedConstant(); |
Node* context = UndefinedConstant(); |
Node* effect = graph()->start(); |
@@ -894,7 +894,7 @@ TEST_F(JSTypedLoweringTest, JSLoadNamedGlobalConstants) { |
for (size_t i = 0; i < arraysize(names); i++) { |
Unique<Name> name = Unique<Name>::CreateImmovable(names[i]); |
Reduction r = Reduce(graph()->NewNode( |
- javascript()->LoadNamed(name, feedback), global, vector, context, |
+ javascript()->LoadGlobal(name, feedback), global, vector, context, |
EmptyFrameState(), EmptyFrameState(), effect, control)); |
ASSERT_TRUE(r.Changed()); |