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

Unified Diff: src/liveedit-delay.js

Issue 914003: LiveEdit: patch positions in function (Closed)
Patch Set: merge Created 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/liveedit.cc ('k') | src/runtime.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/liveedit-delay.js
diff --git a/src/liveedit-delay.js b/src/liveedit-delay.js
index 12479b13c819e7c62b06a6e62bf38441c648d488..41f894a2135b2c9adbb72995cf94b14339cdf8e0 100644
--- a/src/liveedit-delay.js
+++ b/src/liveedit-delay.js
@@ -424,3 +424,8 @@ Debug.LiveEditChangeScript.Failure = function(message) {
Debug.LiveEditChangeScript.Failure.prototype.toString = function() {
return "LiveEdit Failure: " + this.message;
}
+
+// A testing entry.
+Debug.LiveEditChangeScript.GetPcFromSourcePos = function(func, source_pos) {
+ return %GetFunctionCodePositionFromSource(func, source_pos);
+}
« no previous file with comments | « src/liveedit.cc ('k') | src/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698