diff options
author | Michaƫl Zasso <targos@protonmail.com> | 2018-05-31 11:11:57 +0200 |
---|---|---|
committer | Myles Borins <mylesborins@google.com> | 2018-06-01 09:58:27 +0200 |
commit | 352a525eb984b8fa2d6f0f6fd68395e6a080bba4 (patch) | |
tree | a105ae93f8fd8f533cce19a429f1b6e95d6e11ca /deps/v8/src/objects/debug-objects.cc | |
parent | faf449ca0490f5371dc6cbbc94a87eb697b00fcc (diff) | |
download | android-node-v8-352a525eb984b8fa2d6f0f6fd68395e6a080bba4.tar.gz android-node-v8-352a525eb984b8fa2d6f0f6fd68395e6a080bba4.tar.bz2 android-node-v8-352a525eb984b8fa2d6f0f6fd68395e6a080bba4.zip |
deps: update V8 to 6.7.288.43
PR-URL: https://github.com/nodejs/node/pull/19989
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matheus Marchini <matheus@sthima.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Diffstat (limited to 'deps/v8/src/objects/debug-objects.cc')
-rw-r--r-- | deps/v8/src/objects/debug-objects.cc | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/deps/v8/src/objects/debug-objects.cc b/deps/v8/src/objects/debug-objects.cc index 6505ca6e7f..f79aa5cea5 100644 --- a/deps/v8/src/objects/debug-objects.cc +++ b/deps/v8/src/objects/debug-objects.cc @@ -12,9 +12,13 @@ bool DebugInfo::IsEmpty() const { return flags() == kNone; } bool DebugInfo::HasBreakInfo() const { return (flags() & kHasBreakInfo) != 0; } -bool DebugInfo::IsPreparedForBreakpoints() const { - DCHECK(HasBreakInfo()); - return (flags() & kPreparedForBreakpoints) != 0; +DebugInfo::ExecutionMode DebugInfo::DebugExecutionMode() const { + return (flags() & kDebugExecutionMode) != 0 ? kSideEffects : kBreakpoints; +} + +void DebugInfo::SetDebugExecutionMode(ExecutionMode value) { + set_flags(value == kSideEffects ? (flags() | kDebugExecutionMode) + : (flags() & ~kDebugExecutionMode)); } bool DebugInfo::ClearBreakInfo() { @@ -24,8 +28,9 @@ bool DebugInfo::ClearBreakInfo() { set_break_points(isolate->heap()->empty_fixed_array()); int new_flags = flags(); - new_flags &= ~kHasBreakInfo & ~kPreparedForBreakpoints; + new_flags &= ~kHasBreakInfo & ~kPreparedForDebugExecution; new_flags &= ~kBreakAtEntry & ~kCanBreakAtEntry; + new_flags &= ~kDebugExecutionMode; set_flags(new_flags); return new_flags == kNone; @@ -346,15 +351,14 @@ void CoverageInfo::ResetBlockCount(int slot_index) { set(slot_start + kSlotBlockCountIndex, Smi::kZero); } -void CoverageInfo::Print(String* function_name) { +void CoverageInfo::Print(std::unique_ptr<char[]> function_name) { DCHECK(FLAG_trace_block_coverage); DisallowHeapAllocation no_gc; OFStream os(stdout); os << "Coverage info ("; - if (function_name->length() > 0) { - auto function_name_cstr = function_name->ToCString(); - os << function_name_cstr.get(); + if (strlen(function_name.get()) > 0) { + os << function_name.get(); } else { os << "{anonymous}"; } |