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

Side by Side Diff: third_party/WebKit/Source/platform/v8_inspector/DebuggerScript.js

Issue 1811853002: [DevTools] Move evaluateOnCallFrame to native (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 var location = ensureFuncMirror().sourceLocation(); 540 var location = ensureFuncMirror().sourceLocation();
541 return location ? location.line : 0; 541 return location ? location.line : 0;
542 } 542 }
543 543
544 function functionColumn() 544 function functionColumn()
545 { 545 {
546 var location = ensureFuncMirror().sourceLocation(); 546 var location = ensureFuncMirror().sourceLocation();
547 return location ? location.column : 0; 547 return location ? location.column : 0;
548 } 548 }
549 549
550 function evaluate(expression, scopeExtension) 550 function evaluate(expression)
551 { 551 {
552 return frameMirror.evaluate(expression, false, scopeExtension).value(); 552 return frameMirror.evaluate(expression, false).value();
553 } 553 }
554 554
555 function restart() 555 function restart()
556 { 556 {
557 return frameMirror.restart(); 557 return frameMirror.restart();
558 } 558 }
559 559
560 function setVariableValue(scopeNumber, variableName, newValue) 560 function setVariableValue(scopeNumber, variableName, newValue)
561 { 561 {
562 return DebuggerScript._setScopeVariableValue(frameMirror, scopeNumber, v ariableName, newValue); 562 return DebuggerScript._setScopeVariableValue(frameMirror, scopeNumber, v ariableName, newValue);
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
649 "parentPromise": eventData.parentPromise().value(), 649 "parentPromise": eventData.parentPromise().value(),
650 "status": eventData.status() 650 "status": eventData.status()
651 }; 651 };
652 } 652 }
653 653
654 // We never resolve Mirror by its handle so to avoid memory leaks caused by Mirr ors in the cache we disable it. 654 // We never resolve Mirror by its handle so to avoid memory leaks caused by Mirr ors in the cache we disable it.
655 ToggleMirrorCache(false); 655 ToggleMirrorCache(false);
656 656
657 return DebuggerScript; 657 return DebuggerScript;
658 })(); 658 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698