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

Unified Diff: src/debug/mirrors.js

Issue 1840713002: [V8] Add FunctionMirror.prototype.contextDebugId method (Closed) Base URL: https://chromium.googlesource.com/v8/v8.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/runtime/runtime.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/debug/mirrors.js
diff --git a/src/debug/mirrors.js b/src/debug/mirrors.js
index be76f5873d029fd84199aa5ad4d898cc767a79d5..29a25e86a606e2d39dcdc9ef0b8d07e735016120 100644
--- a/src/debug/mirrors.js
+++ b/src/debug/mirrors.js
@@ -1037,6 +1037,13 @@ FunctionMirror.prototype.toText = function() {
};
+FunctionMirror.prototype.contextDebugId = function() {
Yang 2016/03/29 11:52:17 Why do we not return a ContextMirror like ScriptMi
kozy 2016/03/29 17:45:15 Done.
+ if (this.resolved()) {
+ return %FunctionGetContextDebugId(this.value_);
+ }
+};
+
+
/**
* Mirror object for unresolved functions.
* @param {string} value The name for the unresolved function reflected by this
« no previous file with comments | « no previous file | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698