From efb9f5eba561ab2b336828b939b405b1041c969a Mon Sep 17 00:00:00 2001 From: "mstarzinger@chromium.org" Date: Thu, 31 Jul 2014 08:29:34 +0000 Subject: [PATCH] Make GCMole happy about Runtime_ForInFoo methods. R=titzer@chromium.org Review URL: https://codereview.chromium.org/436523002 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22735 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/runtime.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/runtime.cc b/src/runtime.cc index 2a0234b..cb2e8df 100644 --- a/src/runtime.cc +++ b/src/runtime.cc @@ -15143,8 +15143,8 @@ RUNTIME_FUNCTION_RETURN_PAIR(Runtime_ForInInit) { // This simulates CONVERT_ARG_HANDLE_CHECKED for calls returning pairs. // Not worth creating a macro atm as this function should be removed. if (!args[0]->IsJSReceiver() || !args[1]->IsObject()) { - return MakePair(isolate->ThrowIllegalOperation(), - isolate->heap()->undefined_value()); + Object* error = isolate->ThrowIllegalOperation(); + return MakePair(error, isolate->heap()->undefined_value()); } Handle object = args.at(0); Handle cache_type = args.at(1); @@ -15197,8 +15197,8 @@ RUNTIME_FUNCTION_RETURN_PAIR(Runtime_ForInNext) { // Not worth creating a macro atm as this function should be removed. if (!args[0]->IsJSReceiver() || !args[1]->IsFixedArray() || !args[2]->IsObject() || !args[3]->IsSmi()) { - return MakePair(isolate->ThrowIllegalOperation(), - isolate->heap()->undefined_value()); + Object* error = isolate->ThrowIllegalOperation(); + return MakePair(error, isolate->heap()->undefined_value()); } Handle object = args.at(0); Handle array = args.at(1); -- 2.7.4