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

Unified Diff: src/objects.h

Issue 2668613002: [inspector] added Debugger.moduleRequested notification
Patch Set: added missing test Created 3 years, 11 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/inspector/v8-debugger-agent-impl.cc ('k') | src/objects.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index 715041c883033073a9dc2a167c535c1bf372d0d6..6bfc0bd77735bca41ae47be1e88db3a127d9434a 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -7914,6 +7914,9 @@ class Module : public Struct {
// ModuleInfo::module_requests.
DECL_ACCESSORS(requested_modules, FixedArray)
+ // [script]: Script from which the module originates.
+ DECL_ACCESSORS(script, Script)
+
// Get the ModuleInfo associated with the code.
inline ModuleInfo* info() const;
@@ -7948,7 +7951,8 @@ class Module : public Struct {
static const int kModuleNamespaceOffset = kHashOffset + kPointerSize;
static const int kRequestedModulesOffset =
kModuleNamespaceOffset + kPointerSize;
- static const int kSize = kRequestedModulesOffset + kPointerSize;
+ static const int kScriptOffset = kRequestedModulesOffset + kPointerSize;
+ static const int kSize = kScriptOffset + kPointerSize;
private:
static void CreateExport(Handle<Module> module, int cell_index,
« no previous file with comments | « src/inspector/v8-debugger-agent-impl.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698