Chromium Code Reviews| Index: test/unittests/compiler/js-create-lowering-unittest.cc |
| diff --git a/test/unittests/compiler/js-create-lowering-unittest.cc b/test/unittests/compiler/js-create-lowering-unittest.cc |
| index 9c001e9eb222c08ab1bfb9cfe162cacc2c012b5c..58eb817816aa25b1c7b4455b0944bb574647c102 100644 |
| --- a/test/unittests/compiler/js-create-lowering-unittest.cc |
| +++ b/test/unittests/compiler/js-create-lowering-unittest.cc |
| @@ -195,14 +195,16 @@ TEST_F(JSCreateLoweringTest, JSCreateWithContext) { |
| TEST_F(JSCreateLoweringTest, JSCreateCatchContext) { |
| Handle<String> name = factory()->length_string(); |
| + Handle<ScopeInfo> scope_info( |
|
Michael Starzinger
2016/09/05 11:35:29
nit: Would factory()->NewScopeInfo(1) also work he
jochen (gone - plz use gerrit)
2016/09/05 11:42:45
done
|
| + isolate()->number_function()->shared()->scope_info()); |
| Node* const exception = Parameter(Type::Receiver()); |
| Node* const closure = Parameter(Type::Function()); |
| Node* const context = Parameter(Type::Any()); |
| Node* const effect = graph()->start(); |
| Node* const control = graph()->start(); |
| - Reduction r = |
| - Reduce(graph()->NewNode(javascript()->CreateCatchContext(name), exception, |
| - closure, context, effect, control)); |
| + Reduction r = Reduce( |
| + graph()->NewNode(javascript()->CreateCatchContext(name, scope_info), |
| + exception, closure, context, effect, control)); |
| ASSERT_TRUE(r.Changed()); |
| EXPECT_THAT(r.replacement(), |
| IsFinishRegion(IsAllocate(IsNumberConstant(Context::SizeFor( |