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

Unified Diff: src/objects.h

Issue 2668613002: [inspector] added Debugger.moduleRequested notification
Patch Set: addressed comments 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
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index 715041c883033073a9dc2a167c535c1bf372d0d6..480e133de4f892722003a23d3754381816101fdf 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, Object)
+
neis 2017/02/01 13:38:55 Shouldn't this always be a Script?
kozy 2017/02/01 16:39:25 Done.
// 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,

Powered by Google App Engine
This is Rietveld 408576698