OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 // will not properly work with existing scopes. | 377 // will not properly work with existing scopes. |
378 return scope_info1.toString() == scope_info2.toString(); | 378 return scope_info1.toString() == scope_info2.toString(); |
379 } | 379 } |
380 | 380 |
381 // For array of wrapped shared function infos checks that none of them | 381 // For array of wrapped shared function infos checks that none of them |
382 // have activations on stack (of any thread). Throws a Failure exception | 382 // have activations on stack (of any thread). Throws a Failure exception |
383 // if this proves to be false. | 383 // if this proves to be false. |
384 Debug.LiveEditChangeScript.CheckStackActivations = function(shared_wrapper_list, | 384 Debug.LiveEditChangeScript.CheckStackActivations = function(shared_wrapper_list, |
385 change_log) { | 385 change_log) { |
386 var liveedit = Debug.LiveEditChangeScript; | 386 var liveedit = Debug.LiveEditChangeScript; |
387 » | 387 |
388 var shared_list = new Array(); | 388 var shared_list = new Array(); |
389 for (var i = 0; i < shared_wrapper_list.length; i++) { | 389 for (var i = 0; i < shared_wrapper_list.length; i++) { |
390 shared_list[i] = shared_wrapper_list[i].info; | 390 shared_list[i] = shared_wrapper_list[i].info; |
391 } | 391 } |
392 var result = %LiveEditCheckStackActivations(shared_list); | 392 var result = %LiveEditCheckStackActivations(shared_list); |
393 var problems = new Array(); | 393 var problems = new Array(); |
394 for (var i = 0; i < shared_list.length; i++) { | 394 for (var i = 0; i < shared_list.length; i++) { |
395 if (result[i] == liveedit.FunctionPatchabilityStatus.FUNCTION_BLOCKED_ON_STA
CK) { | 395 if (result[i] == liveedit.FunctionPatchabilityStatus.FUNCTION_BLOCKED_ON_STA
CK) { |
396 var shared = shared_list[i]; | 396 var shared = shared_list[i]; |
397 var description = { | 397 var description = { |
(...skipping 19 matching lines...) Expand all Loading... |
417 | 417 |
418 // A logical failure in liveedit process. This means that change_log | 418 // A logical failure in liveedit process. This means that change_log |
419 // is valid and consistent description of what happened. | 419 // is valid and consistent description of what happened. |
420 Debug.LiveEditChangeScript.Failure = function(message) { | 420 Debug.LiveEditChangeScript.Failure = function(message) { |
421 this.message = message; | 421 this.message = message; |
422 } | 422 } |
423 | 423 |
424 Debug.LiveEditChangeScript.Failure.prototype.toString = function() { | 424 Debug.LiveEditChangeScript.Failure.prototype.toString = function() { |
425 return "LiveEdit Failure: " + this.message; | 425 return "LiveEdit Failure: " + this.message; |
426 } | 426 } |
OLD | NEW |