• adamk's avatar
    [modules] Detect and throw exceptions for cyclic dependencies · b48eb569
    adamk authored
    Use an unordered_map<Module, unordered_set<String>> to keep track
    of visited Module/ExportName pairs during ResolveExport.
    
    This required adding a Hash() method to Module, which is accomplished
    by allocating a Symbol and storing it in the SharedFunctionInfo::name
    slot, then delegating the hash to that Symbol.
    
    Also added a helper method Module::shared() to easily get ahold of
    the SharedFunctionInfo and call it in the appropriate places instead
    of re-doing the ternary operator.
    
    BUG=v8:1569
    
    Review-Url: https://codereview.chromium.org/2367623004
    Cr-Commit-Position: refs/heads/master@{#39743}
    b48eb569
Name
Last commit
Last update
..
benchmarks Loading commit data...
cctest Loading commit data...
common Loading commit data...
fuzzer Loading commit data...
inspector_protocol_parser_test Loading commit data...
intl Loading commit data...
js-perf-test Loading commit data...
memory Loading commit data...
message Loading commit data...
mjsunit Loading commit data...
mozilla Loading commit data...
preparser Loading commit data...
promises-aplus Loading commit data...
simdjs Loading commit data...
test262 Loading commit data...
unittests Loading commit data...
webkit Loading commit data...
BUILD.gn Loading commit data...
bot_default.gyp Loading commit data...
bot_default.isolate Loading commit data...
default.gyp Loading commit data...
default.isolate Loading commit data...
optimize_for_size.gyp Loading commit data...
optimize_for_size.isolate Loading commit data...
perf.gyp Loading commit data...
perf.isolate Loading commit data...