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

Unified Diff: src/debug/debug-interface.h

Issue 2449213002: [inspector] migrate scriptParsed and getCompiledScripts to native (Closed)
Patch Set: less radical approach, expose Script in the same way as v8::Message Created 4 years, 2 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/debug/debug-interface.h
diff --git a/src/debug/debug-interface.h b/src/debug/debug-interface.h
index 0577ecc4ca2b5980aaa979da0e74831b9a2bea47..fd0eb7792ff24a60526044d8a0a1936ef0e2357a 100644
--- a/src/debug/debug-interface.h
+++ b/src/debug/debug-interface.h
@@ -138,6 +138,26 @@ class DebugInterface {
static void PrepareStep(Isolate* isolate, StepAction action);
static void ClearStepping(Isolate* isolate);
+
+ class Script {
+ public:
+ ScriptOriginOptions OriginOptions() const;
+ bool WasCompiled() const;
+ int Id() const;
+ int LineOffset() const;
+ int ColumnOffset() const;
+ MaybeLocal<Array> LineEnds(v8::Local<v8::Context>) const;
+ MaybeLocal<String> Name(v8::Local<v8::Context>) const;
+ MaybeLocal<String> SourceURL(v8::Local<v8::Context>) const;
+ MaybeLocal<String> SourceMappingURL(v8::Local<v8::Context>) const;
+ MaybeLocal<String> ContextData(v8::Local<v8::Context>) const;
+ MaybeLocal<String> Source(v8::Local<v8::Context>) const;
+
+ static MaybeLocal<Script> Wrap(v8::Local<v8::Context>,
+ v8::Local<v8::Object>);
+ };
+
+ static MaybeLocal<Array> GetLoadedScripts(Isolate* isolate);
};
} // namespace v8
« src/api.cc ('K') | « src/api.cc ('k') | src/inspector/debugger-script.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698