Add test case generator for runtime functions
authorjkummerow@chromium.org <jkummerow@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 8 May 2014 13:11:59 +0000 (13:11 +0000)
committerjkummerow@chromium.org <jkummerow@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 8 May 2014 13:11:59 +0000 (13:11 +0000)
R=dslomov@chromium.org, machenbach@chromium.org

Review URL: https://codereview.chromium.org/250923002

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21199 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

318 files changed:
test/mjsunit/runtime-gen/apply.js [new file with mode: 0644]
test/mjsunit/runtime-gen/arraybuffergetbytelength.js [new file with mode: 0644]
test/mjsunit/runtime-gen/arraybufferinitialize.js [new file with mode: 0644]
test/mjsunit/runtime-gen/arraybufferisview.js [new file with mode: 0644]
test/mjsunit/runtime-gen/arraybufferneuter.js [new file with mode: 0644]
test/mjsunit/runtime-gen/arraybuffersliceimpl.js [new file with mode: 0644]
test/mjsunit/runtime-gen/arrayconcat.js [new file with mode: 0644]
test/mjsunit/runtime-gen/availablelocalesof.js [new file with mode: 0644]
test/mjsunit/runtime-gen/basicjsonstringify.js [new file with mode: 0644]
test/mjsunit/runtime-gen/boundfunctiongetbindings.js [new file with mode: 0644]
test/mjsunit/runtime-gen/break.js [new file with mode: 0644]
test/mjsunit/runtime-gen/breakiteratoradopttext.js [new file with mode: 0644]
test/mjsunit/runtime-gen/breakiteratorbreaktype.js [new file with mode: 0644]
test/mjsunit/runtime-gen/breakiteratorcurrent.js [new file with mode: 0644]
test/mjsunit/runtime-gen/breakiteratorfirst.js [new file with mode: 0644]
test/mjsunit/runtime-gen/breakiteratornext.js [new file with mode: 0644]
test/mjsunit/runtime-gen/canonicalizelanguagetag.js [new file with mode: 0644]
test/mjsunit/runtime-gen/changebreakonexception.js [new file with mode: 0644]
test/mjsunit/runtime-gen/charfromcode.js [new file with mode: 0644]
test/mjsunit/runtime-gen/checkexecutionstate.js [new file with mode: 0644]
test/mjsunit/runtime-gen/checkisbootstrapping.js [new file with mode: 0644]
test/mjsunit/runtime-gen/classof.js [new file with mode: 0644]
test/mjsunit/runtime-gen/clearbreakpoint.js [new file with mode: 0644]
test/mjsunit/runtime-gen/clearfunctiontypefeedback.js [new file with mode: 0644]
test/mjsunit/runtime-gen/clearstepping.js [new file with mode: 0644]
test/mjsunit/runtime-gen/collectstacktrace.js [new file with mode: 0644]
test/mjsunit/runtime-gen/compilestring.js [new file with mode: 0644]
test/mjsunit/runtime-gen/constructdouble.js [new file with mode: 0644]
test/mjsunit/runtime-gen/createbreakiterator.js [new file with mode: 0644]
test/mjsunit/runtime-gen/createcollator.js [new file with mode: 0644]
test/mjsunit/runtime-gen/createglobalprivatesymbol.js [new file with mode: 0644]
test/mjsunit/runtime-gen/createjsfunctionproxy.js [new file with mode: 0644]
test/mjsunit/runtime-gen/createjsproxy.js [new file with mode: 0644]
test/mjsunit/runtime-gen/createprivatesymbol.js [new file with mode: 0644]
test/mjsunit/runtime-gen/createsymbol.js [new file with mode: 0644]
test/mjsunit/runtime-gen/dataviewinitialize.js [new file with mode: 0644]
test/mjsunit/runtime-gen/datecacheversion.js [new file with mode: 0644]
test/mjsunit/runtime-gen/datecurrenttime.js [new file with mode: 0644]
test/mjsunit/runtime-gen/datelocaltimezone.js [new file with mode: 0644]
test/mjsunit/runtime-gen/datemakeday.js [new file with mode: 0644]
test/mjsunit/runtime-gen/dateparsestring.js [new file with mode: 0644]
test/mjsunit/runtime-gen/datesetvalue.js [new file with mode: 0644]
test/mjsunit/runtime-gen/datetoutc.js [new file with mode: 0644]
test/mjsunit/runtime-gen/debugbreak.js [new file with mode: 0644]
test/mjsunit/runtime-gen/debugcallbacksupportsstepping.js [new file with mode: 0644]
test/mjsunit/runtime-gen/debugconstructedby.js [new file with mode: 0644]
test/mjsunit/runtime-gen/debugdisassembleconstructor.js [new file with mode: 0644]
test/mjsunit/runtime-gen/debugdisassemblefunction.js [new file with mode: 0644]
test/mjsunit/runtime-gen/debugevaluate.js [new file with mode: 0644]
test/mjsunit/runtime-gen/debugevaluateglobal.js [new file with mode: 0644]
test/mjsunit/runtime-gen/debuggetloadedscripts.js [new file with mode: 0644]
test/mjsunit/runtime-gen/debuggetproperty.js [new file with mode: 0644]
test/mjsunit/runtime-gen/debuggetpropertydetails.js [new file with mode: 0644]
test/mjsunit/runtime-gen/debuggetprototype.js [new file with mode: 0644]
test/mjsunit/runtime-gen/debugindexedinterceptorelementvalue.js [new file with mode: 0644]
test/mjsunit/runtime-gen/debugnamedinterceptorpropertyvalue.js [new file with mode: 0644]
test/mjsunit/runtime-gen/debugpreparestepinifstepping.js [new file with mode: 0644]
test/mjsunit/runtime-gen/debugprintscopes.js [new file with mode: 0644]
test/mjsunit/runtime-gen/debugpromisehandleepilogue.js [new file with mode: 0644]
test/mjsunit/runtime-gen/debugpromisehandleprologue.js [new file with mode: 0644]
test/mjsunit/runtime-gen/debugpropertyattributesfromdetails.js [new file with mode: 0644]
test/mjsunit/runtime-gen/debugpropertyindexfromdetails.js [new file with mode: 0644]
test/mjsunit/runtime-gen/debugpropertytypefromdetails.js [new file with mode: 0644]
test/mjsunit/runtime-gen/debugreferencedby.js [new file with mode: 0644]
test/mjsunit/runtime-gen/debugsetscriptsource.js [new file with mode: 0644]
test/mjsunit/runtime-gen/debugtrace.js [new file with mode: 0644]
test/mjsunit/runtime-gen/defineorredefineaccessorproperty.js [new file with mode: 0644]
test/mjsunit/runtime-gen/defineorredefinedataproperty.js [new file with mode: 0644]
test/mjsunit/runtime-gen/deleteproperty.js [new file with mode: 0644]
test/mjsunit/runtime-gen/deoptimizefunction.js [new file with mode: 0644]
test/mjsunit/runtime-gen/doublehi.js [new file with mode: 0644]
test/mjsunit/runtime-gen/doublelo.js [new file with mode: 0644]
test/mjsunit/runtime-gen/estimatenumberofelements.js [new file with mode: 0644]
test/mjsunit/runtime-gen/executeindebugcontext.js [new file with mode: 0644]
test/mjsunit/runtime-gen/finisharrayprototypesetup.js [new file with mode: 0644]
test/mjsunit/runtime-gen/fix.js [new file with mode: 0644]
test/mjsunit/runtime-gen/flattenstring.js [new file with mode: 0644]
test/mjsunit/runtime-gen/functiongetinferredname.js [new file with mode: 0644]
test/mjsunit/runtime-gen/functiongetname.js [new file with mode: 0644]
test/mjsunit/runtime-gen/functiongetscript.js [new file with mode: 0644]
test/mjsunit/runtime-gen/functiongetscriptsourceposition.js [new file with mode: 0644]
test/mjsunit/runtime-gen/functiongetsourcecode.js [new file with mode: 0644]
test/mjsunit/runtime-gen/functionisapifunction.js [new file with mode: 0644]
test/mjsunit/runtime-gen/functionisbuiltin.js [new file with mode: 0644]
test/mjsunit/runtime-gen/functionisgenerator.js [new file with mode: 0644]
test/mjsunit/runtime-gen/functionmarknameshouldprintasanonymous.js [new file with mode: 0644]
test/mjsunit/runtime-gen/functionnameshouldprintasanonymous.js [new file with mode: 0644]
test/mjsunit/runtime-gen/functionremoveprototype.js [new file with mode: 0644]
test/mjsunit/runtime-gen/functionsetinstanceclassname.js [new file with mode: 0644]
test/mjsunit/runtime-gen/functionsetlength.js [new file with mode: 0644]
test/mjsunit/runtime-gen/functionsetname.js [new file with mode: 0644]
test/mjsunit/runtime-gen/functionsetprototype.js [new file with mode: 0644]
test/mjsunit/runtime-gen/functionsetreadonlyprototype.js [new file with mode: 0644]
test/mjsunit/runtime-gen/getallscopesdetails.js [new file with mode: 0644]
test/mjsunit/runtime-gen/getandclearoverflowedstacktrace.js [new file with mode: 0644]
test/mjsunit/runtime-gen/getargumentsproperty.js [new file with mode: 0644]
test/mjsunit/runtime-gen/getarraykeys.js [new file with mode: 0644]
test/mjsunit/runtime-gen/getbreaklocations.js [new file with mode: 0644]
test/mjsunit/runtime-gen/getcalltrap.js [new file with mode: 0644]
test/mjsunit/runtime-gen/getconstructordelegate.js [new file with mode: 0644]
test/mjsunit/runtime-gen/getconstructtrap.js [new file with mode: 0644]
test/mjsunit/runtime-gen/getdataproperty.js [new file with mode: 0644]
test/mjsunit/runtime-gen/getdefaulticulocale.js [new file with mode: 0644]
test/mjsunit/runtime-gen/getdefaultreceiver.js [new file with mode: 0644]
test/mjsunit/runtime-gen/getframecount.js [new file with mode: 0644]
test/mjsunit/runtime-gen/getframedetails.js [new file with mode: 0644]
test/mjsunit/runtime-gen/getfunctioncodepositionfromsource.js [new file with mode: 0644]
test/mjsunit/runtime-gen/getfunctiondelegate.js [new file with mode: 0644]
test/mjsunit/runtime-gen/getfunctionscopecount.js [new file with mode: 0644]
test/mjsunit/runtime-gen/getfunctionscopedetails.js [new file with mode: 0644]
test/mjsunit/runtime-gen/gethandler.js [new file with mode: 0644]
test/mjsunit/runtime-gen/getheapusage.js [new file with mode: 0644]
test/mjsunit/runtime-gen/getimplfrominitializedintlobject.js [new file with mode: 0644]
test/mjsunit/runtime-gen/getindexedinterceptorelementnames.js [new file with mode: 0644]
test/mjsunit/runtime-gen/getinterceptorinfo.js [new file with mode: 0644]
test/mjsunit/runtime-gen/getlanguagetagvariants.js [new file with mode: 0644]
test/mjsunit/runtime-gen/getlocalelementnames.js [new file with mode: 0644]
test/mjsunit/runtime-gen/getlocalpropertynames.js [new file with mode: 0644]
test/mjsunit/runtime-gen/getmicrotaskstate.js [new file with mode: 0644]
test/mjsunit/runtime-gen/getnamedinterceptorpropertynames.js [new file with mode: 0644]
test/mjsunit/runtime-gen/getobservationstate.js [new file with mode: 0644]
test/mjsunit/runtime-gen/getoptimizationcount.js [new file with mode: 0644]
test/mjsunit/runtime-gen/getoptimizationstatus.js [new file with mode: 0644]
test/mjsunit/runtime-gen/getownproperty.js [new file with mode: 0644]
test/mjsunit/runtime-gen/getproperty.js [new file with mode: 0644]
test/mjsunit/runtime-gen/getpropertynames.js [new file with mode: 0644]
test/mjsunit/runtime-gen/getpropertynamesfast.js [new file with mode: 0644]
test/mjsunit/runtime-gen/getprototype.js [new file with mode: 0644]
test/mjsunit/runtime-gen/getrootnan.js [new file with mode: 0644]
test/mjsunit/runtime-gen/getscopecount.js [new file with mode: 0644]
test/mjsunit/runtime-gen/getscopedetails.js [new file with mode: 0644]
test/mjsunit/runtime-gen/getscript.js [new file with mode: 0644]
test/mjsunit/runtime-gen/getstepinpositions.js [new file with mode: 0644]
test/mjsunit/runtime-gen/gettemplatefield.js [new file with mode: 0644]
test/mjsunit/runtime-gen/getthreadcount.js [new file with mode: 0644]
test/mjsunit/runtime-gen/getthreaddetails.js [new file with mode: 0644]
test/mjsunit/runtime-gen/getv8version.js [new file with mode: 0644]
test/mjsunit/runtime-gen/globalprint.js [new file with mode: 0644]
test/mjsunit/runtime-gen/globalreceiver.js [new file with mode: 0644]
test/mjsunit/runtime-gen/haselement.js [new file with mode: 0644]
test/mjsunit/runtime-gen/haslocalproperty.js [new file with mode: 0644]
test/mjsunit/runtime-gen/hasproperty.js [new file with mode: 0644]
test/mjsunit/runtime-gen/havesamemap.js [new file with mode: 0644]
test/mjsunit/runtime-gen/ignoreattributesandsetproperty.js [new file with mode: 0644]
test/mjsunit/runtime-gen/initializevarglobal.js [new file with mode: 0644]
test/mjsunit/runtime-gen/internalcompare.js [new file with mode: 0644]
test/mjsunit/runtime-gen/internaldateformat.js [new file with mode: 0644]
test/mjsunit/runtime-gen/internaldateparse.js [new file with mode: 0644]
test/mjsunit/runtime-gen/internalnumberformat.js [new file with mode: 0644]
test/mjsunit/runtime-gen/internalnumberparse.js [new file with mode: 0644]
test/mjsunit/runtime-gen/isattachedglobal.js [new file with mode: 0644]
test/mjsunit/runtime-gen/isbreakonexception.js [new file with mode: 0644]
test/mjsunit/runtime-gen/isconcurrentrecompilationsupported.js [new file with mode: 0644]
test/mjsunit/runtime-gen/isextensible.js [new file with mode: 0644]
test/mjsunit/runtime-gen/isinitializedintlobject.js [new file with mode: 0644]
test/mjsunit/runtime-gen/isinitializedintlobjectoftype.js [new file with mode: 0644]
test/mjsunit/runtime-gen/isinprototypechain.js [new file with mode: 0644]
test/mjsunit/runtime-gen/isjsfunctionproxy.js [new file with mode: 0644]
test/mjsunit/runtime-gen/isjsglobalproxy.js [new file with mode: 0644]
test/mjsunit/runtime-gen/isjsmodule.js [new file with mode: 0644]
test/mjsunit/runtime-gen/isjsproxy.js [new file with mode: 0644]
test/mjsunit/runtime-gen/isobserved.js [new file with mode: 0644]
test/mjsunit/runtime-gen/ispropertyenumerable.js [new file with mode: 0644]
test/mjsunit/runtime-gen/issloppymodefunction.js [new file with mode: 0644]
test/mjsunit/runtime-gen/istemplate.js [new file with mode: 0644]
test/mjsunit/runtime-gen/isvalidsmi.js [new file with mode: 0644]
test/mjsunit/runtime-gen/keyedgetproperty.js [new file with mode: 0644]
test/mjsunit/runtime-gen/liveeditcheckanddropactivations.js [new file with mode: 0644]
test/mjsunit/runtime-gen/liveeditcomparestrings.js [new file with mode: 0644]
test/mjsunit/runtime-gen/liveeditfindsharedfunctioninfosforscript.js [new file with mode: 0644]
test/mjsunit/runtime-gen/liveeditfunctionsetscript.js [new file with mode: 0644]
test/mjsunit/runtime-gen/liveeditfunctionsourceupdated.js [new file with mode: 0644]
test/mjsunit/runtime-gen/liveeditgathercompileinfo.js [new file with mode: 0644]
test/mjsunit/runtime-gen/liveeditpatchfunctionpositions.js [new file with mode: 0644]
test/mjsunit/runtime-gen/liveeditreplacefunctioncode.js [new file with mode: 0644]
test/mjsunit/runtime-gen/liveeditreplacereftonestedfunction.js [new file with mode: 0644]
test/mjsunit/runtime-gen/liveeditrestartframe.js [new file with mode: 0644]
test/mjsunit/runtime-gen/loadmutabledouble.js [new file with mode: 0644]
test/mjsunit/runtime-gen/localkeys.js [new file with mode: 0644]
test/mjsunit/runtime-gen/lookupaccessor.js [new file with mode: 0644]
test/mjsunit/runtime-gen/mapclear.js [new file with mode: 0644]
test/mjsunit/runtime-gen/mapcreateiterator.js [new file with mode: 0644]
test/mjsunit/runtime-gen/mapdelete.js [new file with mode: 0644]
test/mjsunit/runtime-gen/mapget.js [new file with mode: 0644]
test/mjsunit/runtime-gen/mapgetsize.js [new file with mode: 0644]
test/mjsunit/runtime-gen/maphas.js [new file with mode: 0644]
test/mjsunit/runtime-gen/mapinitialize.js [new file with mode: 0644]
test/mjsunit/runtime-gen/mapiteratorclose.js [new file with mode: 0644]
test/mjsunit/runtime-gen/mapiteratornext.js [new file with mode: 0644]
test/mjsunit/runtime-gen/mapset.js [new file with mode: 0644]
test/mjsunit/runtime-gen/markasinitializedintlobjectoftype.js [new file with mode: 0644]
test/mjsunit/runtime-gen/mathatan2.js [new file with mode: 0644]
test/mjsunit/runtime-gen/mathexp.js [new file with mode: 0644]
test/mjsunit/runtime-gen/mathfloor.js [new file with mode: 0644]
test/mjsunit/runtime-gen/mathfround.js [new file with mode: 0644]
test/mjsunit/runtime-gen/mathsqrt.js [new file with mode: 0644]
test/mjsunit/runtime-gen/maxsmi.js [new file with mode: 0644]
test/mjsunit/runtime-gen/movearraycontents.js [new file with mode: 0644]
test/mjsunit/runtime-gen/neveroptimizefunction.js [new file with mode: 0644]
test/mjsunit/runtime-gen/newobjectfrombound.js [new file with mode: 0644]
test/mjsunit/runtime-gen/newstring.js [new file with mode: 0644]
test/mjsunit/runtime-gen/newstringwrapper.js [new file with mode: 0644]
test/mjsunit/runtime-gen/newsymbolwrapper.js [new file with mode: 0644]
test/mjsunit/runtime-gen/notifycontextdisposed.js [new file with mode: 0644]
test/mjsunit/runtime-gen/numberadd.js [new file with mode: 0644]
test/mjsunit/runtime-gen/numberand.js [new file with mode: 0644]
test/mjsunit/runtime-gen/numbercompare.js [new file with mode: 0644]
test/mjsunit/runtime-gen/numberdiv.js [new file with mode: 0644]
test/mjsunit/runtime-gen/numberequals.js [new file with mode: 0644]
test/mjsunit/runtime-gen/numberimul.js [new file with mode: 0644]
test/mjsunit/runtime-gen/numbermod.js [new file with mode: 0644]
test/mjsunit/runtime-gen/numbermul.js [new file with mode: 0644]
test/mjsunit/runtime-gen/numberor.js [new file with mode: 0644]
test/mjsunit/runtime-gen/numbersar.js [new file with mode: 0644]
test/mjsunit/runtime-gen/numbershl.js [new file with mode: 0644]
test/mjsunit/runtime-gen/numbershr.js [new file with mode: 0644]
test/mjsunit/runtime-gen/numbersub.js [new file with mode: 0644]
test/mjsunit/runtime-gen/numbertoexponential.js [new file with mode: 0644]
test/mjsunit/runtime-gen/numbertofixed.js [new file with mode: 0644]
test/mjsunit/runtime-gen/numbertointeger.js [new file with mode: 0644]
test/mjsunit/runtime-gen/numbertointegermapminuszero.js [new file with mode: 0644]
test/mjsunit/runtime-gen/numbertojsint32.js [new file with mode: 0644]
test/mjsunit/runtime-gen/numbertojsuint32.js [new file with mode: 0644]
test/mjsunit/runtime-gen/numbertoprecision.js [new file with mode: 0644]
test/mjsunit/runtime-gen/numbertoradixstring.js [new file with mode: 0644]
test/mjsunit/runtime-gen/numberunaryminus.js [new file with mode: 0644]
test/mjsunit/runtime-gen/numberxor.js [new file with mode: 0644]
test/mjsunit/runtime-gen/objectfreeze.js [new file with mode: 0644]
test/mjsunit/runtime-gen/objectgetnotifierinobjectcontext.js [new file with mode: 0644]
test/mjsunit/runtime-gen/objectnotifierperformchangeinobjectcontext.js [new file with mode: 0644]
test/mjsunit/runtime-gen/objectobserveinobjectcontext.js [new file with mode: 0644]
test/mjsunit/runtime-gen/objectwascreatedincurrentorigin.js [new file with mode: 0644]
test/mjsunit/runtime-gen/observationweakmapcreate.js [new file with mode: 0644]
test/mjsunit/runtime-gen/observerobjectandrecordhavesameorigin.js [new file with mode: 0644]
test/mjsunit/runtime-gen/optimizefunctiononnextcall.js [new file with mode: 0644]
test/mjsunit/runtime-gen/optimizeobjectforaddingmultipleproperties.js [new file with mode: 0644]
test/mjsunit/runtime-gen/parsejson.js [new file with mode: 0644]
test/mjsunit/runtime-gen/preventextensions.js [new file with mode: 0644]
test/mjsunit/runtime-gen/pushifabsent.js [new file with mode: 0644]
test/mjsunit/runtime-gen/quotejsonstring.js [new file with mode: 0644]
test/mjsunit/runtime-gen/regexpcompile.js [new file with mode: 0644]
test/mjsunit/runtime-gen/regexpexecmultiple.js [new file with mode: 0644]
test/mjsunit/runtime-gen/regexpinitializeobject.js [new file with mode: 0644]
test/mjsunit/runtime-gen/removearrayholes.js [new file with mode: 0644]
test/mjsunit/runtime-gen/roundnumber.js [new file with mode: 0644]
test/mjsunit/runtime-gen/runmicrotasks.js [new file with mode: 0644]
test/mjsunit/runtime-gen/runninginsimulator.js [new file with mode: 0644]
test/mjsunit/runtime-gen/setaccessorproperty.js [new file with mode: 0644]
test/mjsunit/runtime-gen/setadd.js [new file with mode: 0644]
test/mjsunit/runtime-gen/setclear.js [new file with mode: 0644]
test/mjsunit/runtime-gen/setcode.js [new file with mode: 0644]
test/mjsunit/runtime-gen/setcreateiterator.js [new file with mode: 0644]
test/mjsunit/runtime-gen/setdebugeventlistener.js [new file with mode: 0644]
test/mjsunit/runtime-gen/setdelete.js [new file with mode: 0644]
test/mjsunit/runtime-gen/setdisablebreak.js [new file with mode: 0644]
test/mjsunit/runtime-gen/setexpectednumberofproperties.js [new file with mode: 0644]
test/mjsunit/runtime-gen/setflags.js [new file with mode: 0644]
test/mjsunit/runtime-gen/setfunctionbreakpoint.js [new file with mode: 0644]
test/mjsunit/runtime-gen/setgetsize.js [new file with mode: 0644]
test/mjsunit/runtime-gen/sethas.js [new file with mode: 0644]
test/mjsunit/runtime-gen/sethiddenproperty.js [new file with mode: 0644]
test/mjsunit/runtime-gen/setinitialize.js [new file with mode: 0644]
test/mjsunit/runtime-gen/setinlinebuiltinflag.js [new file with mode: 0644]
test/mjsunit/runtime-gen/setisobserved.js [new file with mode: 0644]
test/mjsunit/runtime-gen/setiteratorclose.js [new file with mode: 0644]
test/mjsunit/runtime-gen/setiteratornext.js [new file with mode: 0644]
test/mjsunit/runtime-gen/setmicrotaskpending.js [new file with mode: 0644]
test/mjsunit/runtime-gen/setnativeflag.js [new file with mode: 0644]
test/mjsunit/runtime-gen/setproperty.js [new file with mode: 0644]
test/mjsunit/runtime-gen/setprototype.js [new file with mode: 0644]
test/mjsunit/runtime-gen/setscopevariablevalue.js [new file with mode: 0644]
test/mjsunit/runtime-gen/setscriptbreakpoint.js [new file with mode: 0644]
test/mjsunit/runtime-gen/smilexicographiccompare.js [new file with mode: 0644]
test/mjsunit/runtime-gen/sparsejoinwithseparator.js [new file with mode: 0644]
test/mjsunit/runtime-gen/specialarrayfunctions.js [new file with mode: 0644]
test/mjsunit/runtime-gen/stringbuilderconcat.js [new file with mode: 0644]
test/mjsunit/runtime-gen/stringbuilderjoin.js [new file with mode: 0644]
test/mjsunit/runtime-gen/stringequals.js [new file with mode: 0644]
test/mjsunit/runtime-gen/stringindexof.js [new file with mode: 0644]
test/mjsunit/runtime-gen/stringlastindexof.js [new file with mode: 0644]
test/mjsunit/runtime-gen/stringlocalecompare.js [new file with mode: 0644]
test/mjsunit/runtime-gen/stringmatch.js [new file with mode: 0644]
test/mjsunit/runtime-gen/stringnormalize.js [new file with mode: 0644]
test/mjsunit/runtime-gen/stringparsefloat.js [new file with mode: 0644]
test/mjsunit/runtime-gen/stringparseint.js [new file with mode: 0644]
test/mjsunit/runtime-gen/stringreplaceglobalregexpwithstring.js [new file with mode: 0644]
test/mjsunit/runtime-gen/stringreplaceonecharwithstring.js [new file with mode: 0644]
test/mjsunit/runtime-gen/stringsplit.js [new file with mode: 0644]
test/mjsunit/runtime-gen/stringtoarray.js [new file with mode: 0644]
test/mjsunit/runtime-gen/stringtolowercase.js [new file with mode: 0644]
test/mjsunit/runtime-gen/stringtonumber.js [new file with mode: 0644]
test/mjsunit/runtime-gen/stringtouppercase.js [new file with mode: 0644]
test/mjsunit/runtime-gen/stringtrim.js [new file with mode: 0644]
test/mjsunit/runtime-gen/symboldescription.js [new file with mode: 0644]
test/mjsunit/runtime-gen/symbolisprivate.js [new file with mode: 0644]
test/mjsunit/runtime-gen/symbolregistry.js [new file with mode: 0644]
test/mjsunit/runtime-gen/tobool.js [new file with mode: 0644]
test/mjsunit/runtime-gen/tofastproperties.js [new file with mode: 0644]
test/mjsunit/runtime-gen/traceenter.js [new file with mode: 0644]
test/mjsunit/runtime-gen/traceexit.js [new file with mode: 0644]
test/mjsunit/runtime-gen/truncatestring.js [new file with mode: 0644]
test/mjsunit/runtime-gen/trymigrateinstance.js [new file with mode: 0644]
test/mjsunit/runtime-gen/typedarraygetbuffer.js [new file with mode: 0644]
test/mjsunit/runtime-gen/typedarrayinitialize.js [new file with mode: 0644]
test/mjsunit/runtime-gen/typedarrayinitializefromarraylike.js [new file with mode: 0644]
test/mjsunit/runtime-gen/typedarraymaxsizeinheap.js [new file with mode: 0644]
test/mjsunit/runtime-gen/typedarraysetfastcases.js [new file with mode: 0644]
test/mjsunit/runtime-gen/typeof.js [new file with mode: 0644]
test/mjsunit/runtime-gen/unblockconcurrentrecompilation.js [new file with mode: 0644]
test/mjsunit/runtime-gen/uriescape.js [new file with mode: 0644]
test/mjsunit/runtime-gen/uriunescape.js [new file with mode: 0644]
test/mjsunit/runtime-gen/weakcollectiondelete.js [new file with mode: 0644]
test/mjsunit/runtime-gen/weakcollectionget.js [new file with mode: 0644]
test/mjsunit/runtime-gen/weakcollectionhas.js [new file with mode: 0644]
test/mjsunit/runtime-gen/weakcollectioninitialize.js [new file with mode: 0644]
test/mjsunit/runtime-gen/weakcollectionset.js [new file with mode: 0644]
tools/generate-runtime-tests.py [new file with mode: 0755]
tools/run-tests.py

diff --git a/test/mjsunit/runtime-gen/apply.js b/test/mjsunit/runtime-gen/apply.js
new file mode 100644 (file)
index 0000000..90e9c71
--- /dev/null
@@ -0,0 +1,9 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var arg0 = function() {};
+var _receiver = new Object();
+var _arguments = new Object();
+var _offset = 1;
+var _argc = 1;
+%Apply(arg0, _receiver, _arguments, _offset, _argc);
diff --git a/test/mjsunit/runtime-gen/arraybuffergetbytelength.js b/test/mjsunit/runtime-gen/arraybuffergetbytelength.js
new file mode 100644 (file)
index 0000000..18f45b4
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _holder = new ArrayBuffer(8);
+%_ArrayBufferGetByteLength(_holder);
diff --git a/test/mjsunit/runtime-gen/arraybufferinitialize.js b/test/mjsunit/runtime-gen/arraybufferinitialize.js
new file mode 100644 (file)
index 0000000..9ae5d9f
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _holder = new ArrayBuffer(8);
+var _byteLength = 1.5;
+%ArrayBufferInitialize(_holder, _byteLength);
diff --git a/test/mjsunit/runtime-gen/arraybufferisview.js b/test/mjsunit/runtime-gen/arraybufferisview.js
new file mode 100644 (file)
index 0000000..def6b3b
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _object = new Object();
+%ArrayBufferIsView(_object);
diff --git a/test/mjsunit/runtime-gen/arraybufferneuter.js b/test/mjsunit/runtime-gen/arraybufferneuter.js
new file mode 100644 (file)
index 0000000..f239edf
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _array_buffer = new ArrayBuffer(8);
+%ArrayBufferNeuter(_array_buffer);
diff --git a/test/mjsunit/runtime-gen/arraybuffersliceimpl.js b/test/mjsunit/runtime-gen/arraybuffersliceimpl.js
new file mode 100644 (file)
index 0000000..8ed24d6
--- /dev/null
@@ -0,0 +1,7 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _source = new ArrayBuffer(8);
+var _target = new ArrayBuffer(8);
+var arg2 = 0;
+%ArrayBufferSliceImpl(_source, _target, arg2);
diff --git a/test/mjsunit/runtime-gen/arrayconcat.js b/test/mjsunit/runtime-gen/arrayconcat.js
new file mode 100644 (file)
index 0000000..0b08069
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var arg0 = [1, 'a'];
+%ArrayConcat(arg0);
diff --git a/test/mjsunit/runtime-gen/availablelocalesof.js b/test/mjsunit/runtime-gen/availablelocalesof.js
new file mode 100644 (file)
index 0000000..819acbe
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _service = "foo";
+%AvailableLocalesOf(_service);
diff --git a/test/mjsunit/runtime-gen/basicjsonstringify.js b/test/mjsunit/runtime-gen/basicjsonstringify.js
new file mode 100644 (file)
index 0000000..0b2f086
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _object = new Object();
+%BasicJSONStringify(_object);
diff --git a/test/mjsunit/runtime-gen/boundfunctiongetbindings.js b/test/mjsunit/runtime-gen/boundfunctiongetbindings.js
new file mode 100644 (file)
index 0000000..8c4986f
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _callable = new Object();
+%BoundFunctionGetBindings(_callable);
diff --git a/test/mjsunit/runtime-gen/break.js b/test/mjsunit/runtime-gen/break.js
new file mode 100644 (file)
index 0000000..f53766a
--- /dev/null
@@ -0,0 +1,4 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+%Break();
diff --git a/test/mjsunit/runtime-gen/breakiteratoradopttext.js b/test/mjsunit/runtime-gen/breakiteratoradopttext.js
new file mode 100644 (file)
index 0000000..768b948
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var arg0 = %GetImplFromInitializedIntlObject(new Intl.v8BreakIterator());
+var _text = "foo";
+%BreakIteratorAdoptText(arg0, _text);
diff --git a/test/mjsunit/runtime-gen/breakiteratorbreaktype.js b/test/mjsunit/runtime-gen/breakiteratorbreaktype.js
new file mode 100644 (file)
index 0000000..5f21fae
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var arg0 = %GetImplFromInitializedIntlObject(new Intl.v8BreakIterator());
+%BreakIteratorBreakType(arg0);
diff --git a/test/mjsunit/runtime-gen/breakiteratorcurrent.js b/test/mjsunit/runtime-gen/breakiteratorcurrent.js
new file mode 100644 (file)
index 0000000..e11d43d
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var arg0 = %GetImplFromInitializedIntlObject(new Intl.v8BreakIterator());
+%BreakIteratorCurrent(arg0);
diff --git a/test/mjsunit/runtime-gen/breakiteratorfirst.js b/test/mjsunit/runtime-gen/breakiteratorfirst.js
new file mode 100644 (file)
index 0000000..ab584d5
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var arg0 = %GetImplFromInitializedIntlObject(new Intl.v8BreakIterator());
+%BreakIteratorFirst(arg0);
diff --git a/test/mjsunit/runtime-gen/breakiteratornext.js b/test/mjsunit/runtime-gen/breakiteratornext.js
new file mode 100644 (file)
index 0000000..5401641
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var arg0 = %GetImplFromInitializedIntlObject(new Intl.v8BreakIterator());
+%BreakIteratorNext(arg0);
diff --git a/test/mjsunit/runtime-gen/canonicalizelanguagetag.js b/test/mjsunit/runtime-gen/canonicalizelanguagetag.js
new file mode 100644 (file)
index 0000000..debf352
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _locale_id_str = "foo";
+%CanonicalizeLanguageTag(_locale_id_str);
diff --git a/test/mjsunit/runtime-gen/changebreakonexception.js b/test/mjsunit/runtime-gen/changebreakonexception.js
new file mode 100644 (file)
index 0000000..e4e3bfa
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _type_arg = 32;
+var _enable = true;
+%ChangeBreakOnException(_type_arg, _enable);
diff --git a/test/mjsunit/runtime-gen/charfromcode.js b/test/mjsunit/runtime-gen/charfromcode.js
new file mode 100644 (file)
index 0000000..9e01522
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _code = 32;
+%CharFromCode(_code);
diff --git a/test/mjsunit/runtime-gen/checkexecutionstate.js b/test/mjsunit/runtime-gen/checkexecutionstate.js
new file mode 100644 (file)
index 0000000..93690fe
--- /dev/null
@@ -0,0 +1,7 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _break_id = 32;
+try {
+%CheckExecutionState(_break_id);
+} catch(e) {}
diff --git a/test/mjsunit/runtime-gen/checkisbootstrapping.js b/test/mjsunit/runtime-gen/checkisbootstrapping.js
new file mode 100644 (file)
index 0000000..27a8224
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+try {
+%CheckIsBootstrapping();
+} catch(e) {}
diff --git a/test/mjsunit/runtime-gen/classof.js b/test/mjsunit/runtime-gen/classof.js
new file mode 100644 (file)
index 0000000..59fdde8
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _obj = new Object();
+%_ClassOf(_obj);
diff --git a/test/mjsunit/runtime-gen/clearbreakpoint.js b/test/mjsunit/runtime-gen/clearbreakpoint.js
new file mode 100644 (file)
index 0000000..20ecded
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _break_point_object_arg = new Object();
+%ClearBreakPoint(_break_point_object_arg);
diff --git a/test/mjsunit/runtime-gen/clearfunctiontypefeedback.js b/test/mjsunit/runtime-gen/clearfunctiontypefeedback.js
new file mode 100644 (file)
index 0000000..e613228
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _function = function() {};
+%ClearFunctionTypeFeedback(_function);
diff --git a/test/mjsunit/runtime-gen/clearstepping.js b/test/mjsunit/runtime-gen/clearstepping.js
new file mode 100644 (file)
index 0000000..8461e31
--- /dev/null
@@ -0,0 +1,4 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+%ClearStepping();
diff --git a/test/mjsunit/runtime-gen/collectstacktrace.js b/test/mjsunit/runtime-gen/collectstacktrace.js
new file mode 100644 (file)
index 0000000..0272863
--- /dev/null
@@ -0,0 +1,7 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _error_object = new Object();
+var _caller = new Object();
+var _limit = 32;
+%CollectStackTrace(_error_object, _caller, _limit);
diff --git a/test/mjsunit/runtime-gen/compilestring.js b/test/mjsunit/runtime-gen/compilestring.js
new file mode 100644 (file)
index 0000000..cc3e10c
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _source = "foo";
+var arg1 = false;
+%CompileString(_source, arg1);
diff --git a/test/mjsunit/runtime-gen/constructdouble.js b/test/mjsunit/runtime-gen/constructdouble.js
new file mode 100644 (file)
index 0000000..0b0e208
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _hi = 32;
+var _lo = 32;
+%_ConstructDouble(_hi, _lo);
diff --git a/test/mjsunit/runtime-gen/createbreakiterator.js b/test/mjsunit/runtime-gen/createbreakiterator.js
new file mode 100644 (file)
index 0000000..03f4451
--- /dev/null
@@ -0,0 +1,7 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var arg0 = 'en-US';
+var arg1 = {type: 'string'};
+var _resolved = new Object();
+%CreateBreakIterator(arg0, arg1, _resolved);
diff --git a/test/mjsunit/runtime-gen/createcollator.js b/test/mjsunit/runtime-gen/createcollator.js
new file mode 100644 (file)
index 0000000..2ecebb8
--- /dev/null
@@ -0,0 +1,7 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _locale = "foo";
+var _options = new Object();
+var _resolved = new Object();
+%CreateCollator(_locale, _options, _resolved);
diff --git a/test/mjsunit/runtime-gen/createglobalprivatesymbol.js b/test/mjsunit/runtime-gen/createglobalprivatesymbol.js
new file mode 100644 (file)
index 0000000..c90ac44
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _name = "foo";
+%CreateGlobalPrivateSymbol(_name);
diff --git a/test/mjsunit/runtime-gen/createjsfunctionproxy.js b/test/mjsunit/runtime-gen/createjsfunctionproxy.js
new file mode 100644 (file)
index 0000000..cdb0725
--- /dev/null
@@ -0,0 +1,8 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _handler = new Object();
+var arg1 = function() {};
+var _construct_trap = function() {};
+var _prototype = new Object();
+%CreateJSFunctionProxy(_handler, arg1, _construct_trap, _prototype);
diff --git a/test/mjsunit/runtime-gen/createjsproxy.js b/test/mjsunit/runtime-gen/createjsproxy.js
new file mode 100644 (file)
index 0000000..4fb9744
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _handler = new Object();
+var _prototype = new Object();
+%CreateJSProxy(_handler, _prototype);
diff --git a/test/mjsunit/runtime-gen/createprivatesymbol.js b/test/mjsunit/runtime-gen/createprivatesymbol.js
new file mode 100644 (file)
index 0000000..23f4cca
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var arg0 = "foo";
+%CreatePrivateSymbol(arg0);
diff --git a/test/mjsunit/runtime-gen/createsymbol.js b/test/mjsunit/runtime-gen/createsymbol.js
new file mode 100644 (file)
index 0000000..0a02aa9
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var arg0 = "foo";
+%CreateSymbol(arg0);
diff --git a/test/mjsunit/runtime-gen/dataviewinitialize.js b/test/mjsunit/runtime-gen/dataviewinitialize.js
new file mode 100644 (file)
index 0000000..901a1a5
--- /dev/null
@@ -0,0 +1,8 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _holder = new DataView(new ArrayBuffer(8));
+var _buffer = new ArrayBuffer(8);
+var _byte_offset = 1.5;
+var _byte_length = 1.5;
+%_DataViewInitialize(_holder, _buffer, _byte_offset, _byte_length);
diff --git a/test/mjsunit/runtime-gen/datecacheversion.js b/test/mjsunit/runtime-gen/datecacheversion.js
new file mode 100644 (file)
index 0000000..d622fa2
--- /dev/null
@@ -0,0 +1,4 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+%DateCacheVersion();
diff --git a/test/mjsunit/runtime-gen/datecurrenttime.js b/test/mjsunit/runtime-gen/datecurrenttime.js
new file mode 100644 (file)
index 0000000..569eeff
--- /dev/null
@@ -0,0 +1,4 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+%DateCurrentTime();
diff --git a/test/mjsunit/runtime-gen/datelocaltimezone.js b/test/mjsunit/runtime-gen/datelocaltimezone.js
new file mode 100644 (file)
index 0000000..16897f3
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _x = 1.5;
+%DateLocalTimezone(_x);
diff --git a/test/mjsunit/runtime-gen/datemakeday.js b/test/mjsunit/runtime-gen/datemakeday.js
new file mode 100644 (file)
index 0000000..1be1e1d
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _year = 1;
+var _month = 1;
+%DateMakeDay(_year, _month);
diff --git a/test/mjsunit/runtime-gen/dateparsestring.js b/test/mjsunit/runtime-gen/dateparsestring.js
new file mode 100644 (file)
index 0000000..e050e58
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _str = "foo";
+var arg1 = new Array(8);
+%DateParseString(_str, arg1);
diff --git a/test/mjsunit/runtime-gen/datesetvalue.js b/test/mjsunit/runtime-gen/datesetvalue.js
new file mode 100644 (file)
index 0000000..773f0af
--- /dev/null
@@ -0,0 +1,7 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _date = new Date();
+var _time = 1.5;
+var _is_utc = 1;
+%DateSetValue(_date, _time, _is_utc);
diff --git a/test/mjsunit/runtime-gen/datetoutc.js b/test/mjsunit/runtime-gen/datetoutc.js
new file mode 100644 (file)
index 0000000..cfa70d1
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _x = 1.5;
+%DateToUTC(_x);
diff --git a/test/mjsunit/runtime-gen/debugbreak.js b/test/mjsunit/runtime-gen/debugbreak.js
new file mode 100644 (file)
index 0000000..be807d9
--- /dev/null
@@ -0,0 +1,4 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+%DebugBreak();
diff --git a/test/mjsunit/runtime-gen/debugcallbacksupportsstepping.js b/test/mjsunit/runtime-gen/debugcallbacksupportsstepping.js
new file mode 100644 (file)
index 0000000..8c14ef7
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _callback = new Object();
+%_DebugCallbackSupportsStepping(_callback);
diff --git a/test/mjsunit/runtime-gen/debugconstructedby.js b/test/mjsunit/runtime-gen/debugconstructedby.js
new file mode 100644 (file)
index 0000000..d7fa0f4
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _constructor = function() {};
+var _max_references = 32;
+%DebugConstructedBy(_constructor, _max_references);
diff --git a/test/mjsunit/runtime-gen/debugdisassembleconstructor.js b/test/mjsunit/runtime-gen/debugdisassembleconstructor.js
new file mode 100644 (file)
index 0000000..a2b1a53
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _func = function() {};
+%DebugDisassembleConstructor(_func);
diff --git a/test/mjsunit/runtime-gen/debugdisassemblefunction.js b/test/mjsunit/runtime-gen/debugdisassemblefunction.js
new file mode 100644 (file)
index 0000000..e49d974
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _func = function() {};
+%DebugDisassembleFunction(_func);
diff --git a/test/mjsunit/runtime-gen/debugevaluate.js b/test/mjsunit/runtime-gen/debugevaluate.js
new file mode 100644 (file)
index 0000000..18a83b2
--- /dev/null
@@ -0,0 +1,12 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _break_id = 32;
+var _wrapped_id = 1;
+var _inlined_jsframe_index = 32;
+var _source = "foo";
+var _disable_break = true;
+var _context_extension = new Object();
+try {
+%DebugEvaluate(_break_id, _wrapped_id, _inlined_jsframe_index, _source, _disable_break, _context_extension);
+} catch(e) {}
diff --git a/test/mjsunit/runtime-gen/debugevaluateglobal.js b/test/mjsunit/runtime-gen/debugevaluateglobal.js
new file mode 100644 (file)
index 0000000..90c41ae
--- /dev/null
@@ -0,0 +1,10 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _break_id = 32;
+var _source = "foo";
+var _disable_break = true;
+var _context_extension = new Object();
+try {
+%DebugEvaluateGlobal(_break_id, _source, _disable_break, _context_extension);
+} catch(e) {}
diff --git a/test/mjsunit/runtime-gen/debuggetloadedscripts.js b/test/mjsunit/runtime-gen/debuggetloadedscripts.js
new file mode 100644 (file)
index 0000000..9f7c07a
--- /dev/null
@@ -0,0 +1,4 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+%DebugGetLoadedScripts();
diff --git a/test/mjsunit/runtime-gen/debuggetproperty.js b/test/mjsunit/runtime-gen/debuggetproperty.js
new file mode 100644 (file)
index 0000000..b5b5191
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _obj = new Object();
+var _name = "name";
+%DebugGetProperty(_obj, _name);
diff --git a/test/mjsunit/runtime-gen/debuggetpropertydetails.js b/test/mjsunit/runtime-gen/debuggetpropertydetails.js
new file mode 100644 (file)
index 0000000..e317636
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _obj = new Object();
+var _name = "name";
+%DebugGetPropertyDetails(_obj, _name);
diff --git a/test/mjsunit/runtime-gen/debuggetprototype.js b/test/mjsunit/runtime-gen/debuggetprototype.js
new file mode 100644 (file)
index 0000000..f2fc9d5
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _obj = new Object();
+%DebugGetPrototype(_obj);
diff --git a/test/mjsunit/runtime-gen/debugindexedinterceptorelementvalue.js b/test/mjsunit/runtime-gen/debugindexedinterceptorelementvalue.js
new file mode 100644 (file)
index 0000000..26d9cc4
--- /dev/null
@@ -0,0 +1,8 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _obj = new Object();
+var _index = 32;
+try {
+%DebugIndexedInterceptorElementValue(_obj, _index);
+} catch(e) {}
diff --git a/test/mjsunit/runtime-gen/debugnamedinterceptorpropertyvalue.js b/test/mjsunit/runtime-gen/debugnamedinterceptorpropertyvalue.js
new file mode 100644 (file)
index 0000000..714bd08
--- /dev/null
@@ -0,0 +1,8 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _obj = new Object();
+var _name = "name";
+try {
+%DebugNamedInterceptorPropertyValue(_obj, _name);
+} catch(e) {}
diff --git a/test/mjsunit/runtime-gen/debugpreparestepinifstepping.js b/test/mjsunit/runtime-gen/debugpreparestepinifstepping.js
new file mode 100644 (file)
index 0000000..48af82c
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _callback = function() {};
+%DebugPrepareStepInIfStepping(_callback);
diff --git a/test/mjsunit/runtime-gen/debugprintscopes.js b/test/mjsunit/runtime-gen/debugprintscopes.js
new file mode 100644 (file)
index 0000000..8ecff6a
--- /dev/null
@@ -0,0 +1,4 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+%DebugPrintScopes();
diff --git a/test/mjsunit/runtime-gen/debugpromisehandleepilogue.js b/test/mjsunit/runtime-gen/debugpromisehandleepilogue.js
new file mode 100644 (file)
index 0000000..998c800
--- /dev/null
@@ -0,0 +1,4 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+%DebugPromiseHandleEpilogue();
diff --git a/test/mjsunit/runtime-gen/debugpromisehandleprologue.js b/test/mjsunit/runtime-gen/debugpromisehandleprologue.js
new file mode 100644 (file)
index 0000000..f9c14ea
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _promise_getter = function() {};
+%DebugPromiseHandlePrologue(_promise_getter);
diff --git a/test/mjsunit/runtime-gen/debugpropertyattributesfromdetails.js b/test/mjsunit/runtime-gen/debugpropertyattributesfromdetails.js
new file mode 100644 (file)
index 0000000..34ef24a
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _details = 513;
+%DebugPropertyAttributesFromDetails(_details);
diff --git a/test/mjsunit/runtime-gen/debugpropertyindexfromdetails.js b/test/mjsunit/runtime-gen/debugpropertyindexfromdetails.js
new file mode 100644 (file)
index 0000000..215870a
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _details = 513;
+%DebugPropertyIndexFromDetails(_details);
diff --git a/test/mjsunit/runtime-gen/debugpropertytypefromdetails.js b/test/mjsunit/runtime-gen/debugpropertytypefromdetails.js
new file mode 100644 (file)
index 0000000..115982e
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _details = 513;
+%DebugPropertyTypeFromDetails(_details);
diff --git a/test/mjsunit/runtime-gen/debugreferencedby.js b/test/mjsunit/runtime-gen/debugreferencedby.js
new file mode 100644 (file)
index 0000000..214e6d4
--- /dev/null
@@ -0,0 +1,7 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _target = new Object();
+var _instance_filter = new Object();
+var _max_references = 32;
+%DebugReferencedBy(_target, _instance_filter, _max_references);
diff --git a/test/mjsunit/runtime-gen/debugsetscriptsource.js b/test/mjsunit/runtime-gen/debugsetscriptsource.js
new file mode 100644 (file)
index 0000000..e5a39bc
--- /dev/null
@@ -0,0 +1,8 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var arg0 = %DebugGetLoadedScripts()[1];
+var _source = "foo";
+try {
+%DebugSetScriptSource(arg0, _source);
+} catch(e) {}
diff --git a/test/mjsunit/runtime-gen/debugtrace.js b/test/mjsunit/runtime-gen/debugtrace.js
new file mode 100644 (file)
index 0000000..4200333
--- /dev/null
@@ -0,0 +1,4 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+%DebugTrace();
diff --git a/test/mjsunit/runtime-gen/defineorredefineaccessorproperty.js b/test/mjsunit/runtime-gen/defineorredefineaccessorproperty.js
new file mode 100644 (file)
index 0000000..5eb6f24
--- /dev/null
@@ -0,0 +1,9 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _obj = new Object();
+var _name = "name";
+var arg2 = function() {};
+var arg3 = function() {};
+var arg4 = 2;
+%DefineOrRedefineAccessorProperty(_obj, _name, arg2, arg3, arg4);
diff --git a/test/mjsunit/runtime-gen/defineorredefinedataproperty.js b/test/mjsunit/runtime-gen/defineorredefinedataproperty.js
new file mode 100644 (file)
index 0000000..64f8b98
--- /dev/null
@@ -0,0 +1,8 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _js_object = new Object();
+var _name = "name";
+var _obj_value = new Object();
+var _unchecked = 1;
+%DefineOrRedefineDataProperty(_js_object, _name, _obj_value, _unchecked);
diff --git a/test/mjsunit/runtime-gen/deleteproperty.js b/test/mjsunit/runtime-gen/deleteproperty.js
new file mode 100644 (file)
index 0000000..2f17c34
--- /dev/null
@@ -0,0 +1,7 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _object = new Object();
+var _key = "name";
+var _strict_mode = 1;
+%DeleteProperty(_object, _key, _strict_mode);
diff --git a/test/mjsunit/runtime-gen/deoptimizefunction.js b/test/mjsunit/runtime-gen/deoptimizefunction.js
new file mode 100644 (file)
index 0000000..64fddac
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _function = function() {};
+%DeoptimizeFunction(_function);
diff --git a/test/mjsunit/runtime-gen/doublehi.js b/test/mjsunit/runtime-gen/doublehi.js
new file mode 100644 (file)
index 0000000..6b808f5
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _x = 1.5;
+%_DoubleHi(_x);
diff --git a/test/mjsunit/runtime-gen/doublelo.js b/test/mjsunit/runtime-gen/doublelo.js
new file mode 100644 (file)
index 0000000..739efb9
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _x = 1.5;
+%_DoubleLo(_x);
diff --git a/test/mjsunit/runtime-gen/estimatenumberofelements.js b/test/mjsunit/runtime-gen/estimatenumberofelements.js
new file mode 100644 (file)
index 0000000..dd1f397
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _object = new Array();
+%EstimateNumberOfElements(_object);
diff --git a/test/mjsunit/runtime-gen/executeindebugcontext.js b/test/mjsunit/runtime-gen/executeindebugcontext.js
new file mode 100644 (file)
index 0000000..8d5080a
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _function = function() {};
+var _without_debugger = true;
+%ExecuteInDebugContext(_function, _without_debugger);
diff --git a/test/mjsunit/runtime-gen/finisharrayprototypesetup.js b/test/mjsunit/runtime-gen/finisharrayprototypesetup.js
new file mode 100644 (file)
index 0000000..6ced997
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _prototype = new Array();
+%FinishArrayPrototypeSetup(_prototype);
diff --git a/test/mjsunit/runtime-gen/fix.js b/test/mjsunit/runtime-gen/fix.js
new file mode 100644 (file)
index 0000000..e0ec1c6
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _proxy = Proxy.create({});
+%Fix(_proxy);
diff --git a/test/mjsunit/runtime-gen/flattenstring.js b/test/mjsunit/runtime-gen/flattenstring.js
new file mode 100644 (file)
index 0000000..5fd5e17
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _str = "foo";
+%FlattenString(_str);
diff --git a/test/mjsunit/runtime-gen/functiongetinferredname.js b/test/mjsunit/runtime-gen/functiongetinferredname.js
new file mode 100644 (file)
index 0000000..4db674c
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _f = function() {};
+%FunctionGetInferredName(_f);
diff --git a/test/mjsunit/runtime-gen/functiongetname.js b/test/mjsunit/runtime-gen/functiongetname.js
new file mode 100644 (file)
index 0000000..eae0d18
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _f = function() {};
+%FunctionGetName(_f);
diff --git a/test/mjsunit/runtime-gen/functiongetscript.js b/test/mjsunit/runtime-gen/functiongetscript.js
new file mode 100644 (file)
index 0000000..c641990
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _fun = function() {};
+%FunctionGetScript(_fun);
diff --git a/test/mjsunit/runtime-gen/functiongetscriptsourceposition.js b/test/mjsunit/runtime-gen/functiongetscriptsourceposition.js
new file mode 100644 (file)
index 0000000..996b633
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _fun = function() {};
+%FunctionGetScriptSourcePosition(_fun);
diff --git a/test/mjsunit/runtime-gen/functiongetsourcecode.js b/test/mjsunit/runtime-gen/functiongetsourcecode.js
new file mode 100644 (file)
index 0000000..8f1195c
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _f = function() {};
+%FunctionGetSourceCode(_f);
diff --git a/test/mjsunit/runtime-gen/functionisapifunction.js b/test/mjsunit/runtime-gen/functionisapifunction.js
new file mode 100644 (file)
index 0000000..bd00a33
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _f = function() {};
+%FunctionIsAPIFunction(_f);
diff --git a/test/mjsunit/runtime-gen/functionisbuiltin.js b/test/mjsunit/runtime-gen/functionisbuiltin.js
new file mode 100644 (file)
index 0000000..be4f734
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _f = function() {};
+%FunctionIsBuiltin(_f);
diff --git a/test/mjsunit/runtime-gen/functionisgenerator.js b/test/mjsunit/runtime-gen/functionisgenerator.js
new file mode 100644 (file)
index 0000000..7e9f2f8
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _f = function() {};
+%FunctionIsGenerator(_f);
diff --git a/test/mjsunit/runtime-gen/functionmarknameshouldprintasanonymous.js b/test/mjsunit/runtime-gen/functionmarknameshouldprintasanonymous.js
new file mode 100644 (file)
index 0000000..244420b
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _f = function() {};
+%FunctionMarkNameShouldPrintAsAnonymous(_f);
diff --git a/test/mjsunit/runtime-gen/functionnameshouldprintasanonymous.js b/test/mjsunit/runtime-gen/functionnameshouldprintasanonymous.js
new file mode 100644 (file)
index 0000000..4d4941d
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _f = function() {};
+%FunctionNameShouldPrintAsAnonymous(_f);
diff --git a/test/mjsunit/runtime-gen/functionremoveprototype.js b/test/mjsunit/runtime-gen/functionremoveprototype.js
new file mode 100644 (file)
index 0000000..e1433a6
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _f = function() {};
+%FunctionRemovePrototype(_f);
diff --git a/test/mjsunit/runtime-gen/functionsetinstanceclassname.js b/test/mjsunit/runtime-gen/functionsetinstanceclassname.js
new file mode 100644 (file)
index 0000000..7a44ffd
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _fun = function() {};
+var _name = "foo";
+%FunctionSetInstanceClassName(_fun, _name);
diff --git a/test/mjsunit/runtime-gen/functionsetlength.js b/test/mjsunit/runtime-gen/functionsetlength.js
new file mode 100644 (file)
index 0000000..4bb1072
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _fun = function() {};
+var _length = 1;
+%FunctionSetLength(_fun, _length);
diff --git a/test/mjsunit/runtime-gen/functionsetname.js b/test/mjsunit/runtime-gen/functionsetname.js
new file mode 100644 (file)
index 0000000..f46ced2
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _f = function() {};
+var _name = "foo";
+%FunctionSetName(_f, _name);
diff --git a/test/mjsunit/runtime-gen/functionsetprototype.js b/test/mjsunit/runtime-gen/functionsetprototype.js
new file mode 100644 (file)
index 0000000..5cfe78a
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _fun = function() {};
+var _value = new Object();
+%FunctionSetPrototype(_fun, _value);
diff --git a/test/mjsunit/runtime-gen/functionsetreadonlyprototype.js b/test/mjsunit/runtime-gen/functionsetreadonlyprototype.js
new file mode 100644 (file)
index 0000000..49b5d74
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _function = function() {};
+%FunctionSetReadOnlyPrototype(_function);
diff --git a/test/mjsunit/runtime-gen/getallscopesdetails.js b/test/mjsunit/runtime-gen/getallscopesdetails.js
new file mode 100644 (file)
index 0000000..dc26830
--- /dev/null
@@ -0,0 +1,10 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _break_id = 32;
+var _wrapped_id = 1;
+var _inlined_jsframe_index = 32;
+var _flag = true;
+try {
+%GetAllScopesDetails(_break_id, _wrapped_id, _inlined_jsframe_index, _flag);
+} catch(e) {}
diff --git a/test/mjsunit/runtime-gen/getandclearoverflowedstacktrace.js b/test/mjsunit/runtime-gen/getandclearoverflowedstacktrace.js
new file mode 100644 (file)
index 0000000..8abf790
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _error_object = new Object();
+%GetAndClearOverflowedStackTrace(_error_object);
diff --git a/test/mjsunit/runtime-gen/getargumentsproperty.js b/test/mjsunit/runtime-gen/getargumentsproperty.js
new file mode 100644 (file)
index 0000000..4802277
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _raw_key = new Object();
+%GetArgumentsProperty(_raw_key);
diff --git a/test/mjsunit/runtime-gen/getarraykeys.js b/test/mjsunit/runtime-gen/getarraykeys.js
new file mode 100644 (file)
index 0000000..bb7e88a
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _array = new Object();
+var _length = 32;
+%GetArrayKeys(_array, _length);
diff --git a/test/mjsunit/runtime-gen/getbreaklocations.js b/test/mjsunit/runtime-gen/getbreaklocations.js
new file mode 100644 (file)
index 0000000..be23e4d
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _fun = function() {};
+var arg1 = 0;
+%GetBreakLocations(_fun, arg1);
diff --git a/test/mjsunit/runtime-gen/getcalltrap.js b/test/mjsunit/runtime-gen/getcalltrap.js
new file mode 100644 (file)
index 0000000..1ec8a7d
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _proxy = Proxy.createFunction({}, function() {});
+%GetCallTrap(_proxy);
diff --git a/test/mjsunit/runtime-gen/getconstructordelegate.js b/test/mjsunit/runtime-gen/getconstructordelegate.js
new file mode 100644 (file)
index 0000000..55bce7c
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _object = new Object();
+%GetConstructorDelegate(_object);
diff --git a/test/mjsunit/runtime-gen/getconstructtrap.js b/test/mjsunit/runtime-gen/getconstructtrap.js
new file mode 100644 (file)
index 0000000..2d88957
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _proxy = Proxy.createFunction({}, function() {});
+%GetConstructTrap(_proxy);
diff --git a/test/mjsunit/runtime-gen/getdataproperty.js b/test/mjsunit/runtime-gen/getdataproperty.js
new file mode 100644 (file)
index 0000000..9d18efd
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _object = new Object();
+var _key = "name";
+%GetDataProperty(_object, _key);
diff --git a/test/mjsunit/runtime-gen/getdefaulticulocale.js b/test/mjsunit/runtime-gen/getdefaulticulocale.js
new file mode 100644 (file)
index 0000000..ef971d1
--- /dev/null
@@ -0,0 +1,4 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+%GetDefaultICULocale();
diff --git a/test/mjsunit/runtime-gen/getdefaultreceiver.js b/test/mjsunit/runtime-gen/getdefaultreceiver.js
new file mode 100644 (file)
index 0000000..313bdce
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var arg0 = function() {};
+%GetDefaultReceiver(arg0);
diff --git a/test/mjsunit/runtime-gen/getframecount.js b/test/mjsunit/runtime-gen/getframecount.js
new file mode 100644 (file)
index 0000000..361da7f
--- /dev/null
@@ -0,0 +1,7 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _break_id = 32;
+try {
+%GetFrameCount(_break_id);
+} catch(e) {}
diff --git a/test/mjsunit/runtime-gen/getframedetails.js b/test/mjsunit/runtime-gen/getframedetails.js
new file mode 100644 (file)
index 0000000..9f04756
--- /dev/null
@@ -0,0 +1,8 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _break_id = 32;
+var _index = 32;
+try {
+%GetFrameDetails(_break_id, _index);
+} catch(e) {}
diff --git a/test/mjsunit/runtime-gen/getfunctioncodepositionfromsource.js b/test/mjsunit/runtime-gen/getfunctioncodepositionfromsource.js
new file mode 100644 (file)
index 0000000..8767e69
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _function = function() {};
+var _source_position = 32;
+%GetFunctionCodePositionFromSource(_function, _source_position);
diff --git a/test/mjsunit/runtime-gen/getfunctiondelegate.js b/test/mjsunit/runtime-gen/getfunctiondelegate.js
new file mode 100644 (file)
index 0000000..4fb5002
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _object = new Object();
+%GetFunctionDelegate(_object);
diff --git a/test/mjsunit/runtime-gen/getfunctionscopecount.js b/test/mjsunit/runtime-gen/getfunctionscopecount.js
new file mode 100644 (file)
index 0000000..afd5b8a
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _fun = function() {};
+%GetFunctionScopeCount(_fun);
diff --git a/test/mjsunit/runtime-gen/getfunctionscopedetails.js b/test/mjsunit/runtime-gen/getfunctionscopedetails.js
new file mode 100644 (file)
index 0000000..f1f5378
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _fun = function() {};
+var _index = 32;
+%GetFunctionScopeDetails(_fun, _index);
diff --git a/test/mjsunit/runtime-gen/gethandler.js b/test/mjsunit/runtime-gen/gethandler.js
new file mode 100644 (file)
index 0000000..411f608
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _proxy = Proxy.create({});
+%GetHandler(_proxy);
diff --git a/test/mjsunit/runtime-gen/getheapusage.js b/test/mjsunit/runtime-gen/getheapusage.js
new file mode 100644 (file)
index 0000000..50b4f2e
--- /dev/null
@@ -0,0 +1,4 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+%GetHeapUsage();
diff --git a/test/mjsunit/runtime-gen/getimplfrominitializedintlobject.js b/test/mjsunit/runtime-gen/getimplfrominitializedintlobject.js
new file mode 100644 (file)
index 0000000..2eb845e
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var arg0 = new Intl.NumberFormat('en-US');
+%GetImplFromInitializedIntlObject(arg0);
diff --git a/test/mjsunit/runtime-gen/getindexedinterceptorelementnames.js b/test/mjsunit/runtime-gen/getindexedinterceptorelementnames.js
new file mode 100644 (file)
index 0000000..0e3505d
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _obj = new Object();
+%GetIndexedInterceptorElementNames(_obj);
diff --git a/test/mjsunit/runtime-gen/getinterceptorinfo.js b/test/mjsunit/runtime-gen/getinterceptorinfo.js
new file mode 100644 (file)
index 0000000..d7f8395
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _obj = new Object();
+%GetInterceptorInfo(_obj);
diff --git a/test/mjsunit/runtime-gen/getlanguagetagvariants.js b/test/mjsunit/runtime-gen/getlanguagetagvariants.js
new file mode 100644 (file)
index 0000000..fdced6f
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _input = new Array();
+%GetLanguageTagVariants(_input);
diff --git a/test/mjsunit/runtime-gen/getlocalelementnames.js b/test/mjsunit/runtime-gen/getlocalelementnames.js
new file mode 100644 (file)
index 0000000..cf0447d
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _obj = new Object();
+%GetLocalElementNames(_obj);
diff --git a/test/mjsunit/runtime-gen/getlocalpropertynames.js b/test/mjsunit/runtime-gen/getlocalpropertynames.js
new file mode 100644 (file)
index 0000000..2a93868
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _obj = new Object();
+var _filter_value = 1;
+%GetLocalPropertyNames(_obj, _filter_value);
diff --git a/test/mjsunit/runtime-gen/getmicrotaskstate.js b/test/mjsunit/runtime-gen/getmicrotaskstate.js
new file mode 100644 (file)
index 0000000..e488205
--- /dev/null
@@ -0,0 +1,4 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+%GetMicrotaskState();
diff --git a/test/mjsunit/runtime-gen/getnamedinterceptorpropertynames.js b/test/mjsunit/runtime-gen/getnamedinterceptorpropertynames.js
new file mode 100644 (file)
index 0000000..30ebdcf
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _obj = new Object();
+%GetNamedInterceptorPropertyNames(_obj);
diff --git a/test/mjsunit/runtime-gen/getobservationstate.js b/test/mjsunit/runtime-gen/getobservationstate.js
new file mode 100644 (file)
index 0000000..4a2d8ee
--- /dev/null
@@ -0,0 +1,4 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+%GetObservationState();
diff --git a/test/mjsunit/runtime-gen/getoptimizationcount.js b/test/mjsunit/runtime-gen/getoptimizationcount.js
new file mode 100644 (file)
index 0000000..1979919
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _function = function() {};
+%GetOptimizationCount(_function);
diff --git a/test/mjsunit/runtime-gen/getoptimizationstatus.js b/test/mjsunit/runtime-gen/getoptimizationstatus.js
new file mode 100644 (file)
index 0000000..c386196
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _function = function() {};
+var _sync = "foo";
+%GetOptimizationStatus(_function, _sync);
diff --git a/test/mjsunit/runtime-gen/getownproperty.js b/test/mjsunit/runtime-gen/getownproperty.js
new file mode 100644 (file)
index 0000000..f864279
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _obj = new Object();
+var _name = "name";
+%GetOwnProperty(_obj, _name);
diff --git a/test/mjsunit/runtime-gen/getproperty.js b/test/mjsunit/runtime-gen/getproperty.js
new file mode 100644 (file)
index 0000000..66a49c8
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _object = new Object();
+var _key = new Object();
+%GetProperty(_object, _key);
diff --git a/test/mjsunit/runtime-gen/getpropertynames.js b/test/mjsunit/runtime-gen/getpropertynames.js
new file mode 100644 (file)
index 0000000..2a41896
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _object = new Object();
+%GetPropertyNames(_object);
diff --git a/test/mjsunit/runtime-gen/getpropertynamesfast.js b/test/mjsunit/runtime-gen/getpropertynamesfast.js
new file mode 100644 (file)
index 0000000..2fbe93c
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _raw_object = new Object();
+%GetPropertyNamesFast(_raw_object);
diff --git a/test/mjsunit/runtime-gen/getprototype.js b/test/mjsunit/runtime-gen/getprototype.js
new file mode 100644 (file)
index 0000000..c17be9c
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _obj = new Object();
+%GetPrototype(_obj);
diff --git a/test/mjsunit/runtime-gen/getrootnan.js b/test/mjsunit/runtime-gen/getrootnan.js
new file mode 100644 (file)
index 0000000..9acc60f
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+try {
+%GetRootNaN();
+} catch(e) {}
diff --git a/test/mjsunit/runtime-gen/getscopecount.js b/test/mjsunit/runtime-gen/getscopecount.js
new file mode 100644 (file)
index 0000000..f1d0a2c
--- /dev/null
@@ -0,0 +1,8 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _break_id = 32;
+var _wrapped_id = 1;
+try {
+%GetScopeCount(_break_id, _wrapped_id);
+} catch(e) {}
diff --git a/test/mjsunit/runtime-gen/getscopedetails.js b/test/mjsunit/runtime-gen/getscopedetails.js
new file mode 100644 (file)
index 0000000..e6aeb97
--- /dev/null
@@ -0,0 +1,10 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _break_id = 32;
+var _wrapped_id = 1;
+var _inlined_jsframe_index = 32;
+var _index = 32;
+try {
+%GetScopeDetails(_break_id, _wrapped_id, _inlined_jsframe_index, _index);
+} catch(e) {}
diff --git a/test/mjsunit/runtime-gen/getscript.js b/test/mjsunit/runtime-gen/getscript.js
new file mode 100644 (file)
index 0000000..9dbe491
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _script_name = "foo";
+%GetScript(_script_name);
diff --git a/test/mjsunit/runtime-gen/getstepinpositions.js b/test/mjsunit/runtime-gen/getstepinpositions.js
new file mode 100644 (file)
index 0000000..e5a442a
--- /dev/null
@@ -0,0 +1,8 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _break_id = 32;
+var _wrapped_id = 1;
+try {
+%GetStepInPositions(_break_id, _wrapped_id);
+} catch(e) {}
diff --git a/test/mjsunit/runtime-gen/gettemplatefield.js b/test/mjsunit/runtime-gen/gettemplatefield.js
new file mode 100644 (file)
index 0000000..1bf0ced
--- /dev/null
@@ -0,0 +1,8 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _templ = new Object();
+var _index = 1;
+try {
+%GetTemplateField(_templ, _index);
+} catch(e) {}
diff --git a/test/mjsunit/runtime-gen/getthreadcount.js b/test/mjsunit/runtime-gen/getthreadcount.js
new file mode 100644 (file)
index 0000000..0926cb6
--- /dev/null
@@ -0,0 +1,7 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _break_id = 32;
+try {
+%GetThreadCount(_break_id);
+} catch(e) {}
diff --git a/test/mjsunit/runtime-gen/getthreaddetails.js b/test/mjsunit/runtime-gen/getthreaddetails.js
new file mode 100644 (file)
index 0000000..7712cda
--- /dev/null
@@ -0,0 +1,8 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _break_id = 32;
+var _index = 32;
+try {
+%GetThreadDetails(_break_id, _index);
+} catch(e) {}
diff --git a/test/mjsunit/runtime-gen/getv8version.js b/test/mjsunit/runtime-gen/getv8version.js
new file mode 100644 (file)
index 0000000..05ca133
--- /dev/null
@@ -0,0 +1,4 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+%GetV8Version();
diff --git a/test/mjsunit/runtime-gen/globalprint.js b/test/mjsunit/runtime-gen/globalprint.js
new file mode 100644 (file)
index 0000000..bf4d7e9
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _string = "foo";
+%GlobalPrint(_string);
diff --git a/test/mjsunit/runtime-gen/globalreceiver.js b/test/mjsunit/runtime-gen/globalreceiver.js
new file mode 100644 (file)
index 0000000..332a334
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _global = new Object();
+%GlobalReceiver(_global);
diff --git a/test/mjsunit/runtime-gen/haselement.js b/test/mjsunit/runtime-gen/haselement.js
new file mode 100644 (file)
index 0000000..94dd9af
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _receiver = new Object();
+var _index = 1;
+%HasElement(_receiver, _index);
diff --git a/test/mjsunit/runtime-gen/haslocalproperty.js b/test/mjsunit/runtime-gen/haslocalproperty.js
new file mode 100644 (file)
index 0000000..066e6d1
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _object = new Object();
+var _key = "name";
+%HasLocalProperty(_object, _key);
diff --git a/test/mjsunit/runtime-gen/hasproperty.js b/test/mjsunit/runtime-gen/hasproperty.js
new file mode 100644 (file)
index 0000000..e9b5d97
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _receiver = new Object();
+var _key = "name";
+%HasProperty(_receiver, _key);
diff --git a/test/mjsunit/runtime-gen/havesamemap.js b/test/mjsunit/runtime-gen/havesamemap.js
new file mode 100644 (file)
index 0000000..54d5530
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _obj1 = new Object();
+var _obj2 = new Object();
+%HaveSameMap(_obj1, _obj2);
diff --git a/test/mjsunit/runtime-gen/ignoreattributesandsetproperty.js b/test/mjsunit/runtime-gen/ignoreattributesandsetproperty.js
new file mode 100644 (file)
index 0000000..0c82809
--- /dev/null
@@ -0,0 +1,8 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _object = new Object();
+var _name = "name";
+var _value = new Object();
+var _unchecked_value = 1;
+%IgnoreAttributesAndSetProperty(_object, _name, _value, _unchecked_value);
diff --git a/test/mjsunit/runtime-gen/initializevarglobal.js b/test/mjsunit/runtime-gen/initializevarglobal.js
new file mode 100644 (file)
index 0000000..ad42fdc
--- /dev/null
@@ -0,0 +1,7 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _name = "foo";
+var _strict_mode = 1;
+var _value = new Object();
+%InitializeVarGlobal(_name, _strict_mode, _value);
diff --git a/test/mjsunit/runtime-gen/internalcompare.js b/test/mjsunit/runtime-gen/internalcompare.js
new file mode 100644 (file)
index 0000000..02dd91e
--- /dev/null
@@ -0,0 +1,7 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var arg0 = %GetImplFromInitializedIntlObject(new Intl.Collator('en-US'));
+var _string1 = "foo";
+var _string2 = "foo";
+%InternalCompare(arg0, _string1, _string2);
diff --git a/test/mjsunit/runtime-gen/internaldateformat.js b/test/mjsunit/runtime-gen/internaldateformat.js
new file mode 100644 (file)
index 0000000..e3bdce6
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var arg0 = %GetImplFromInitializedIntlObject(new Intl.DateTimeFormat('en-US'));
+var _date = new Date();
+%InternalDateFormat(arg0, _date);
diff --git a/test/mjsunit/runtime-gen/internaldateparse.js b/test/mjsunit/runtime-gen/internaldateparse.js
new file mode 100644 (file)
index 0000000..7bf57a6
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var arg0 = %GetImplFromInitializedIntlObject(new Intl.DateTimeFormat('en-US'));
+var _date_string = "foo";
+%InternalDateParse(arg0, _date_string);
diff --git a/test/mjsunit/runtime-gen/internalnumberformat.js b/test/mjsunit/runtime-gen/internalnumberformat.js
new file mode 100644 (file)
index 0000000..e2634ac
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var arg0 = %GetImplFromInitializedIntlObject(new Intl.NumberFormat('en-US'));
+var _number = new Object();
+%InternalNumberFormat(arg0, _number);
diff --git a/test/mjsunit/runtime-gen/internalnumberparse.js b/test/mjsunit/runtime-gen/internalnumberparse.js
new file mode 100644 (file)
index 0000000..d3f8097
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var arg0 = %GetImplFromInitializedIntlObject(new Intl.NumberFormat('en-US'));
+var _number_string = "foo";
+%InternalNumberParse(arg0, _number_string);
diff --git a/test/mjsunit/runtime-gen/isattachedglobal.js b/test/mjsunit/runtime-gen/isattachedglobal.js
new file mode 100644 (file)
index 0000000..bd20076
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _global = new Object();
+%IsAttachedGlobal(_global);
diff --git a/test/mjsunit/runtime-gen/isbreakonexception.js b/test/mjsunit/runtime-gen/isbreakonexception.js
new file mode 100644 (file)
index 0000000..880bced
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _type_arg = 32;
+%IsBreakOnException(_type_arg);
diff --git a/test/mjsunit/runtime-gen/isconcurrentrecompilationsupported.js b/test/mjsunit/runtime-gen/isconcurrentrecompilationsupported.js
new file mode 100644 (file)
index 0000000..8cbe7b7
--- /dev/null
@@ -0,0 +1,4 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+%IsConcurrentRecompilationSupported();
diff --git a/test/mjsunit/runtime-gen/isextensible.js b/test/mjsunit/runtime-gen/isextensible.js
new file mode 100644 (file)
index 0000000..a64e477
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _obj = new Object();
+%IsExtensible(_obj);
diff --git a/test/mjsunit/runtime-gen/isinitializedintlobject.js b/test/mjsunit/runtime-gen/isinitializedintlobject.js
new file mode 100644 (file)
index 0000000..f0b7d3e
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _input = new Object();
+%IsInitializedIntlObject(_input);
diff --git a/test/mjsunit/runtime-gen/isinitializedintlobjectoftype.js b/test/mjsunit/runtime-gen/isinitializedintlobjectoftype.js
new file mode 100644 (file)
index 0000000..752b200
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _input = new Object();
+var _expected_type = "foo";
+%IsInitializedIntlObjectOfType(_input, _expected_type);
diff --git a/test/mjsunit/runtime-gen/isinprototypechain.js b/test/mjsunit/runtime-gen/isinprototypechain.js
new file mode 100644 (file)
index 0000000..fbc476b
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _O = new Object();
+var _V = new Object();
+%IsInPrototypeChain(_O, _V);
diff --git a/test/mjsunit/runtime-gen/isjsfunctionproxy.js b/test/mjsunit/runtime-gen/isjsfunctionproxy.js
new file mode 100644 (file)
index 0000000..699be03
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _obj = new Object();
+%IsJSFunctionProxy(_obj);
diff --git a/test/mjsunit/runtime-gen/isjsglobalproxy.js b/test/mjsunit/runtime-gen/isjsglobalproxy.js
new file mode 100644 (file)
index 0000000..6bcc768
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _obj = new Object();
+%IsJSGlobalProxy(_obj);
diff --git a/test/mjsunit/runtime-gen/isjsmodule.js b/test/mjsunit/runtime-gen/isjsmodule.js
new file mode 100644 (file)
index 0000000..577b470
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _obj = new Object();
+%IsJSModule(_obj);
diff --git a/test/mjsunit/runtime-gen/isjsproxy.js b/test/mjsunit/runtime-gen/isjsproxy.js
new file mode 100644 (file)
index 0000000..477dacc
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _obj = new Object();
+%IsJSProxy(_obj);
diff --git a/test/mjsunit/runtime-gen/isobserved.js b/test/mjsunit/runtime-gen/isobserved.js
new file mode 100644 (file)
index 0000000..cab9a9b
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _obj = new Object();
+%IsObserved(_obj);
diff --git a/test/mjsunit/runtime-gen/ispropertyenumerable.js b/test/mjsunit/runtime-gen/ispropertyenumerable.js
new file mode 100644 (file)
index 0000000..ea1b4e2
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _object = new Object();
+var _key = "name";
+%IsPropertyEnumerable(_object, _key);
diff --git a/test/mjsunit/runtime-gen/issloppymodefunction.js b/test/mjsunit/runtime-gen/issloppymodefunction.js
new file mode 100644 (file)
index 0000000..16cfe89
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var arg0 = function() {};
+%IsSloppyModeFunction(arg0);
diff --git a/test/mjsunit/runtime-gen/istemplate.js b/test/mjsunit/runtime-gen/istemplate.js
new file mode 100644 (file)
index 0000000..582967f
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _arg = new Object();
+%IsTemplate(_arg);
diff --git a/test/mjsunit/runtime-gen/isvalidsmi.js b/test/mjsunit/runtime-gen/isvalidsmi.js
new file mode 100644 (file)
index 0000000..9bd5b47
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _number = 32;
+%IsValidSmi(_number);
diff --git a/test/mjsunit/runtime-gen/keyedgetproperty.js b/test/mjsunit/runtime-gen/keyedgetproperty.js
new file mode 100644 (file)
index 0000000..df199ab
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _receiver_obj = new Object();
+var _key_obj = new Object();
+%KeyedGetProperty(_receiver_obj, _key_obj);
diff --git a/test/mjsunit/runtime-gen/liveeditcheckanddropactivations.js b/test/mjsunit/runtime-gen/liveeditcheckanddropactivations.js
new file mode 100644 (file)
index 0000000..8c435f1
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _shared_array = new Array();
+var _do_drop = true;
+%LiveEditCheckAndDropActivations(_shared_array, _do_drop);
diff --git a/test/mjsunit/runtime-gen/liveeditcomparestrings.js b/test/mjsunit/runtime-gen/liveeditcomparestrings.js
new file mode 100644 (file)
index 0000000..1b66738
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _s1 = "foo";
+var _s2 = "foo";
+%LiveEditCompareStrings(_s1, _s2);
diff --git a/test/mjsunit/runtime-gen/liveeditfindsharedfunctioninfosforscript.js b/test/mjsunit/runtime-gen/liveeditfindsharedfunctioninfosforscript.js
new file mode 100644 (file)
index 0000000..ebbc3ab
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var arg0 = %DebugGetLoadedScripts()[1];
+%LiveEditFindSharedFunctionInfosForScript(arg0);
diff --git a/test/mjsunit/runtime-gen/liveeditfunctionsetscript.js b/test/mjsunit/runtime-gen/liveeditfunctionsetscript.js
new file mode 100644 (file)
index 0000000..3f50b11
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _function_object = new Object();
+var _script_object = new Object();
+%LiveEditFunctionSetScript(_function_object, _script_object);
diff --git a/test/mjsunit/runtime-gen/liveeditfunctionsourceupdated.js b/test/mjsunit/runtime-gen/liveeditfunctionsourceupdated.js
new file mode 100644 (file)
index 0000000..b3b23f3
--- /dev/null
@@ -0,0 +1,7 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _shared_info = new Array();
+try {
+%LiveEditFunctionSourceUpdated(_shared_info);
+} catch(e) {}
diff --git a/test/mjsunit/runtime-gen/liveeditgathercompileinfo.js b/test/mjsunit/runtime-gen/liveeditgathercompileinfo.js
new file mode 100644 (file)
index 0000000..d52093e
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var arg0 = %DebugGetLoadedScripts()[1];
+var _source = "foo";
+%LiveEditGatherCompileInfo(arg0, _source);
diff --git a/test/mjsunit/runtime-gen/liveeditpatchfunctionpositions.js b/test/mjsunit/runtime-gen/liveeditpatchfunctionpositions.js
new file mode 100644 (file)
index 0000000..3dba14a
--- /dev/null
@@ -0,0 +1,8 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _shared_array = new Array();
+var _position_change_array = new Array();
+try {
+%LiveEditPatchFunctionPositions(_shared_array, _position_change_array);
+} catch(e) {}
diff --git a/test/mjsunit/runtime-gen/liveeditreplacefunctioncode.js b/test/mjsunit/runtime-gen/liveeditreplacefunctioncode.js
new file mode 100644 (file)
index 0000000..72bf89e
--- /dev/null
@@ -0,0 +1,8 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _new_compile_info = new Array();
+var _shared_info = new Array();
+try {
+%LiveEditReplaceFunctionCode(_new_compile_info, _shared_info);
+} catch(e) {}
diff --git a/test/mjsunit/runtime-gen/liveeditreplacereftonestedfunction.js b/test/mjsunit/runtime-gen/liveeditreplacereftonestedfunction.js
new file mode 100644 (file)
index 0000000..55b01b1
--- /dev/null
@@ -0,0 +1,9 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _parent_wrapper = new String('foo');
+var _orig_wrapper = new String('foo');
+var _subst_wrapper = new String('foo');
+try {
+%LiveEditReplaceRefToNestedFunction(_parent_wrapper, _orig_wrapper, _subst_wrapper);
+} catch(e) {}
diff --git a/test/mjsunit/runtime-gen/liveeditrestartframe.js b/test/mjsunit/runtime-gen/liveeditrestartframe.js
new file mode 100644 (file)
index 0000000..bdd7791
--- /dev/null
@@ -0,0 +1,8 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _break_id = 32;
+var _index = 32;
+try {
+%LiveEditRestartFrame(_break_id, _index);
+} catch(e) {}
diff --git a/test/mjsunit/runtime-gen/loadmutabledouble.js b/test/mjsunit/runtime-gen/loadmutabledouble.js
new file mode 100644 (file)
index 0000000..7864bcd
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var arg0 = {foo: 1.2};
+var _index = 1;
+%LoadMutableDouble(arg0, _index);
diff --git a/test/mjsunit/runtime-gen/localkeys.js b/test/mjsunit/runtime-gen/localkeys.js
new file mode 100644 (file)
index 0000000..0186177
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _raw_object = new Object();
+%LocalKeys(_raw_object);
diff --git a/test/mjsunit/runtime-gen/lookupaccessor.js b/test/mjsunit/runtime-gen/lookupaccessor.js
new file mode 100644 (file)
index 0000000..42ac82a
--- /dev/null
@@ -0,0 +1,7 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _receiver = new Object();
+var _name = "name";
+var _flag = 1;
+%LookupAccessor(_receiver, _name, _flag);
diff --git a/test/mjsunit/runtime-gen/mapclear.js b/test/mjsunit/runtime-gen/mapclear.js
new file mode 100644 (file)
index 0000000..1e1b0e7
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _holder = new Map();
+%MapClear(_holder);
diff --git a/test/mjsunit/runtime-gen/mapcreateiterator.js b/test/mjsunit/runtime-gen/mapcreateiterator.js
new file mode 100644 (file)
index 0000000..efc030c
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _holder = new Map();
+var _kind = 1;
+%MapCreateIterator(_holder, _kind);
diff --git a/test/mjsunit/runtime-gen/mapdelete.js b/test/mjsunit/runtime-gen/mapdelete.js
new file mode 100644 (file)
index 0000000..995dee1
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _holder = new Map();
+var _key = new Object();
+%MapDelete(_holder, _key);
diff --git a/test/mjsunit/runtime-gen/mapget.js b/test/mjsunit/runtime-gen/mapget.js
new file mode 100644 (file)
index 0000000..6a88b6e
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _holder = new Map();
+var _key = new Object();
+%MapGet(_holder, _key);
diff --git a/test/mjsunit/runtime-gen/mapgetsize.js b/test/mjsunit/runtime-gen/mapgetsize.js
new file mode 100644 (file)
index 0000000..be25087
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _holder = new Map();
+%MapGetSize(_holder);
diff --git a/test/mjsunit/runtime-gen/maphas.js b/test/mjsunit/runtime-gen/maphas.js
new file mode 100644 (file)
index 0000000..9b804ba
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _holder = new Map();
+var _key = new Object();
+%MapHas(_holder, _key);
diff --git a/test/mjsunit/runtime-gen/mapinitialize.js b/test/mjsunit/runtime-gen/mapinitialize.js
new file mode 100644 (file)
index 0000000..5149abf
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _holder = new Map();
+%MapInitialize(_holder);
diff --git a/test/mjsunit/runtime-gen/mapiteratorclose.js b/test/mjsunit/runtime-gen/mapiteratorclose.js
new file mode 100644 (file)
index 0000000..7102384
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _holder = %MapCreateIterator(new Map(), 3);
+%MapIteratorClose(_holder);
diff --git a/test/mjsunit/runtime-gen/mapiteratornext.js b/test/mjsunit/runtime-gen/mapiteratornext.js
new file mode 100644 (file)
index 0000000..ae979bd
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _holder = %MapCreateIterator(new Map(), 3);
+%MapIteratorNext(_holder);
diff --git a/test/mjsunit/runtime-gen/mapset.js b/test/mjsunit/runtime-gen/mapset.js
new file mode 100644 (file)
index 0000000..75a5ad2
--- /dev/null
@@ -0,0 +1,7 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _holder = new Map();
+var _key = new Object();
+var _value = new Object();
+%MapSet(_holder, _key, _value);
diff --git a/test/mjsunit/runtime-gen/markasinitializedintlobjectoftype.js b/test/mjsunit/runtime-gen/markasinitializedintlobjectoftype.js
new file mode 100644 (file)
index 0000000..ddf2da3
--- /dev/null
@@ -0,0 +1,7 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _input = new Object();
+var _type = "foo";
+var _impl = new Object();
+%MarkAsInitializedIntlObjectOfType(_input, _type, _impl);
diff --git a/test/mjsunit/runtime-gen/mathatan2.js b/test/mjsunit/runtime-gen/mathatan2.js
new file mode 100644 (file)
index 0000000..0938e78
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _x = 1.5;
+var _y = 1.5;
+%MathAtan2(_x, _y);
diff --git a/test/mjsunit/runtime-gen/mathexp.js b/test/mjsunit/runtime-gen/mathexp.js
new file mode 100644 (file)
index 0000000..828f624
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _x = 1.5;
+%MathExp(_x);
diff --git a/test/mjsunit/runtime-gen/mathfloor.js b/test/mjsunit/runtime-gen/mathfloor.js
new file mode 100644 (file)
index 0000000..705c497
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _x = 1.5;
+%MathFloor(_x);
diff --git a/test/mjsunit/runtime-gen/mathfround.js b/test/mjsunit/runtime-gen/mathfround.js
new file mode 100644 (file)
index 0000000..1531529
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _x = 1.5;
+%MathFround(_x);
diff --git a/test/mjsunit/runtime-gen/mathsqrt.js b/test/mjsunit/runtime-gen/mathsqrt.js
new file mode 100644 (file)
index 0000000..9da0cae
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _x = 1.5;
+%_MathSqrt(_x);
diff --git a/test/mjsunit/runtime-gen/maxsmi.js b/test/mjsunit/runtime-gen/maxsmi.js
new file mode 100644 (file)
index 0000000..8b11e48
--- /dev/null
@@ -0,0 +1,4 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+%_MaxSmi();
diff --git a/test/mjsunit/runtime-gen/movearraycontents.js b/test/mjsunit/runtime-gen/movearraycontents.js
new file mode 100644 (file)
index 0000000..74c2ab0
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _from = new Array();
+var _to = new Array();
+%MoveArrayContents(_from, _to);
diff --git a/test/mjsunit/runtime-gen/neveroptimizefunction.js b/test/mjsunit/runtime-gen/neveroptimizefunction.js
new file mode 100644 (file)
index 0000000..4cbb9ce
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _function = function() {};
+%NeverOptimizeFunction(_function);
diff --git a/test/mjsunit/runtime-gen/newobjectfrombound.js b/test/mjsunit/runtime-gen/newobjectfrombound.js
new file mode 100644 (file)
index 0000000..e18e7cb
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var arg0 = (function() {}).bind({});
+%NewObjectFromBound(arg0);
diff --git a/test/mjsunit/runtime-gen/newstring.js b/test/mjsunit/runtime-gen/newstring.js
new file mode 100644 (file)
index 0000000..51fb421
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _length = 1;
+var _is_one_byte = true;
+%NewString(_length, _is_one_byte);
diff --git a/test/mjsunit/runtime-gen/newstringwrapper.js b/test/mjsunit/runtime-gen/newstringwrapper.js
new file mode 100644 (file)
index 0000000..5339304
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _value = "foo";
+%NewStringWrapper(_value);
diff --git a/test/mjsunit/runtime-gen/newsymbolwrapper.js b/test/mjsunit/runtime-gen/newsymbolwrapper.js
new file mode 100644 (file)
index 0000000..d860226
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _symbol = Symbol("symbol");
+%NewSymbolWrapper(_symbol);
diff --git a/test/mjsunit/runtime-gen/notifycontextdisposed.js b/test/mjsunit/runtime-gen/notifycontextdisposed.js
new file mode 100644 (file)
index 0000000..96933d5
--- /dev/null
@@ -0,0 +1,4 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+%NotifyContextDisposed();
diff --git a/test/mjsunit/runtime-gen/numberadd.js b/test/mjsunit/runtime-gen/numberadd.js
new file mode 100644 (file)
index 0000000..2c7c3ef
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _x = 1.5;
+var _y = 1.5;
+%NumberAdd(_x, _y);
diff --git a/test/mjsunit/runtime-gen/numberand.js b/test/mjsunit/runtime-gen/numberand.js
new file mode 100644 (file)
index 0000000..b4b5ef2
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _x = 32;
+var _y = 32;
+%NumberAnd(_x, _y);
diff --git a/test/mjsunit/runtime-gen/numbercompare.js b/test/mjsunit/runtime-gen/numbercompare.js
new file mode 100644 (file)
index 0000000..ddf3140
--- /dev/null
@@ -0,0 +1,7 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _x = 1.5;
+var _y = 1.5;
+var _uncomparable_result = new Object();
+%NumberCompare(_x, _y, _uncomparable_result);
diff --git a/test/mjsunit/runtime-gen/numberdiv.js b/test/mjsunit/runtime-gen/numberdiv.js
new file mode 100644 (file)
index 0000000..f92fa01
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _x = 1.5;
+var _y = 1.5;
+%NumberDiv(_x, _y);
diff --git a/test/mjsunit/runtime-gen/numberequals.js b/test/mjsunit/runtime-gen/numberequals.js
new file mode 100644 (file)
index 0000000..3400a31
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _x = 1.5;
+var _y = 1.5;
+%NumberEquals(_x, _y);
diff --git a/test/mjsunit/runtime-gen/numberimul.js b/test/mjsunit/runtime-gen/numberimul.js
new file mode 100644 (file)
index 0000000..eefd909
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _x = 32;
+var _y = 32;
+%NumberImul(_x, _y);
diff --git a/test/mjsunit/runtime-gen/numbermod.js b/test/mjsunit/runtime-gen/numbermod.js
new file mode 100644 (file)
index 0000000..517afe2
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _x = 1.5;
+var _y = 1.5;
+%NumberMod(_x, _y);
diff --git a/test/mjsunit/runtime-gen/numbermul.js b/test/mjsunit/runtime-gen/numbermul.js
new file mode 100644 (file)
index 0000000..a48e4a5
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _x = 1.5;
+var _y = 1.5;
+%NumberMul(_x, _y);
diff --git a/test/mjsunit/runtime-gen/numberor.js b/test/mjsunit/runtime-gen/numberor.js
new file mode 100644 (file)
index 0000000..463a3bf
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _x = 32;
+var _y = 32;
+%NumberOr(_x, _y);
diff --git a/test/mjsunit/runtime-gen/numbersar.js b/test/mjsunit/runtime-gen/numbersar.js
new file mode 100644 (file)
index 0000000..b45ce68
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _x = 32;
+var _y = 32;
+%NumberSar(_x, _y);
diff --git a/test/mjsunit/runtime-gen/numbershl.js b/test/mjsunit/runtime-gen/numbershl.js
new file mode 100644 (file)
index 0000000..ee3acec
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _x = 32;
+var _y = 32;
+%NumberShl(_x, _y);
diff --git a/test/mjsunit/runtime-gen/numbershr.js b/test/mjsunit/runtime-gen/numbershr.js
new file mode 100644 (file)
index 0000000..6cb706a
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _x = 32;
+var _y = 32;
+%NumberShr(_x, _y);
diff --git a/test/mjsunit/runtime-gen/numbersub.js b/test/mjsunit/runtime-gen/numbersub.js
new file mode 100644 (file)
index 0000000..bf387f5
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _x = 1.5;
+var _y = 1.5;
+%NumberSub(_x, _y);
diff --git a/test/mjsunit/runtime-gen/numbertoexponential.js b/test/mjsunit/runtime-gen/numbertoexponential.js
new file mode 100644 (file)
index 0000000..21468b4
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _value = 1.5;
+var _f_number = 1.5;
+%NumberToExponential(_value, _f_number);
diff --git a/test/mjsunit/runtime-gen/numbertofixed.js b/test/mjsunit/runtime-gen/numbertofixed.js
new file mode 100644 (file)
index 0000000..ac398d0
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _value = 1.5;
+var _f_number = 1.5;
+%NumberToFixed(_value, _f_number);
diff --git a/test/mjsunit/runtime-gen/numbertointeger.js b/test/mjsunit/runtime-gen/numbertointeger.js
new file mode 100644 (file)
index 0000000..8c66518
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _number = 1.5;
+%NumberToInteger(_number);
diff --git a/test/mjsunit/runtime-gen/numbertointegermapminuszero.js b/test/mjsunit/runtime-gen/numbertointegermapminuszero.js
new file mode 100644 (file)
index 0000000..395a952
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _number = 1.5;
+%NumberToIntegerMapMinusZero(_number);
diff --git a/test/mjsunit/runtime-gen/numbertojsint32.js b/test/mjsunit/runtime-gen/numbertojsint32.js
new file mode 100644 (file)
index 0000000..31efee6
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _number = 1.5;
+%NumberToJSInt32(_number);
diff --git a/test/mjsunit/runtime-gen/numbertojsuint32.js b/test/mjsunit/runtime-gen/numbertojsuint32.js
new file mode 100644 (file)
index 0000000..657ae21
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _number = 32;
+%NumberToJSUint32(_number);
diff --git a/test/mjsunit/runtime-gen/numbertoprecision.js b/test/mjsunit/runtime-gen/numbertoprecision.js
new file mode 100644 (file)
index 0000000..4775200
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _value = 1.5;
+var _f_number = 1.5;
+%NumberToPrecision(_value, _f_number);
diff --git a/test/mjsunit/runtime-gen/numbertoradixstring.js b/test/mjsunit/runtime-gen/numbertoradixstring.js
new file mode 100644 (file)
index 0000000..6a90cd9
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _value = 1.5;
+var arg1 = 2;
+%NumberToRadixString(_value, arg1);
diff --git a/test/mjsunit/runtime-gen/numberunaryminus.js b/test/mjsunit/runtime-gen/numberunaryminus.js
new file mode 100644 (file)
index 0000000..c334b9d
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _x = 1.5;
+%NumberUnaryMinus(_x);
diff --git a/test/mjsunit/runtime-gen/numberxor.js b/test/mjsunit/runtime-gen/numberxor.js
new file mode 100644 (file)
index 0000000..6c71065
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _x = 32;
+var _y = 32;
+%NumberXor(_x, _y);
diff --git a/test/mjsunit/runtime-gen/objectfreeze.js b/test/mjsunit/runtime-gen/objectfreeze.js
new file mode 100644 (file)
index 0000000..84ee4aa
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _object = new Object();
+%ObjectFreeze(_object);
diff --git a/test/mjsunit/runtime-gen/objectgetnotifierinobjectcontext.js b/test/mjsunit/runtime-gen/objectgetnotifierinobjectcontext.js
new file mode 100644 (file)
index 0000000..9902c53
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _object = new Object();
+%ObjectGetNotifierInObjectContext(_object);
diff --git a/test/mjsunit/runtime-gen/objectnotifierperformchangeinobjectcontext.js b/test/mjsunit/runtime-gen/objectnotifierperformchangeinobjectcontext.js
new file mode 100644 (file)
index 0000000..b5abd32
--- /dev/null
@@ -0,0 +1,7 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _object_info = new Object();
+var _change_type = "foo";
+var _change_fn = function() {};
+%ObjectNotifierPerformChangeInObjectContext(_object_info, _change_type, _change_fn);
diff --git a/test/mjsunit/runtime-gen/objectobserveinobjectcontext.js b/test/mjsunit/runtime-gen/objectobserveinobjectcontext.js
new file mode 100644 (file)
index 0000000..55993c8
--- /dev/null
@@ -0,0 +1,7 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _object = new Object();
+var _callback = function() {};
+var _accept = new Object();
+%ObjectObserveInObjectContext(_object, _callback, _accept);
diff --git a/test/mjsunit/runtime-gen/objectwascreatedincurrentorigin.js b/test/mjsunit/runtime-gen/objectwascreatedincurrentorigin.js
new file mode 100644 (file)
index 0000000..a819868
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _object = new Object();
+%ObjectWasCreatedInCurrentOrigin(_object);
diff --git a/test/mjsunit/runtime-gen/observationweakmapcreate.js b/test/mjsunit/runtime-gen/observationweakmapcreate.js
new file mode 100644 (file)
index 0000000..e744254
--- /dev/null
@@ -0,0 +1,4 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+%ObservationWeakMapCreate();
diff --git a/test/mjsunit/runtime-gen/observerobjectandrecordhavesameorigin.js b/test/mjsunit/runtime-gen/observerobjectandrecordhavesameorigin.js
new file mode 100644 (file)
index 0000000..7f41cd0
--- /dev/null
@@ -0,0 +1,7 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _observer = function() {};
+var _object = new Object();
+var _record = new Object();
+%ObserverObjectAndRecordHaveSameOrigin(_observer, _object, _record);
diff --git a/test/mjsunit/runtime-gen/optimizefunctiononnextcall.js b/test/mjsunit/runtime-gen/optimizefunctiononnextcall.js
new file mode 100644 (file)
index 0000000..435c4ce
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _function = function() {};
+var _type = "foo";
+%OptimizeFunctionOnNextCall(_function, _type);
diff --git a/test/mjsunit/runtime-gen/optimizeobjectforaddingmultipleproperties.js b/test/mjsunit/runtime-gen/optimizeobjectforaddingmultipleproperties.js
new file mode 100644 (file)
index 0000000..f394fbf
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _object = new Object();
+var _properties = 1;
+%OptimizeObjectForAddingMultipleProperties(_object, _properties);
diff --git a/test/mjsunit/runtime-gen/parsejson.js b/test/mjsunit/runtime-gen/parsejson.js
new file mode 100644 (file)
index 0000000..062520c
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var arg0 = "{}";
+%ParseJson(arg0);
diff --git a/test/mjsunit/runtime-gen/preventextensions.js b/test/mjsunit/runtime-gen/preventextensions.js
new file mode 100644 (file)
index 0000000..d3abed5
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _obj = new Object();
+%PreventExtensions(_obj);
diff --git a/test/mjsunit/runtime-gen/pushifabsent.js b/test/mjsunit/runtime-gen/pushifabsent.js
new file mode 100644 (file)
index 0000000..a139caf
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _array = new Array();
+var _element = new Object();
+%PushIfAbsent(_array, _element);
diff --git a/test/mjsunit/runtime-gen/quotejsonstring.js b/test/mjsunit/runtime-gen/quotejsonstring.js
new file mode 100644 (file)
index 0000000..02ed21f
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _string = "foo";
+%QuoteJSONString(_string);
diff --git a/test/mjsunit/runtime-gen/regexpcompile.js b/test/mjsunit/runtime-gen/regexpcompile.js
new file mode 100644 (file)
index 0000000..ba51a62
--- /dev/null
@@ -0,0 +1,7 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _re = /ab/g;
+var _pattern = "foo";
+var _flags = "foo";
+%RegExpCompile(_re, _pattern, _flags);
diff --git a/test/mjsunit/runtime-gen/regexpexecmultiple.js b/test/mjsunit/runtime-gen/regexpexecmultiple.js
new file mode 100644 (file)
index 0000000..feab2a6
--- /dev/null
@@ -0,0 +1,8 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _regexp = /ab/g;
+var _subject = "foo";
+var arg2 = ['a'];
+var arg3 = ['a'];
+%RegExpExecMultiple(_regexp, _subject, arg2, arg3);
diff --git a/test/mjsunit/runtime-gen/regexpinitializeobject.js b/test/mjsunit/runtime-gen/regexpinitializeobject.js
new file mode 100644 (file)
index 0000000..538e4da
--- /dev/null
@@ -0,0 +1,9 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _regexp = /ab/g;
+var _source = "foo";
+var _global = new Object();
+var _ignoreCase = new Object();
+var _multiline = new Object();
+%RegExpInitializeObject(_regexp, _source, _global, _ignoreCase, _multiline);
diff --git a/test/mjsunit/runtime-gen/removearrayholes.js b/test/mjsunit/runtime-gen/removearrayholes.js
new file mode 100644 (file)
index 0000000..c70e10b
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _object = new Object();
+var _limit = 32;
+%RemoveArrayHoles(_object, _limit);
diff --git a/test/mjsunit/runtime-gen/roundnumber.js b/test/mjsunit/runtime-gen/roundnumber.js
new file mode 100644 (file)
index 0000000..a0f4d45
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _input = 1.5;
+%RoundNumber(_input);
diff --git a/test/mjsunit/runtime-gen/runmicrotasks.js b/test/mjsunit/runtime-gen/runmicrotasks.js
new file mode 100644 (file)
index 0000000..7661406
--- /dev/null
@@ -0,0 +1,4 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+%RunMicrotasks();
diff --git a/test/mjsunit/runtime-gen/runninginsimulator.js b/test/mjsunit/runtime-gen/runninginsimulator.js
new file mode 100644 (file)
index 0000000..c7a7112
--- /dev/null
@@ -0,0 +1,4 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+%RunningInSimulator();
diff --git a/test/mjsunit/runtime-gen/setaccessorproperty.js b/test/mjsunit/runtime-gen/setaccessorproperty.js
new file mode 100644 (file)
index 0000000..1f805f7
--- /dev/null
@@ -0,0 +1,10 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _object = new Object();
+var _name = "name";
+var arg2 = undefined;
+var arg3 = undefined;
+var _attribute = 1;
+var _access_control = 1;
+%SetAccessorProperty(_object, _name, arg2, arg3, _attribute, _access_control);
diff --git a/test/mjsunit/runtime-gen/setadd.js b/test/mjsunit/runtime-gen/setadd.js
new file mode 100644 (file)
index 0000000..87e30e1
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _holder = new Set();
+var _key = new Object();
+%SetAdd(_holder, _key);
diff --git a/test/mjsunit/runtime-gen/setclear.js b/test/mjsunit/runtime-gen/setclear.js
new file mode 100644 (file)
index 0000000..f37ad51
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _holder = new Set();
+%SetClear(_holder);
diff --git a/test/mjsunit/runtime-gen/setcode.js b/test/mjsunit/runtime-gen/setcode.js
new file mode 100644 (file)
index 0000000..464e0f9
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _target = function() {};
+var _source = function() {};
+%SetCode(_target, _source);
diff --git a/test/mjsunit/runtime-gen/setcreateiterator.js b/test/mjsunit/runtime-gen/setcreateiterator.js
new file mode 100644 (file)
index 0000000..f180784
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _holder = new Set();
+var arg1 = 2;
+%SetCreateIterator(_holder, arg1);
diff --git a/test/mjsunit/runtime-gen/setdebugeventlistener.js b/test/mjsunit/runtime-gen/setdebugeventlistener.js
new file mode 100644 (file)
index 0000000..85f583c
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var arg0 = undefined;
+var _data = new Object();
+%SetDebugEventListener(arg0, _data);
diff --git a/test/mjsunit/runtime-gen/setdelete.js b/test/mjsunit/runtime-gen/setdelete.js
new file mode 100644 (file)
index 0000000..f9790a8
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _holder = new Set();
+var _key = new Object();
+%SetDelete(_holder, _key);
diff --git a/test/mjsunit/runtime-gen/setdisablebreak.js b/test/mjsunit/runtime-gen/setdisablebreak.js
new file mode 100644 (file)
index 0000000..2b716b9
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _disable_break = true;
+%SetDisableBreak(_disable_break);
diff --git a/test/mjsunit/runtime-gen/setexpectednumberofproperties.js b/test/mjsunit/runtime-gen/setexpectednumberofproperties.js
new file mode 100644 (file)
index 0000000..0a0e6ed
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _func = function() {};
+var _num = 1;
+%SetExpectedNumberOfProperties(_func, _num);
diff --git a/test/mjsunit/runtime-gen/setflags.js b/test/mjsunit/runtime-gen/setflags.js
new file mode 100644 (file)
index 0000000..b75f25d
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _arg = "foo";
+%SetFlags(_arg);
diff --git a/test/mjsunit/runtime-gen/setfunctionbreakpoint.js b/test/mjsunit/runtime-gen/setfunctionbreakpoint.js
new file mode 100644 (file)
index 0000000..1fc3516
--- /dev/null
@@ -0,0 +1,7 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _function = function() {};
+var arg1 = 200;
+var _break_point_object_arg = new Object();
+%SetFunctionBreakPoint(_function, arg1, _break_point_object_arg);
diff --git a/test/mjsunit/runtime-gen/setgetsize.js b/test/mjsunit/runtime-gen/setgetsize.js
new file mode 100644 (file)
index 0000000..f6d3c27
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _holder = new Set();
+%SetGetSize(_holder);
diff --git a/test/mjsunit/runtime-gen/sethas.js b/test/mjsunit/runtime-gen/sethas.js
new file mode 100644 (file)
index 0000000..76aa7c0
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _holder = new Set();
+var _key = new Object();
+%SetHas(_holder, _key);
diff --git a/test/mjsunit/runtime-gen/sethiddenproperty.js b/test/mjsunit/runtime-gen/sethiddenproperty.js
new file mode 100644 (file)
index 0000000..305046a
--- /dev/null
@@ -0,0 +1,7 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _object = new Object();
+var _key = "foo";
+var _value = new Object();
+%SetHiddenProperty(_object, _key, _value);
diff --git a/test/mjsunit/runtime-gen/setinitialize.js b/test/mjsunit/runtime-gen/setinitialize.js
new file mode 100644 (file)
index 0000000..585529c
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _holder = new Set();
+%SetInitialize(_holder);
diff --git a/test/mjsunit/runtime-gen/setinlinebuiltinflag.js b/test/mjsunit/runtime-gen/setinlinebuiltinflag.js
new file mode 100644 (file)
index 0000000..bbcaf96
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _object = new Object();
+%SetInlineBuiltinFlag(_object);
diff --git a/test/mjsunit/runtime-gen/setisobserved.js b/test/mjsunit/runtime-gen/setisobserved.js
new file mode 100644 (file)
index 0000000..f194de8
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _obj = new Object();
+%SetIsObserved(_obj);
diff --git a/test/mjsunit/runtime-gen/setiteratorclose.js b/test/mjsunit/runtime-gen/setiteratorclose.js
new file mode 100644 (file)
index 0000000..eff3bf6
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _holder = %SetCreateIterator(new Set(), 2);
+%SetIteratorClose(_holder);
diff --git a/test/mjsunit/runtime-gen/setiteratornext.js b/test/mjsunit/runtime-gen/setiteratornext.js
new file mode 100644 (file)
index 0000000..7c89266
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _holder = %SetCreateIterator(new Set(), 2);
+%SetIteratorNext(_holder);
diff --git a/test/mjsunit/runtime-gen/setmicrotaskpending.js b/test/mjsunit/runtime-gen/setmicrotaskpending.js
new file mode 100644 (file)
index 0000000..5844cc5
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _new_state = true;
+%SetMicrotaskPending(_new_state);
diff --git a/test/mjsunit/runtime-gen/setnativeflag.js b/test/mjsunit/runtime-gen/setnativeflag.js
new file mode 100644 (file)
index 0000000..60775ac
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _object = new Object();
+%SetNativeFlag(_object);
diff --git a/test/mjsunit/runtime-gen/setproperty.js b/test/mjsunit/runtime-gen/setproperty.js
new file mode 100644 (file)
index 0000000..bec3ad8
--- /dev/null
@@ -0,0 +1,9 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _object = new Object();
+var _key = new Object();
+var _value = new Object();
+var _unchecked_attributes = 1;
+var _strict_mode_arg = 1;
+%SetProperty(_object, _key, _value, _unchecked_attributes, _strict_mode_arg);
diff --git a/test/mjsunit/runtime-gen/setprototype.js b/test/mjsunit/runtime-gen/setprototype.js
new file mode 100644 (file)
index 0000000..05b2409
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _obj = new Object();
+var _prototype = new Object();
+%SetPrototype(_obj, _prototype);
diff --git a/test/mjsunit/runtime-gen/setscopevariablevalue.js b/test/mjsunit/runtime-gen/setscopevariablevalue.js
new file mode 100644 (file)
index 0000000..9ca03c5
--- /dev/null
@@ -0,0 +1,10 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _fun = function() {};
+var _wrapped_id = 1;
+var _inlined_jsframe_index = 32;
+var _index = 32;
+var _variable_name = "foo";
+var _new_value = new Object();
+%SetScopeVariableValue(_fun, _wrapped_id, _inlined_jsframe_index, _index, _variable_name, _new_value);
diff --git a/test/mjsunit/runtime-gen/setscriptbreakpoint.js b/test/mjsunit/runtime-gen/setscriptbreakpoint.js
new file mode 100644 (file)
index 0000000..f83ee79
--- /dev/null
@@ -0,0 +1,8 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var arg0 = %DebugGetLoadedScripts()[1];
+var _source_position = 32;
+var arg2 = 0;
+var _break_point_object_arg = new Object();
+%SetScriptBreakPoint(arg0, _source_position, arg2, _break_point_object_arg);
diff --git a/test/mjsunit/runtime-gen/smilexicographiccompare.js b/test/mjsunit/runtime-gen/smilexicographiccompare.js
new file mode 100644 (file)
index 0000000..d5a0bf5
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _x_value = 1;
+var _y_value = 1;
+%SmiLexicographicCompare(_x_value, _y_value);
diff --git a/test/mjsunit/runtime-gen/sparsejoinwithseparator.js b/test/mjsunit/runtime-gen/sparsejoinwithseparator.js
new file mode 100644 (file)
index 0000000..13e056b
--- /dev/null
@@ -0,0 +1,7 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _elements_array = new Array();
+var _array_length = 32;
+var _separator = "foo";
+%SparseJoinWithSeparator(_elements_array, _array_length, _separator);
diff --git a/test/mjsunit/runtime-gen/specialarrayfunctions.js b/test/mjsunit/runtime-gen/specialarrayfunctions.js
new file mode 100644 (file)
index 0000000..bdb40ee
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _holder = new Object();
+%SpecialArrayFunctions(_holder);
diff --git a/test/mjsunit/runtime-gen/stringbuilderconcat.js b/test/mjsunit/runtime-gen/stringbuilderconcat.js
new file mode 100644 (file)
index 0000000..a0bd41b
--- /dev/null
@@ -0,0 +1,7 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var arg0 = [1, 2, 3];
+var arg1 = 3;
+var _special = "foo";
+%StringBuilderConcat(arg0, arg1, _special);
diff --git a/test/mjsunit/runtime-gen/stringbuilderjoin.js b/test/mjsunit/runtime-gen/stringbuilderjoin.js
new file mode 100644 (file)
index 0000000..f0506c0
--- /dev/null
@@ -0,0 +1,7 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var arg0 = ['a', 'b'];
+var arg1 = 4;
+var _separator = "foo";
+%StringBuilderJoin(arg0, arg1, _separator);
diff --git a/test/mjsunit/runtime-gen/stringequals.js b/test/mjsunit/runtime-gen/stringequals.js
new file mode 100644 (file)
index 0000000..320a9a8
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _x = "foo";
+var _y = "foo";
+%StringEquals(_x, _y);
diff --git a/test/mjsunit/runtime-gen/stringindexof.js b/test/mjsunit/runtime-gen/stringindexof.js
new file mode 100644 (file)
index 0000000..5ee0e38
--- /dev/null
@@ -0,0 +1,7 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _sub = "foo";
+var _pat = "foo";
+var _index = new Object();
+%StringIndexOf(_sub, _pat, _index);
diff --git a/test/mjsunit/runtime-gen/stringlastindexof.js b/test/mjsunit/runtime-gen/stringlastindexof.js
new file mode 100644 (file)
index 0000000..1d142dd
--- /dev/null
@@ -0,0 +1,7 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _sub = "foo";
+var _pat = "foo";
+var _index = new Object();
+%StringLastIndexOf(_sub, _pat, _index);
diff --git a/test/mjsunit/runtime-gen/stringlocalecompare.js b/test/mjsunit/runtime-gen/stringlocalecompare.js
new file mode 100644 (file)
index 0000000..8c1fffc
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _str1 = "foo";
+var _str2 = "foo";
+%StringLocaleCompare(_str1, _str2);
diff --git a/test/mjsunit/runtime-gen/stringmatch.js b/test/mjsunit/runtime-gen/stringmatch.js
new file mode 100644 (file)
index 0000000..927a670
--- /dev/null
@@ -0,0 +1,7 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _subject = "foo";
+var _regexp = /ab/g;
+var arg2 = ['a', 'b'];
+%StringMatch(_subject, _regexp, arg2);
diff --git a/test/mjsunit/runtime-gen/stringnormalize.js b/test/mjsunit/runtime-gen/stringnormalize.js
new file mode 100644 (file)
index 0000000..85af3d6
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _stringValue = "foo";
+var arg1 = 2;
+%StringNormalize(_stringValue, arg1);
diff --git a/test/mjsunit/runtime-gen/stringparsefloat.js b/test/mjsunit/runtime-gen/stringparsefloat.js
new file mode 100644 (file)
index 0000000..b31eccf
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _subject = "foo";
+%StringParseFloat(_subject);
diff --git a/test/mjsunit/runtime-gen/stringparseint.js b/test/mjsunit/runtime-gen/stringparseint.js
new file mode 100644 (file)
index 0000000..66aa596
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _subject = "foo";
+var _radix = 32;
+%StringParseInt(_subject, _radix);
diff --git a/test/mjsunit/runtime-gen/stringreplaceglobalregexpwithstring.js b/test/mjsunit/runtime-gen/stringreplaceglobalregexpwithstring.js
new file mode 100644 (file)
index 0000000..d39134a
--- /dev/null
@@ -0,0 +1,8 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _subject = "foo";
+var _regexp = /ab/g;
+var _replacement = "foo";
+var arg3 = ['a'];
+%StringReplaceGlobalRegExpWithString(_subject, _regexp, _replacement, arg3);
diff --git a/test/mjsunit/runtime-gen/stringreplaceonecharwithstring.js b/test/mjsunit/runtime-gen/stringreplaceonecharwithstring.js
new file mode 100644 (file)
index 0000000..8eca0da
--- /dev/null
@@ -0,0 +1,7 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _subject = "foo";
+var _search = "foo";
+var _replace = "foo";
+%StringReplaceOneCharWithString(_subject, _search, _replace);
diff --git a/test/mjsunit/runtime-gen/stringsplit.js b/test/mjsunit/runtime-gen/stringsplit.js
new file mode 100644 (file)
index 0000000..e4f02e1
--- /dev/null
@@ -0,0 +1,7 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _subject = "foo";
+var _pattern = "foo";
+var _limit = 32;
+%StringSplit(_subject, _pattern, _limit);
diff --git a/test/mjsunit/runtime-gen/stringtoarray.js b/test/mjsunit/runtime-gen/stringtoarray.js
new file mode 100644 (file)
index 0000000..e765ba5
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _s = "foo";
+var _limit = 32;
+%StringToArray(_s, _limit);
diff --git a/test/mjsunit/runtime-gen/stringtolowercase.js b/test/mjsunit/runtime-gen/stringtolowercase.js
new file mode 100644 (file)
index 0000000..48d6908
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _s = "foo";
+%StringToLowerCase(_s);
diff --git a/test/mjsunit/runtime-gen/stringtonumber.js b/test/mjsunit/runtime-gen/stringtonumber.js
new file mode 100644 (file)
index 0000000..77cff38
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _subject = "foo";
+%StringToNumber(_subject);
diff --git a/test/mjsunit/runtime-gen/stringtouppercase.js b/test/mjsunit/runtime-gen/stringtouppercase.js
new file mode 100644 (file)
index 0000000..d84822e
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _s = "foo";
+%StringToUpperCase(_s);
diff --git a/test/mjsunit/runtime-gen/stringtrim.js b/test/mjsunit/runtime-gen/stringtrim.js
new file mode 100644 (file)
index 0000000..33ac02d
--- /dev/null
@@ -0,0 +1,7 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _string = "foo";
+var _trimLeft = true;
+var _trimRight = true;
+%StringTrim(_string, _trimLeft, _trimRight);
diff --git a/test/mjsunit/runtime-gen/symboldescription.js b/test/mjsunit/runtime-gen/symboldescription.js
new file mode 100644 (file)
index 0000000..95905b7
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _symbol = Symbol("symbol");
+%SymbolDescription(_symbol);
diff --git a/test/mjsunit/runtime-gen/symbolisprivate.js b/test/mjsunit/runtime-gen/symbolisprivate.js
new file mode 100644 (file)
index 0000000..9f40396
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _symbol = Symbol("symbol");
+%SymbolIsPrivate(_symbol);
diff --git a/test/mjsunit/runtime-gen/symbolregistry.js b/test/mjsunit/runtime-gen/symbolregistry.js
new file mode 100644 (file)
index 0000000..520caa3
--- /dev/null
@@ -0,0 +1,4 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+%SymbolRegistry();
diff --git a/test/mjsunit/runtime-gen/tobool.js b/test/mjsunit/runtime-gen/tobool.js
new file mode 100644 (file)
index 0000000..7e913c2
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _object = new Object();
+%ToBool(_object);
diff --git a/test/mjsunit/runtime-gen/tofastproperties.js b/test/mjsunit/runtime-gen/tofastproperties.js
new file mode 100644 (file)
index 0000000..8267d2b
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _object = new Object();
+%ToFastProperties(_object);
diff --git a/test/mjsunit/runtime-gen/traceenter.js b/test/mjsunit/runtime-gen/traceenter.js
new file mode 100644 (file)
index 0000000..7c52907
--- /dev/null
@@ -0,0 +1,4 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+%TraceEnter();
diff --git a/test/mjsunit/runtime-gen/traceexit.js b/test/mjsunit/runtime-gen/traceexit.js
new file mode 100644 (file)
index 0000000..f05d841
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _obj = new Object();
+%TraceExit(_obj);
diff --git a/test/mjsunit/runtime-gen/truncatestring.js b/test/mjsunit/runtime-gen/truncatestring.js
new file mode 100644 (file)
index 0000000..1239c22
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _string = "seqstring";
+var _new_length = 1;
+%TruncateString(_string, _new_length);
diff --git a/test/mjsunit/runtime-gen/trymigrateinstance.js b/test/mjsunit/runtime-gen/trymigrateinstance.js
new file mode 100644 (file)
index 0000000..2c3414c
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _object = new Object();
+%TryMigrateInstance(_object);
diff --git a/test/mjsunit/runtime-gen/typedarraygetbuffer.js b/test/mjsunit/runtime-gen/typedarraygetbuffer.js
new file mode 100644 (file)
index 0000000..ea8733e
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _holder = new Int32Array(2);
+%TypedArrayGetBuffer(_holder);
diff --git a/test/mjsunit/runtime-gen/typedarrayinitialize.js b/test/mjsunit/runtime-gen/typedarrayinitialize.js
new file mode 100644 (file)
index 0000000..d64c519
--- /dev/null
@@ -0,0 +1,9 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _holder = new Int32Array(2);
+var arg1 = 6;
+var arg2 = new ArrayBuffer(8);
+var _byte_offset_object = 1.5;
+var arg4 = 4;
+%_TypedArrayInitialize(_holder, arg1, arg2, _byte_offset_object, arg4);
diff --git a/test/mjsunit/runtime-gen/typedarrayinitializefromarraylike.js b/test/mjsunit/runtime-gen/typedarrayinitializefromarraylike.js
new file mode 100644 (file)
index 0000000..e2fad5a
--- /dev/null
@@ -0,0 +1,8 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _holder = new Int32Array(2);
+var arg1 = 6;
+var _source = new Object();
+var _length_obj = 1.5;
+%TypedArrayInitializeFromArrayLike(_holder, arg1, _source, _length_obj);
diff --git a/test/mjsunit/runtime-gen/typedarraymaxsizeinheap.js b/test/mjsunit/runtime-gen/typedarraymaxsizeinheap.js
new file mode 100644 (file)
index 0000000..bfa6c0c
--- /dev/null
@@ -0,0 +1,4 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+%_TypedArrayMaxSizeInHeap();
diff --git a/test/mjsunit/runtime-gen/typedarraysetfastcases.js b/test/mjsunit/runtime-gen/typedarraysetfastcases.js
new file mode 100644 (file)
index 0000000..9940574
--- /dev/null
@@ -0,0 +1,7 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _target_obj = new Int32Array(2);
+var _source_obj = new Int32Array(2);
+var arg2 = 0;
+%TypedArraySetFastCases(_target_obj, _source_obj, arg2);
diff --git a/test/mjsunit/runtime-gen/typeof.js b/test/mjsunit/runtime-gen/typeof.js
new file mode 100644 (file)
index 0000000..cf8297c
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _obj = new Object();
+%Typeof(_obj);
diff --git a/test/mjsunit/runtime-gen/unblockconcurrentrecompilation.js b/test/mjsunit/runtime-gen/unblockconcurrentrecompilation.js
new file mode 100644 (file)
index 0000000..e734860
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+try {
+%UnblockConcurrentRecompilation();
+} catch(e) {}
diff --git a/test/mjsunit/runtime-gen/uriescape.js b/test/mjsunit/runtime-gen/uriescape.js
new file mode 100644 (file)
index 0000000..798d132
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _source = "foo";
+%URIEscape(_source);
diff --git a/test/mjsunit/runtime-gen/uriunescape.js b/test/mjsunit/runtime-gen/uriunescape.js
new file mode 100644 (file)
index 0000000..9573a01
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _source = "foo";
+%URIUnescape(_source);
diff --git a/test/mjsunit/runtime-gen/weakcollectiondelete.js b/test/mjsunit/runtime-gen/weakcollectiondelete.js
new file mode 100644 (file)
index 0000000..fa24778
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _weak_collection = new WeakMap();
+var _key = new Object();
+%WeakCollectionDelete(_weak_collection, _key);
diff --git a/test/mjsunit/runtime-gen/weakcollectionget.js b/test/mjsunit/runtime-gen/weakcollectionget.js
new file mode 100644 (file)
index 0000000..07f486c
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _weak_collection = new WeakMap();
+var _key = new Object();
+%WeakCollectionGet(_weak_collection, _key);
diff --git a/test/mjsunit/runtime-gen/weakcollectionhas.js b/test/mjsunit/runtime-gen/weakcollectionhas.js
new file mode 100644 (file)
index 0000000..d563075
--- /dev/null
@@ -0,0 +1,6 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _weak_collection = new WeakMap();
+var _key = new Object();
+%WeakCollectionHas(_weak_collection, _key);
diff --git a/test/mjsunit/runtime-gen/weakcollectioninitialize.js b/test/mjsunit/runtime-gen/weakcollectioninitialize.js
new file mode 100644 (file)
index 0000000..a28dc50
--- /dev/null
@@ -0,0 +1,5 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _weak_collection = new WeakMap();
+%WeakCollectionInitialize(_weak_collection);
diff --git a/test/mjsunit/runtime-gen/weakcollectionset.js b/test/mjsunit/runtime-gen/weakcollectionset.js
new file mode 100644 (file)
index 0000000..037157a
--- /dev/null
@@ -0,0 +1,7 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
+// Flags: --allow-natives-syntax --harmony
+var _weak_collection = new WeakMap();
+var _key = new Object();
+var _value = new Object();
+%WeakCollectionSet(_weak_collection, _key, _value);
diff --git a/tools/generate-runtime-tests.py b/tools/generate-runtime-tests.py
new file mode 100755 (executable)
index 0000000..efd9d70
--- /dev/null
@@ -0,0 +1,509 @@
+#!/usr/bin/env python
+# Copyright 2014 the V8 project authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import os
+import re
+import shutil
+import sys
+
+# TODO(jkummerow): Support DATA_VIEW_{G,S}ETTER in runtime.cc
+
+FILENAME = "src/runtime.cc"
+HEADERFILENAME = "src/runtime.h"
+FUNCTION = re.compile("^RUNTIME_FUNCTION\(Runtime_(\w+)")
+ARGSLENGTH = re.compile(".*ASSERT\(.*args\.length\(\) == (\d+)\);")
+FUNCTIONEND = "}\n"
+
+WORKSPACE = os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), ".."))
+BASEPATH = os.path.join(WORKSPACE, "test", "mjsunit", "runtime-gen")
+THIS_SCRIPT = os.path.relpath(sys.argv[0])
+
+# Counts of functions in each detection state. These are used to assert
+# that the parser doesn't bit-rot. Change the values as needed when you add,
+# remove or change runtime functions, but make sure we don't lose our ability
+# to parse them!
+EXPECTED_FUNCTION_COUNT = 339
+EXPECTED_FUZZABLE_COUNT = 316
+EXPECTED_CCTEST_COUNT = 6
+EXPECTED_UNKNOWN_COUNT = 5
+
+
+# Don't call these at all.
+BLACKLISTED = [
+  "Abort",  # Kills the process.
+  "AbortJS",  # Kills the process.
+  "CompileForOnStackReplacement",  # Riddled with ASSERTs.
+  "IS_VAR",  # Not implemented in the runtime.
+  "ListNatives",  # Not available in Release mode.
+  "SetAllocationTimeout",  # Too slow for fuzzing.
+  "SystemBreak",  # Kills (int3) the process.
+
+  # These are weird. They violate some invariants when called after
+  # bootstrapping.
+  "DisableAccessChecks",
+  "EnableAccessChecks",
+
+  # Seems to be incompatible with --stress-runs.
+  "LiveEditReplaceScript",
+
+  # TODO(jkummerow): Fix these and un-blacklist them!
+  "CreateDateTimeFormat",
+  "CreateNumberFormat",
+]
+
+
+# These will always throw.
+THROWS = [
+  "CheckExecutionState",  # Needs to hit a break point.
+  "CheckIsBootstrapping",  # Needs to be bootstrapping.
+  "DebugEvaluate",  # Needs to hit a break point.
+  "DebugEvaluateGlobal",  # Needs to hit a break point.
+  "DebugIndexedInterceptorElementValue",  # Needs an indexed interceptor.
+  "DebugNamedInterceptorPropertyValue",  # Needs a named interceptor.
+  "DebugSetScriptSource",  # Checks compilation state of script.
+  "GetAllScopesDetails",  # Needs to hit a break point.
+  "GetFrameCount",  # Needs to hit a break point.
+  "GetFrameDetails",  # Needs to hit a break point.
+  "GetRootNaN",  # Needs to be bootstrapping.
+  "GetScopeCount",  # Needs to hit a break point.
+  "GetScopeDetails",  # Needs to hit a break point.
+  "GetStepInPositions",  # Needs to hit a break point.
+  "GetTemplateField",  # Needs a {Function,Object}TemplateInfo.
+  "GetThreadCount",  # Needs to hit a break point.
+  "GetThreadDetails",  # Needs to hit a break point.
+  "IsAccessAllowedForObserver",  # Needs access-check-required object.
+  "LiveEditFunctionSourceUpdated",  # Needs a SharedFunctionInfo.
+  "LiveEditPatchFunctionPositions",  # Needs a SharedFunctionInfo.
+  "LiveEditReplaceFunctionCode",  # Needs a SharedFunctionInfo.
+  "LiveEditReplaceRefToNestedFunction",  # Needs a SharedFunctionInfo.
+  "LiveEditRestartFrame",  # Needs to hit a break point.
+  "UnblockConcurrentRecompilation"  # Needs --block-concurrent-recompilation.
+]
+
+
+# Definitions used in CUSTOM_KNOWN_GOOD_INPUT below.
+_BREAK_ITERATOR = (
+    "%GetImplFromInitializedIntlObject(new Intl.v8BreakIterator())")
+_COLLATOR = "%GetImplFromInitializedIntlObject(new Intl.Collator('en-US'))"
+_DATETIME_FORMAT = (
+    "%GetImplFromInitializedIntlObject(new Intl.DateTimeFormat('en-US'))")
+_NUMBER_FORMAT = (
+    "%GetImplFromInitializedIntlObject(new Intl.NumberFormat('en-US'))")
+_SCRIPT = "%DebugGetLoadedScripts()[1]"
+
+
+# Custom definitions for function input that does not throw.
+# Format: "FunctionName": ["arg0", "arg1", ..., argslength].
+# None means "fall back to autodetected value".
+CUSTOM_KNOWN_GOOD_INPUT = {
+  "Apply": ["function() {}", None, None, None, None, None],
+  "ArrayBufferSliceImpl": [None, None, 0, None],
+  "ArrayConcat": ["[1, 'a']", None],
+  "BreakIteratorAdoptText": [_BREAK_ITERATOR, None, None],
+  "BreakIteratorBreakType": [_BREAK_ITERATOR, None],
+  "BreakIteratorCurrent": [_BREAK_ITERATOR, None],
+  "BreakIteratorFirst": [_BREAK_ITERATOR, None],
+  "BreakIteratorNext": [_BREAK_ITERATOR, None],
+  "CompileString": [None, "false", None],
+  "CreateBreakIterator": ["'en-US'", "{type: 'string'}", None, None],
+  "CreateJSFunctionProxy": [None, "function() {}", None, None, None],
+  "CreatePrivateSymbol": ["\"foo\"", None],
+  "CreateSymbol": ["\"foo\"", None],
+  "DateParseString": [None, "new Array(8)", None],
+  "DebugSetScriptSource": [_SCRIPT, None, None],
+  "DefineOrRedefineAccessorProperty": [None, None, "function() {}",
+                                       "function() {}", 2, None],
+  "GetBreakLocations": [None, 0, None],
+  "GetDefaultReceiver": ["function() {}", None],
+  "GetImplFromInitializedIntlObject": ["new Intl.NumberFormat('en-US')", None],
+  "InternalCompare": [_COLLATOR, None, None, None],
+  "InternalDateFormat": [_DATETIME_FORMAT, None, None],
+  "InternalDateParse": [_DATETIME_FORMAT, None, None],
+  "InternalNumberFormat": [_NUMBER_FORMAT, None, None],
+  "InternalNumberParse": [_NUMBER_FORMAT, None, None],
+  "IsSloppyModeFunction": ["function() {}", None],
+  "LiveEditFindSharedFunctionInfosForScript": [_SCRIPT, None],
+  "LiveEditGatherCompileInfo": [_SCRIPT, None, None],
+  "LoadMutableDouble": ["{foo: 1.2}", None, None],
+  "NewObjectFromBound": ["(function() {}).bind({})", None],
+  "NumberToRadixString": [None, "2", None],
+  "ParseJson": ["\"{}\"", 1],
+  "RegExpExecMultiple": [None, None, "['a']", "['a']", None],
+  "SetAccessorProperty": [None, None, "undefined", "undefined", None, None,
+                          None],
+  "SetCreateIterator": [None, "2", None],
+  "SetDebugEventListener": ["undefined", None, None],
+  "SetFunctionBreakPoint": [None, 200, None, None],
+  "SetScriptBreakPoint": [_SCRIPT, None, 0, None, None],
+  "StringBuilderConcat": ["[1, 2, 3]", 3, None, None],
+  "StringBuilderJoin": ["['a', 'b']", 4, None, None],
+  "StringMatch": [None, None, "['a', 'b']", None],
+  "StringNormalize": [None, 2, None],
+  "StringReplaceGlobalRegExpWithString": [None, None, None, "['a']", None],
+  "TypedArrayInitialize": [None, 6, "new ArrayBuffer(8)", None, 4, None],
+  "TypedArrayInitializeFromArrayLike": [None, 6, None, None, None],
+  "TypedArraySetFastCases": [None, None, "0", None],
+}
+
+
+# Types of arguments that cannot be generated in a JavaScript testcase.
+NON_JS_TYPES = [
+  "Code", "Context", "FixedArray", "FunctionTemplateInfo",
+  "JSFunctionResultCache", "JSMessageObject", "Map", "ScopeInfo",
+  "SharedFunctionInfo"]
+
+
+# Maps argument types to concrete example inputs of that type.
+JS_TYPE_GENERATORS = {
+  "Boolean": "true",
+  "HeapObject": "new Object()",
+  "Int32": "32",
+  "JSArray": "new Array()",
+  "JSArrayBuffer": "new ArrayBuffer(8)",
+  "JSDataView": "new DataView(new ArrayBuffer(8))",
+  "JSDate": "new Date()",
+  "JSFunction": "function() {}",
+  "JSFunctionProxy": "Proxy.createFunction({}, function() {})",
+  "JSGeneratorObject": "(function*(){ yield 1; })()",
+  "JSMap": "new Map()",
+  "JSMapIterator": "%MapCreateIterator(new Map(), 3)",
+  "JSObject": "new Object()",
+  "JSProxy": "Proxy.create({})",
+  "JSReceiver": "new Object()",
+  "JSRegExp": "/ab/g",
+  "JSSet": "new Set()",
+  "JSSetIterator": "%SetCreateIterator(new Set(), 2)",
+  "JSTypedArray": "new Int32Array(2)",
+  "JSValue": "new String('foo')",
+  "JSWeakCollection": "new WeakMap()",
+  "Name": "\"name\"",
+  "Number": "1.5",
+  "Object": "new Object()",
+  "PropertyDetails": "513",
+  "SeqString": "\"seqstring\"",
+  "Smi": 1,
+  "StrictMode": "1",
+  "String": "\"foo\"",
+  "Symbol": "Symbol(\"symbol\")",
+  "Uint32": "32",
+}
+
+
+class ArgParser(object):
+  def __init__(self, regex, ctor):
+    self.regex = regex
+    self.ArgCtor = ctor
+
+
+class Arg(object):
+  def __init__(self, typename, varname, index):
+    self.type = typename
+    self.name = "_%s" % varname
+    self.index = index
+
+
+class Function(object):
+  def __init__(self, match):
+    self.name = match.group(1)
+    self.argslength = -1
+    self.args = {}
+    self.inline = ""
+
+  handle_arg_parser = ArgParser(
+      re.compile("^\s*CONVERT_ARG_HANDLE_CHECKED\((\w+), (\w+), (\d+)\)"),
+      lambda match: Arg(match.group(1), match.group(2), int(match.group(3))))
+
+  plain_arg_parser = ArgParser(
+      re.compile("^\s*CONVERT_ARG_CHECKED\((\w+), (\w+), (\d+)\)"),
+      lambda match: Arg(match.group(1), match.group(2), int(match.group(3))))
+
+  number_handle_arg_parser = ArgParser(
+      re.compile("^\s*CONVERT_NUMBER_ARG_HANDLE_CHECKED\((\w+), (\d+)\)"),
+      lambda match: Arg("Number", match.group(1), int(match.group(2))))
+
+  smi_arg_parser = ArgParser(
+      re.compile("^\s*CONVERT_SMI_ARG_CHECKED\((\w+), (\d+)\)"),
+      lambda match: Arg("Smi", match.group(1), int(match.group(2))))
+
+  double_arg_parser = ArgParser(
+      re.compile("^\s*CONVERT_DOUBLE_ARG_CHECKED\((\w+), (\d+)\)"),
+      lambda match: Arg("Number", match.group(1), int(match.group(2))))
+
+  number_arg_parser = ArgParser(
+      re.compile(
+          "^\s*CONVERT_NUMBER_CHECKED\(\w+, (\w+), (\w+), args\[(\d+)\]\)"),
+      lambda match: Arg(match.group(2), match.group(1), int(match.group(3))))
+
+  strict_mode_arg_parser = ArgParser(
+      re.compile("^\s*CONVERT_STRICT_MODE_ARG_CHECKED\((\w+), (\d+)\)"),
+      lambda match: Arg("StrictMode", match.group(1), int(match.group(2))))
+
+  boolean_arg_parser = ArgParser(
+      re.compile("^\s*CONVERT_BOOLEAN_ARG_CHECKED\((\w+), (\d+)\)"),
+      lambda match: Arg("Boolean", match.group(1), int(match.group(2))))
+
+  property_details_parser = ArgParser(
+      re.compile("^\s*CONVERT_PROPERTY_DETAILS_CHECKED\((\w+), (\d+)\)"),
+      lambda match: Arg("PropertyDetails", match.group(1), int(match.group(2))))
+
+  arg_parsers = [handle_arg_parser, plain_arg_parser, number_handle_arg_parser,
+                 smi_arg_parser,
+                 double_arg_parser, number_arg_parser, strict_mode_arg_parser,
+                 boolean_arg_parser, property_details_parser]
+
+
+  def SetArgsLength(self, match):
+    self.argslength = int(match.group(1))
+
+  def TryParseArg(self, line):
+    for parser in Function.arg_parsers:
+      match = parser.regex.match(line)
+      if match:
+        arg = parser.ArgCtor(match)
+        self.args[arg.index] = arg
+        return True
+    return False
+
+  def Filename(self):
+    return "%s.js" % self.name.lower()
+
+  def __str__(self):
+    s = [self.name, "("]
+    argcount = self.argslength
+    if argcount < 0:
+      print("WARNING: unknown argslength for function %s" % self.name)
+      if self.args:
+        argcount = max([self.args[i].index + 1 for i in self.args])
+      else:
+        argcount = 0
+    for i in range(argcount):
+      if i > 0: s.append(", ")
+      s.append(self.args[i].type if i in self.args else "<unknown>")
+    s.append(")")
+    return "".join(s)
+
+# Parses HEADERFILENAME to find out which runtime functions are "inline".
+def FindInlineRuntimeFunctions():
+  inline_functions = []
+  with open(HEADERFILENAME, "r") as f:
+    inline_list = "#define INLINE_FUNCTION_LIST(F) \\\n"
+    inline_opt_list = "#define INLINE_OPTIMIZED_FUNCTION_LIST(F) \\\n"
+    inline_function = re.compile(r"^\s*F\((\w+), \d+, \d+\)\s*\\?")
+    mode = "SEARCHING"
+    for line in f:
+      if mode == "ACTIVE":
+        match = inline_function.match(line)
+        if match:
+          inline_functions.append(match.group(1))
+        if not line.endswith("\\\n"):
+          mode = "SEARCHING"
+      elif mode == "SEARCHING":
+        if line == inline_list or line == inline_opt_list:
+          mode = "ACTIVE"
+  return inline_functions
+
+
+# Detects runtime functions by parsing FILENAME.
+def FindRuntimeFunctions():
+  inline_functions = FindInlineRuntimeFunctions()
+  functions = []
+  with open(FILENAME, "r") as f:
+    function = None
+    partial_line = ""
+    for line in f:
+      # Multi-line definition support, ignoring macros.
+      if line.startswith("RUNTIME_FUNCTION") and not line.endswith("{\n"):
+        if line.endswith("\\\n"): continue
+        partial_line = line.rstrip()
+        continue
+      if partial_line:
+        partial_line += " " + line.strip()
+        if partial_line.endswith("{"):
+          line = partial_line
+          partial_line = ""
+        else:
+          continue
+
+      match = FUNCTION.match(line)
+      if match:
+        function = Function(match)
+        if function.name in inline_functions:
+          function.inline = "_"
+        continue
+      if function is None: continue
+
+      match = ARGSLENGTH.match(line)
+      if match:
+        function.SetArgsLength(match)
+        continue
+
+      if function.TryParseArg(line):
+        continue
+
+      if line == FUNCTIONEND:
+        if function is not None:
+          functions.append(function)
+          function = None
+  return functions
+
+# Classifies runtime functions.
+def ClassifyFunctions(functions):
+  # Can be fuzzed with a JavaScript testcase.
+  js_fuzzable_functions = []
+  # We have enough information to fuzz these, but they need inputs that
+  # cannot be created or passed around in JavaScript.
+  cctest_fuzzable_functions = []
+  # This script does not have enough information about these.
+  unknown_functions = []
+
+  types = {}
+  for f in functions:
+    if f.name in BLACKLISTED:
+      continue
+    decision = js_fuzzable_functions
+    custom = CUSTOM_KNOWN_GOOD_INPUT.get(f.name, None)
+    if f.argslength < 0:
+      # Unknown length -> give up unless there's a custom definition.
+      if custom and custom[-1] is not None:
+        f.argslength = custom[-1]
+        assert len(custom) == f.argslength + 1, \
+            ("%s: last custom definition must be argslength" % f.name)
+      else:
+        decision = unknown_functions
+    else:
+      if custom:
+        # Any custom definitions must match the known argslength.
+        assert len(custom) == f.argslength + 1, \
+            ("%s should have %d custom definitions but has %d" %
+            (f.name, f.argslength + 1, len(custom)))
+      for i in range(f.argslength):
+        if custom and custom[i] is not None:
+          # All good, there's a custom definition.
+          pass
+        elif not i in f.args:
+          # No custom definition and no parse result -> give up.
+          decision = unknown_functions
+        else:
+          t = f.args[i].type
+          if t in NON_JS_TYPES:
+            decision = cctest_fuzzable_functions
+          else:
+            assert t in JS_TYPE_GENERATORS, \
+                ("type generator not found for %s, function: %s" % (t, f))
+    decision.append(f)
+  return (js_fuzzable_functions, cctest_fuzzable_functions, unknown_functions)
+
+
+def GenerateJSTestcaseForFunction(f):
+  s = ["// Copyright 2014 the V8 project authors. All rights reserved.",
+       "// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY",
+       "// Flags: --allow-natives-syntax --harmony"]
+  call = "%%%s%s(" % (f.inline, f.name)
+  custom = CUSTOM_KNOWN_GOOD_INPUT.get(f.name, None)
+  for i in range(f.argslength):
+    if custom and custom[i] is not None:
+      (name, value) = ("arg%d" % i, custom[i])
+    else:
+      arg = f.args[i]
+      (name, value) = (arg.name, JS_TYPE_GENERATORS[arg.type])
+    s.append("var %s = %s;" % (name, value))
+    if i > 0: call += ", "
+    call += name
+  call += ");"
+  if f.name in THROWS:
+    s.append("try {")
+    s.append(call);
+    s.append("} catch(e) {}")
+  else:
+    s.append(call)
+  testcase = "\n".join(s)
+  path = os.path.join(BASEPATH, f.Filename())
+  with open(path, "w") as f:
+    f.write("%s\n" % testcase)
+
+def GenerateTestcases(functions):
+  shutil.rmtree(BASEPATH)  # Re-generate everything.
+  os.makedirs(BASEPATH)
+  for f in functions:
+    GenerateJSTestcaseForFunction(f)
+
+def PrintUsage():
+  print """Usage: %(this_script)s ACTION
+
+where ACTION can be:
+
+info      Print diagnostic info.
+check     Check that runtime functions can be parsed as expected, and that
+          test cases exist.
+generate  Parse source code for runtime functions, and auto-generate
+          test cases for them. Warning: this will nuke and re-create
+          %(path)s.
+""" % {"path": os.path.relpath(BASEPATH), "this_script": THIS_SCRIPT}
+
+if __name__ == "__main__":
+  if len(sys.argv) != 2:
+    PrintUsage()
+    sys.exit(1)
+  action = sys.argv[1]
+  if action in ["-h", "--help", "help"]:
+    PrintUsage()
+    sys.exit(0)
+
+  functions = FindRuntimeFunctions()
+  (js_fuzzable_functions, cctest_fuzzable_functions, unknown_functions) = \
+      ClassifyFunctions(functions)
+
+  if action == "info":
+    print("%d functions total; js_fuzzable_functions: %d, "
+          "cctest_fuzzable_functions: %d, unknown_functions: %d"
+          % (len(functions), len(js_fuzzable_functions),
+             len(cctest_fuzzable_functions), len(unknown_functions)))
+    print("unknown functions:")
+    for f in unknown_functions:
+      print(f)
+    sys.exit(0)
+
+  if action == "check":
+    error = False
+    def CheckCount(actual, expected, description):
+      global error
+      if len(actual) != expected:
+        print("Expected to detect %d %s, but found %d." % (
+              expected, description, len(actual)))
+        print("If this change is intentional, please update the expectations"
+              " at the top of %s." % THIS_SCRIPT)
+        error = True
+    CheckCount(functions, EXPECTED_FUNCTION_COUNT, "functions in total")
+    CheckCount(js_fuzzable_functions, EXPECTED_FUZZABLE_COUNT,
+               "JavaScript-fuzzable functions")
+    CheckCount(cctest_fuzzable_functions, EXPECTED_CCTEST_COUNT,
+               "cctest-fuzzable functions")
+    CheckCount(unknown_functions, EXPECTED_UNKNOWN_COUNT,
+               "functions with incomplete type information")
+
+    def CheckTestcasesExisting(functions):
+      global error
+      for f in functions:
+        if not os.path.isfile(os.path.join(BASEPATH, f.Filename())):
+          print("Missing testcase for %s, please run '%s generate'" %
+                (f.name, THIS_SCRIPT))
+          error = True
+      files = filter(lambda filename: not filename.startswith("."),
+                     os.listdir(BASEPATH))
+      if (len(files) != len(functions)):
+        unexpected_files = set(files) - set([f.Filename() for f in functions])
+        for f in unexpected_files:
+          print("Unexpected testcase: %s" % os.path.join(BASEPATH, f))
+          error = True
+    CheckTestcasesExisting(js_fuzzable_functions)
+
+    if error:
+      sys.exit(1)
+    print("Generated runtime tests: all good.")
+    sys.exit(0)
+
+  if action == "generate":
+    GenerateTestcases(js_fuzzable_functions)
+    sys.exit(0)
index 5cf4904..346926c 100755 (executable)
@@ -339,6 +339,10 @@ def Main():
     code = subprocess.call(
         [sys.executable, join(workspace, "tools", "presubmit.py")])
     exit_code = code
+    code = subprocess.call(
+        [sys.executable, join(workspace, "tools", "generate-runtime-tests.py"),
+         "check"])
+    exit_code = exit_code or code
 
   suite_paths = utils.GetSuitePaths(join(workspace, "test"))