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

Side by Side Diff: src/js/collection.js

Issue 1404783002: Debugger: allow stepping into resolver from Promise constructor. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 months 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 unified diff | Download patch
« no previous file with comments | « src/js/array.js ('k') | src/js/generator.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 var $getHash; 5 var $getHash;
6 var $getExistingHash; 6 var $getExistingHash;
7 7
8 (function(global, utils) { 8 (function(global, utils) {
9 "use strict"; 9 "use strict";
10 10
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 function SetForEach(f, receiver) { 242 function SetForEach(f, receiver) {
243 if (!IS_SET(this)) { 243 if (!IS_SET(this)) {
244 throw MakeTypeError(kIncompatibleMethodReceiver, 244 throw MakeTypeError(kIncompatibleMethodReceiver,
245 'Set.prototype.forEach', this); 245 'Set.prototype.forEach', this);
246 } 246 }
247 247
248 if (!IS_CALLABLE(f)) throw MakeTypeError(kCalledNonCallable, f); 248 if (!IS_CALLABLE(f)) throw MakeTypeError(kCalledNonCallable, f);
249 249
250 var iterator = new SetIterator(this, ITERATOR_KIND_VALUES); 250 var iterator = new SetIterator(this, ITERATOR_KIND_VALUES);
251 var key; 251 var key;
252 var stepping = DEBUG_IS_ACTIVE && %DebugCallbackSupportsStepping(f); 252 var stepping = DEBUG_IS_STEPPING(f);
253 var value_array = [UNDEFINED]; 253 var value_array = [UNDEFINED];
254 while (%SetIteratorNext(iterator, value_array)) { 254 while (%SetIteratorNext(iterator, value_array)) {
255 if (stepping) %DebugPrepareStepInIfStepping(f); 255 if (stepping) %DebugPrepareStepInIfStepping(f);
256 key = value_array[0]; 256 key = value_array[0];
257 %_Call(f, receiver, key, key, this); 257 %_Call(f, receiver, key, key, this);
258 } 258 }
259 } 259 }
260 260
261 // ------------------------------------------------------------------- 261 // -------------------------------------------------------------------
262 262
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 425
426 function MapForEach(f, receiver) { 426 function MapForEach(f, receiver) {
427 if (!IS_MAP(this)) { 427 if (!IS_MAP(this)) {
428 throw MakeTypeError(kIncompatibleMethodReceiver, 428 throw MakeTypeError(kIncompatibleMethodReceiver,
429 'Map.prototype.forEach', this); 429 'Map.prototype.forEach', this);
430 } 430 }
431 431
432 if (!IS_CALLABLE(f)) throw MakeTypeError(kCalledNonCallable, f); 432 if (!IS_CALLABLE(f)) throw MakeTypeError(kCalledNonCallable, f);
433 433
434 var iterator = new MapIterator(this, ITERATOR_KIND_ENTRIES); 434 var iterator = new MapIterator(this, ITERATOR_KIND_ENTRIES);
435 var stepping = DEBUG_IS_ACTIVE && %DebugCallbackSupportsStepping(f); 435 var stepping = DEBUG_IS_STEPPING(f);
436 var value_array = [UNDEFINED, UNDEFINED]; 436 var value_array = [UNDEFINED, UNDEFINED];
437 while (%MapIteratorNext(iterator, value_array)) { 437 while (%MapIteratorNext(iterator, value_array)) {
438 if (stepping) %DebugPrepareStepInIfStepping(f); 438 if (stepping) %DebugPrepareStepInIfStepping(f);
439 %_Call(f, receiver, value_array[1], value_array[0], this); 439 %_Call(f, receiver, value_array[1], value_array[0], this);
440 } 440 }
441 } 441 }
442 442
443 // ------------------------------------------------------------------- 443 // -------------------------------------------------------------------
444 444
445 %SetCode(GlobalMap, MapConstructor); 445 %SetCode(GlobalMap, MapConstructor);
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 "map_has", MapHas, 495 "map_has", MapHas,
496 "map_delete", MapDelete, 496 "map_delete", MapDelete,
497 "set_add", SetAdd, 497 "set_add", SetAdd,
498 "set_has", SetHas, 498 "set_has", SetHas,
499 "set_delete", SetDelete, 499 "set_delete", SetDelete,
500 "map_from_array", MapFromArray, 500 "map_from_array", MapFromArray,
501 "set_from_array",SetFromArray, 501 "set_from_array",SetFromArray,
502 ]); 502 ]);
503 503
504 }) 504 })
OLDNEW
« no previous file with comments | « src/js/array.js ('k') | src/js/generator.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698