• Mythri's avatar
    Defer inferring language mode as far as possible · 592aeefa
    Mythri authored
    Inferring the language mode involves iterating the stack to find the
    closure. This is an expensive operation and should be done only when
    required. This cl changes the implementation to infer the language
    mode only when we can't defer it any further. Currently, we infer the
    language mode when throwing an exception or when passing this
    information to PropertyCallbackArguments.
    
    This cl also changes the language mode parameter to SetProperty
    related methods to Maybe<ShouldThrow>. We only use the language mode to
    decide if we need to throw and using ShouldThrow instead of language
    mode simplifies the code by avoiding conversions from Maybe<ShouldThrow>
    to Maybe<LanguageMode> and vice-versa.
    
    Bug: v8:8580, chromium:923820, chromium:925289
    Change-Id: I72497497f62fe0d86fcecd57b06b3183b7531f7b
    Reviewed-on: https://chromium-review.googlesource.com/c/1425912
    Commit-Queue: Mythri Alle <mythria@chromium.org>
    Reviewed-by: 's avatarJakob Gruber <jgruber@chromium.org>
    Reviewed-by: 's avatarAndreas Haas <ahaas@chromium.org>
    Reviewed-by: 's avatarMichael Lippautz <mlippautz@chromium.org>
    Reviewed-by: 's avatarToon Verwaest <verwaest@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#59094}
    592aeefa
Name
Last commit
Last update
..
arm Loading commit data...
arm64 Loading commit data...
ia32 Loading commit data...
mips Loading commit data...
mips64 Loading commit data...
ppc Loading commit data...
s390 Loading commit data...
x64 Loading commit data...
OWNERS Loading commit data...
debug-coverage.cc Loading commit data...
debug-coverage.h Loading commit data...
debug-evaluate.cc Loading commit data...
debug-evaluate.h Loading commit data...
debug-frames.cc Loading commit data...
debug-frames.h Loading commit data...
debug-interface.h Loading commit data...
debug-property-iterator.cc Loading commit data...
debug-property-iterator.h Loading commit data...
debug-scope-iterator.cc Loading commit data...
debug-scope-iterator.h Loading commit data...
debug-scopes.cc Loading commit data...
debug-scopes.h Loading commit data...
debug-stack-trace-iterator.cc Loading commit data...
debug-stack-trace-iterator.h Loading commit data...
debug-type-profile.cc Loading commit data...
debug-type-profile.h Loading commit data...
debug.cc Loading commit data...
debug.h Loading commit data...
interface-types.h Loading commit data...
liveedit.cc Loading commit data...
liveedit.h Loading commit data...