• adamk@chromium.org's avatar
    ES6 Map/Set iterators/forEach improvements · 70c3a714
    adamk@chromium.org authored
    This changes how Map/Set interacts with its iterators. When the
    underlying table is rehashed or cleared, we create a new table (like
    before) but we add a reference from the old table to the new table. We
    also add an array describing how to transition the iterator from the
    old table to the new table.
    
    When Next is called on the iterator it checks if there is a newer table
    that it should transition to. If there is, it updates the index based
    on the previously recorded changes and finally changes itself to point
    at the new table.
    
    With these changes Map/Set no longer keeps the iterators alive. Also,
    as before, the iterators keep the underlying table(s) alive but not the
    actual Map/Set.
    
    BUG=v8:1793
    LOG=Y
    R=mstarzinger@chromium.org, rossberg@chromium.org
    
    Review URL: https://codereview.chromium.org/289503002
    
    Patch from Erik Arvidsson <arv@chromium.org>.
    
    git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21389 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
    70c3a714
Name
Last commit
Last update
..
apply.js Loading commit data...
arraybuffergetbytelength.js Loading commit data...
arraybufferinitialize.js Loading commit data...
arraybufferisview.js Loading commit data...
arraybufferneuter.js Loading commit data...
arraybuffersliceimpl.js Loading commit data...
arraybufferviewgetbytelength.js Loading commit data...
arraybufferviewgetbyteoffset.js Loading commit data...
arrayconcat.js Loading commit data...
availablelocalesof.js Loading commit data...
basicjsonstringify.js Loading commit data...
boundfunctiongetbindings.js Loading commit data...
break.js Loading commit data...
breakiteratoradopttext.js Loading commit data...
breakiteratorbreaktype.js Loading commit data...
breakiteratorcurrent.js Loading commit data...
breakiteratorfirst.js Loading commit data...
breakiteratornext.js Loading commit data...
canonicalizelanguagetag.js Loading commit data...
changebreakonexception.js Loading commit data...
charfromcode.js Loading commit data...
checkexecutionstate.js Loading commit data...
checkisbootstrapping.js Loading commit data...
classof.js Loading commit data...
clearbreakpoint.js Loading commit data...
clearfunctiontypefeedback.js Loading commit data...
clearstepping.js Loading commit data...
collectstacktrace.js Loading commit data...
compilestring.js Loading commit data...
constructdouble.js Loading commit data...
createbreakiterator.js Loading commit data...
createcollator.js Loading commit data...
createglobalprivatesymbol.js Loading commit data...
createjsfunctionproxy.js Loading commit data...
createjsproxy.js Loading commit data...
createprivatesymbol.js Loading commit data...
createsymbol.js Loading commit data...
dataviewgetbuffer.js Loading commit data...
dataviewgetfloat32.js Loading commit data...
dataviewgetfloat64.js Loading commit data...
dataviewgetint16.js Loading commit data...
dataviewgetint32.js Loading commit data...
dataviewgetint8.js Loading commit data...
dataviewgetuint16.js Loading commit data...
dataviewgetuint32.js Loading commit data...
dataviewgetuint8.js Loading commit data...
dataviewinitialize.js Loading commit data...
dataviewsetfloat32.js Loading commit data...
dataviewsetfloat64.js Loading commit data...
dataviewsetint16.js Loading commit data...
dataviewsetint32.js Loading commit data...
dataviewsetint8.js Loading commit data...
dataviewsetuint16.js Loading commit data...
dataviewsetuint32.js Loading commit data...
dataviewsetuint8.js Loading commit data...
datecacheversion.js Loading commit data...
datecurrenttime.js Loading commit data...
datelocaltimezone.js Loading commit data...
datemakeday.js Loading commit data...
dateparsestring.js Loading commit data...
datesetvalue.js Loading commit data...
datetoutc.js Loading commit data...
debugbreak.js Loading commit data...
debugcallbacksupportsstepping.js Loading commit data...
debugconstructedby.js Loading commit data...
debugdisassembleconstructor.js Loading commit data...
debugdisassemblefunction.js Loading commit data...
debugevaluate.js Loading commit data...
debugevaluateglobal.js Loading commit data...
debuggetproperty.js Loading commit data...
debuggetpropertydetails.js Loading commit data...
debuggetprototype.js Loading commit data...
debugindexedinterceptorelementvalue.js Loading commit data...
debugnamedinterceptorpropertyvalue.js Loading commit data...
debugpreparestepinifstepping.js Loading commit data...
debugprintscopes.js Loading commit data...
debugpromisehandleepilogue.js Loading commit data...
debugpromisehandleprologue.js Loading commit data...
debugpropertyattributesfromdetails.js Loading commit data...
debugpropertyindexfromdetails.js Loading commit data...
debugpropertytypefromdetails.js Loading commit data...
debugreferencedby.js Loading commit data...
debugtrace.js Loading commit data...
defineorredefineaccessorproperty.js Loading commit data...
defineorredefinedataproperty.js Loading commit data...
deleteproperty.js Loading commit data...
deoptimizefunction.js Loading commit data...
doublehi.js Loading commit data...
doublelo.js Loading commit data...
enqueuemicrotask.js Loading commit data...
estimatenumberofelements.js Loading commit data...
executeindebugcontext.js Loading commit data...
finisharrayprototypesetup.js Loading commit data...
fix.js Loading commit data...
flattenstring.js Loading commit data...
functiongetinferredname.js Loading commit data...
functiongetname.js Loading commit data...
functiongetscript.js Loading commit data...
functiongetscriptsourceposition.js Loading commit data...
functiongetsourcecode.js Loading commit data...
functionisapifunction.js Loading commit data...
functionisbuiltin.js Loading commit data...
functionisgenerator.js Loading commit data...
functionmarknameshouldprintasanonymous.js Loading commit data...
functionnameshouldprintasanonymous.js Loading commit data...
functionremoveprototype.js Loading commit data...
functionsetinstanceclassname.js Loading commit data...
functionsetlength.js Loading commit data...
functionsetname.js Loading commit data...
functionsetprototype.js Loading commit data...
getallscopesdetails.js Loading commit data...
getandclearoverflowedstacktrace.js Loading commit data...
getargumentsproperty.js Loading commit data...
getarraykeys.js Loading commit data...
getbreaklocations.js Loading commit data...
getcalltrap.js Loading commit data...
getconstructordelegate.js Loading commit data...
getconstructtrap.js Loading commit data...
getdataproperty.js Loading commit data...
getdefaulticulocale.js Loading commit data...
getdefaultreceiver.js Loading commit data...
getframecount.js Loading commit data...
getframedetails.js Loading commit data...
getfunctioncodepositionfromsource.js Loading commit data...
getfunctiondelegate.js Loading commit data...
getfunctionscopecount.js Loading commit data...
getfunctionscopedetails.js Loading commit data...
gethandler.js Loading commit data...
getheapusage.js Loading commit data...
getimplfrominitializedintlobject.js Loading commit data...
getindexedinterceptorelementnames.js Loading commit data...
getinterceptorinfo.js Loading commit data...
getlanguagetagvariants.js Loading commit data...
getlocalelementnames.js Loading commit data...
getlocalpropertynames.js Loading commit data...
getnamedinterceptorpropertynames.js Loading commit data...
getobservationstate.js Loading commit data...
getoptimizationcount.js Loading commit data...
getoptimizationstatus.js Loading commit data...
getownproperty.js Loading commit data...
getproperty.js Loading commit data...
getpropertynames.js Loading commit data...
getpropertynamesfast.js Loading commit data...
getprototype.js Loading commit data...
getrootnan.js Loading commit data...
getscopecount.js Loading commit data...
getscopedetails.js Loading commit data...
getscript.js Loading commit data...
getstepinpositions.js Loading commit data...
gettemplatefield.js Loading commit data...
getthreadcount.js Loading commit data...
getthreaddetails.js Loading commit data...
getv8version.js Loading commit data...
globalprint.js Loading commit data...
globalreceiver.js Loading commit data...
haselement.js Loading commit data...
haslocalproperty.js Loading commit data...
hasproperty.js Loading commit data...
havesamemap.js Loading commit data...
ignoreattributesandsetproperty.js Loading commit data...
initializevarglobal.js Loading commit data...
internalcompare.js Loading commit data...
internaldateformat.js Loading commit data...
internaldateparse.js Loading commit data...
internalnumberformat.js Loading commit data...
internalnumberparse.js Loading commit data...
isattachedglobal.js Loading commit data...
isbreakonexception.js Loading commit data...
isconcurrentrecompilationsupported.js Loading commit data...
isextensible.js Loading commit data...
isinitializedintlobject.js Loading commit data...
isinitializedintlobjectoftype.js Loading commit data...
isinprototypechain.js Loading commit data...
isjsfunctionproxy.js Loading commit data...
isjsglobalproxy.js Loading commit data...
isjsmodule.js Loading commit data...
isjsproxy.js Loading commit data...
isobserved.js Loading commit data...
ispropertyenumerable.js Loading commit data...
issloppymodefunction.js Loading commit data...
istemplate.js Loading commit data...
isvalidsmi.js Loading commit data...
keyedgetproperty.js Loading commit data...
liveeditcheckanddropactivations.js Loading commit data...
liveeditcomparestrings.js Loading commit data...
liveeditfunctionsetscript.js Loading commit data...
loadmutabledouble.js Loading commit data...
localkeys.js Loading commit data...
lookupaccessor.js Loading commit data...
mapclear.js Loading commit data...
mapcreateiterator.js Loading commit data...
mapdelete.js Loading commit data...
mapget.js Loading commit data...
mapgetsize.js Loading commit data...
maphas.js Loading commit data...
mapinitialize.js Loading commit data...
mapiteratornext.js Loading commit data...
mapset.js Loading commit data...
markasinitializedintlobjectoftype.js Loading commit data...
mathacos.js Loading commit data...
mathasin.js Loading commit data...
mathatan.js Loading commit data...
mathatan2.js Loading commit data...
mathexprt.js Loading commit data...
mathfloorrt.js Loading commit data...
mathfround.js Loading commit data...
mathlogrt.js Loading commit data...
mathsqrtrt.js Loading commit data...
maxsmi.js Loading commit data...
movearraycontents.js Loading commit data...
neveroptimizefunction.js Loading commit data...
newobjectfrombound.js Loading commit data...
newstring.js Loading commit data...
newstringwrapper.js Loading commit data...
newsymbolwrapper.js Loading commit data...
notifycontextdisposed.js Loading commit data...
numberadd.js Loading commit data...
numberand.js Loading commit data...
numbercompare.js Loading commit data...
numberdiv.js Loading commit data...
numberequals.js Loading commit data...
numberimul.js Loading commit data...
numbermod.js Loading commit data...
numbermul.js Loading commit data...
numberor.js Loading commit data...
numbersar.js Loading commit data...
numbershl.js Loading commit data...
numbershr.js Loading commit data...
numbersub.js Loading commit data...
numbertoexponential.js Loading commit data...
numbertofixed.js Loading commit data...
numbertointeger.js Loading commit data...
numbertointegermapminuszero.js Loading commit data...
numbertojsint32.js Loading commit data...
numbertojsuint32.js Loading commit data...
numbertoprecision.js Loading commit data...
numbertoradixstring.js Loading commit data...
numberunaryminus.js Loading commit data...
numberxor.js Loading commit data...
objectfreeze.js Loading commit data...
objectgetnotifierinobjectcontext.js Loading commit data...
objectnotifierperformchangeinobjectcontext.js Loading commit data...
objectobserveinobjectcontext.js Loading commit data...
objectwascreatedincurrentorigin.js Loading commit data...
observationweakmapcreate.js Loading commit data...
observerobjectandrecordhavesameorigin.js Loading commit data...
optimizefunctiononnextcall.js Loading commit data...
optimizeobjectforaddingmultipleproperties.js Loading commit data...
parsejson.js Loading commit data...
preventextensions.js Loading commit data...
pushifabsent.js Loading commit data...
quotejsonstring.js Loading commit data...
regexpcompile.js Loading commit data...
regexpexecmultiple.js Loading commit data...
regexpinitializeobject.js Loading commit data...
removearrayholes.js Loading commit data...
roundnumber.js Loading commit data...
runmicrotasks.js Loading commit data...
runninginsimulator.js Loading commit data...
setaccessorproperty.js Loading commit data...
setadd.js Loading commit data...
setclear.js Loading commit data...
setcode.js Loading commit data...
setcreateiterator.js Loading commit data...
setdebugeventlistener.js Loading commit data...
setdelete.js Loading commit data...
setdisablebreak.js Loading commit data...
setexpectednumberofproperties.js Loading commit data...
setflags.js Loading commit data...
setfunctionbreakpoint.js Loading commit data...
setgetsize.js Loading commit data...
sethas.js Loading commit data...
sethiddenproperty.js Loading commit data...
setinitialize.js Loading commit data...
setinlinebuiltinflag.js Loading commit data...
setisobserved.js Loading commit data...
setiteratornext.js Loading commit data...
setnativeflag.js Loading commit data...
setproperty.js Loading commit data...
setprototype.js Loading commit data...
setscopevariablevalue.js Loading commit data...
smilexicographiccompare.js Loading commit data...
sparsejoinwithseparator.js Loading commit data...
specialarrayfunctions.js Loading commit data...
stringbuilderconcat.js Loading commit data...
stringbuilderjoin.js Loading commit data...
stringequals.js Loading commit data...
stringindexof.js Loading commit data...
stringlastindexof.js Loading commit data...
stringlocalecompare.js Loading commit data...
stringmatch.js Loading commit data...
stringnormalize.js Loading commit data...
stringparsefloat.js Loading commit data...
stringparseint.js Loading commit data...
stringreplaceglobalregexpwithstring.js Loading commit data...
stringreplaceonecharwithstring.js Loading commit data...
stringsplit.js Loading commit data...
stringtoarray.js Loading commit data...
stringtolowercase.js Loading commit data...
stringtonumber.js Loading commit data...
stringtouppercase.js Loading commit data...
stringtrim.js Loading commit data...
symboldescription.js Loading commit data...
symbolisprivate.js Loading commit data...
symbolregistry.js Loading commit data...
tobool.js Loading commit data...
tofastproperties.js Loading commit data...
traceenter.js Loading commit data...
traceexit.js Loading commit data...
truncatestring.js Loading commit data...
trymigrateinstance.js Loading commit data...
typedarraygetbuffer.js Loading commit data...
typedarraygetlength.js Loading commit data...
typedarrayinitialize.js Loading commit data...
typedarrayinitializefromarraylike.js Loading commit data...
typedarraymaxsizeinheap.js Loading commit data...
typedarraysetfastcases.js Loading commit data...
typeof.js Loading commit data...
unblockconcurrentrecompilation.js Loading commit data...
uriescape.js Loading commit data...
uriunescape.js Loading commit data...
weakcollectiondelete.js Loading commit data...
weakcollectionget.js Loading commit data...
weakcollectionhas.js Loading commit data...
weakcollectioninitialize.js Loading commit data...
weakcollectionset.js Loading commit data...