Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(150)

Unified Diff: src/js/collection.js

Issue 1474943005: Revert of [debugger] flood function for stepping before calling it. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/js/array.js ('k') | src/js/macros.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/js/collection.js
diff --git a/src/js/collection.js b/src/js/collection.js
index 221f0e107831a486599ccb00f7e18dc4e728364b..6d75f4a5bd7646607fa4e6dd6b5317715c699f4c 100644
--- a/src/js/collection.js
+++ b/src/js/collection.js
@@ -248,8 +248,10 @@
var iterator = new SetIterator(this, ITERATOR_KIND_VALUES);
var key;
+ var stepping = DEBUG_IS_STEPPING(f);
var value_array = [UNDEFINED];
while (%SetIteratorNext(iterator, value_array)) {
+ if (stepping) %DebugPrepareStepInIfStepping(f);
key = value_array[0];
%_Call(f, receiver, key, key, this);
}
@@ -429,8 +431,10 @@
if (!IS_CALLABLE(f)) throw MakeTypeError(kCalledNonCallable, f);
var iterator = new MapIterator(this, ITERATOR_KIND_ENTRIES);
+ var stepping = DEBUG_IS_STEPPING(f);
var value_array = [UNDEFINED, UNDEFINED];
while (%MapIteratorNext(iterator, value_array)) {
+ if (stepping) %DebugPrepareStepInIfStepping(f);
%_Call(f, receiver, value_array[1], value_array[0], this);
}
}
« no previous file with comments | « src/js/array.js ('k') | src/js/macros.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698