GeezerVison is showing github.com — [debug] removed most debugger js · v8/v8@e404670
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: BUILD.gn -3Lines changed: 0 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -649,8 +649,6 @@ action("js2c") { | 649 | 649 | "src/js/prologue.js", | 650 | 650 | "src/js/array.js", | 651 | 651 | "src/js/typedarray.js", | 652 | | - "src/debug/mirrors.js", | 653 | | - "src/debug/debug.js", | 654 | 652 | "src/debug/liveedit.js", | 655 | 653 | ] | 656 | 654 |
| @@ -2259,7 +2257,6 @@ v8_source_set("v8_base") { | 2259 | 2257 | "src/runtime/runtime-dataview.cc", | 2260 | 2258 | "src/runtime/runtime-date.cc", | 2261 | 2259 | "src/runtime/runtime-debug.cc", | 2262 | | - "src/runtime/runtime-error.cc", | 2263 | 2260 | "src/runtime/runtime-forin.cc", | 2264 | 2261 | "src/runtime/runtime-function.cc", | 2265 | 2262 | "src/runtime/runtime-futex.cc", | |
Collapse file Copy file name to clipboardExpand all lines: src/compiler/js-intrinsic-lowering.cc -4Lines changed: 0 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -55,10 +55,6 @@ Reduction JSIntrinsicLowering::Reduce(Node* node) { | 55 | 55 | return ReduceIsInstanceType(node, JS_TYPED_ARRAY_TYPE); | 56 | 56 | case Runtime::kInlineIsJSProxy: | 57 | 57 | return ReduceIsInstanceType(node, JS_PROXY_TYPE); | 58 | | - case Runtime::kInlineIsJSMap: | 59 | | - return ReduceIsInstanceType(node, JS_MAP_TYPE); | 60 | | - case Runtime::kInlineIsJSSet: | 61 | | - return ReduceIsInstanceType(node, JS_SET_TYPE); | 62 | 58 | case Runtime::kInlineIsJSWeakMap: | 63 | 59 | return ReduceIsInstanceType(node, JS_WEAK_MAP_TYPE); | 64 | 60 | case Runtime::kInlineIsJSWeakSet: | |
Collapse file Copy file name to clipboardExpand all lines: src/compiler/linkage.cc -3Lines changed: 0 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -158,7 +158,6 @@ bool Linkage::NeedsFrameStateInput(Runtime::FunctionId function) { | 158 | 158 | case Runtime::kAbort: | 159 | 159 | case Runtime::kAllocateInTargetSpace: | 160 | 160 | case Runtime::kCreateIterResultObject: | 161 | | - case Runtime::kGeneratorGetContinuation: | 162 | 161 | case Runtime::kIncBlockCounter: | 163 | 162 | case Runtime::kIsFunction: | 164 | 163 | case Runtime::kNewClosure: | @@ -185,8 +184,6 @@ bool Linkage::NeedsFrameStateInput(Runtime::FunctionId function) { | 185 | 184 | case Runtime::kInlineGeneratorGetResumeMode: | 186 | 185 | case Runtime::kInlineCreateJSGeneratorObject: | 187 | 186 | case Runtime::kInlineIsArray: | 188 | | - case Runtime::kInlineIsJSMap: | 189 | | - case Runtime::kInlineIsJSSet: | 190 | 187 | case Runtime::kInlineIsJSWeakMap: | 191 | 188 | case Runtime::kInlineIsJSWeakSet: | 192 | 189 | case Runtime::kInlineIsJSReceiver: | |
Collapse file Copy file name to clipboardExpand all lines: src/debug/debug-evaluate.cc -2Lines changed: 0 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -332,10 +332,8 @@ bool IntrinsicHasNoSideEffect(Runtime::FunctionId id) { | 332 | 332 | V(IsArray) \ | 333 | 333 | V(IsDate) \ | 334 | 334 | V(IsFunction) \ | 335 | | - V(IsJSMap) \ | 336 | 335 | V(IsJSProxy) \ | 337 | 336 | V(IsJSReceiver) \ | 338 | | - V(IsJSSet) \ | 339 | 337 | V(IsJSWeakMap) \ | 340 | 338 | V(IsJSWeakSet) \ | 341 | 339 | V(IsRegExp) \ | |
Collapse file Copy file name to clipboardExpand all lines: src/debug/debug-frames.cc -27Lines changed: 0 additions & 27 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -181,32 +181,5 @@ bool FrameInspector::ParameterIsShadowedByContextLocal( | 181 | 181 | return ScopeInfo::ContextSlotIndex(info, parameter_name, &mode, &init_flag, | 182 | 182 | &maybe_assigned_flag) != -1; | 183 | 183 | } | 184 | | - | 185 | | -SaveContext* DebugFrameHelper::FindSavedContextForFrame(Isolate* isolate, | 186 | | - StandardFrame* frame) { | 187 | | - SaveContext* save = isolate->save_context(); | 188 | | - while (save != nullptr && !save->IsBelowFrame(frame)) { | 189 | | - save = save->prev(); | 190 | | - } | 191 | | - DCHECK(save != nullptr); | 192 | | - return save; | 193 | | -} | 194 | | - | 195 | | -int DebugFrameHelper::FindIndexedNonNativeFrame(StackTraceFrameIterator* it, | 196 | | - int index) { | 197 | | - int count = -1; | 198 | | - for (; !it->done(); it->Advance()) { | 199 | | - std::vector<FrameSummary> frames; | 200 | | - it->frame()->Summarize(&frames); | 201 | | - for (size_t i = frames.size(); i != 0; i--) { | 202 | | - // Omit functions from native and extension scripts. | 203 | | - if (!frames[i - 1].is_subject_to_debugging()) continue; | 204 | | - if (++count == index) return static_cast<int>(i) - 1; | 205 | | - } | 206 | | - } | 207 | | - return -1; | 208 | | -} | 209 | | - | 210 | | - | 211 | 184 | } // namespace internal | 212 | 185 | } // namespace v8 |
Collapse file Copy file name to clipboardExpand all lines: src/debug/debug-frames.h -21Lines changed: 0 additions & 21 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -71,27 +71,6 @@ class FrameInspector { | 71 | 71 |
| 72 | 72 | DISALLOW_COPY_AND_ASSIGN(FrameInspector); | 73 | 73 | }; | 74 | | - | 75 | | - | 76 | | -class DebugFrameHelper : public AllStatic { | 77 | | - public: | 78 | | - static SaveContext* FindSavedContextForFrame(Isolate* isolate, | 79 | | - StandardFrame* frame); | 80 | | - // Advances the iterator to the frame that matches the index and returns the | 81 | | - // inlined frame index, or -1 if not found. Skips native JS functions. | 82 | | - static int FindIndexedNonNativeFrame(StackTraceFrameIterator* it, int index); | 83 | | - | 84 | | - // Helper functions for wrapping and unwrapping stack frame ids. | 85 | | - static Smi* WrapFrameId(StackFrame::Id id) { | 86 | | - DCHECK(IsAligned(OffsetFrom(id), static_cast<intptr_t>(4))); | 87 | | - return Smi::FromInt(id >> 2); | 88 | | - } | 89 | | - | 90 | | - static StackFrame::Id UnwrapFrameId(int wrapped) { | 91 | | - return static_cast<StackFrame::Id>(wrapped << 2); | 92 | | - } | 93 | | -}; | 94 | | - | 95 | 74 | } // namespace internal | 96 | 75 | } // namespace v8 | 97 | 76 |
| |
Collapse file Copy file name to clipboardExpand all lines: src/debug/debug-interface.h +1-2Lines changed: 1 addition & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -147,10 +147,9 @@ class DebugDelegate { | 147 | 147 | // |inspector_break_points_hit| contains id of breakpoints installed with | 148 | 148 | // debug::Script::SetBreakpoint API. | 149 | 149 | virtual void BreakProgramRequested( | 150 | | - v8::Local<v8::Context> paused_context, v8::Local<v8::Object> exec_state, | | 150 | + v8::Local<v8::Context> paused_context, | 151 | 151 | const std::vector<debug::BreakpointId>& inspector_break_points_hit) {} | 152 | 152 | virtual void ExceptionThrown(v8::Local<v8::Context> paused_context, | 153 | | - v8::Local<v8::Object> exec_state, | 154 | 153 | v8::Local<v8::Value> exception, | 155 | 154 | v8::Local<v8::Value> promise, bool is_uncaught) { | 156 | 155 | } | |
|