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
This commit is contained in:
mstarzinger@chromium.org 2014-07-31 08:29:34 +00:00
parent 932c0a2282
commit efb9f5eba5

View File

@ -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<JSReceiver> object = args.at<JSReceiver>(0);
Handle<Object> cache_type = args.at<Object>(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<JSReceiver> object = args.at<JSReceiver>(0);
Handle<FixedArray> array = args.at<FixedArray>(1);