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

Side by Side 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, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_DEBUG_DEBUG_INTERFACE_H_ 5 #ifndef V8_DEBUG_DEBUG_INTERFACE_H_
6 #define V8_DEBUG_DEBUG_INTERFACE_H_ 6 #define V8_DEBUG_DEBUG_INTERFACE_H_
7 7
8 #include "include/v8-debug.h" 8 #include "include/v8-debug.h"
9 #include "include/v8.h" 9 #include "include/v8.h"
10 10
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 enum StepAction { 131 enum StepAction {
132 StepOut = 0, // Step out of the current function. 132 StepOut = 0, // Step out of the current function.
133 StepNext = 1, // Step to the next statement in the current function. 133 StepNext = 1, // Step to the next statement in the current function.
134 StepIn = 2, // Step into new functions invoked or the next statement 134 StepIn = 2, // Step into new functions invoked or the next statement
135 // in the current function. 135 // in the current function.
136 StepFrame = 3 // Step into a new frame or return to previous frame. 136 StepFrame = 3 // Step into a new frame or return to previous frame.
137 }; 137 };
138 138
139 static void PrepareStep(Isolate* isolate, StepAction action); 139 static void PrepareStep(Isolate* isolate, StepAction action);
140 static void ClearStepping(Isolate* isolate); 140 static void ClearStepping(Isolate* isolate);
141
142 class Script {
143 public:
144 ScriptOriginOptions OriginOptions() const;
145 bool WasCompiled() const;
146 int Id() const;
147 int LineOffset() const;
148 int ColumnOffset() const;
149 MaybeLocal<Array> LineEnds(v8::Local<v8::Context>) const;
150 MaybeLocal<String> Name(v8::Local<v8::Context>) const;
151 MaybeLocal<String> SourceURL(v8::Local<v8::Context>) const;
152 MaybeLocal<String> SourceMappingURL(v8::Local<v8::Context>) const;
153 MaybeLocal<String> ContextData(v8::Local<v8::Context>) const;
154 MaybeLocal<String> Source(v8::Local<v8::Context>) const;
155
156 static MaybeLocal<Script> Wrap(v8::Local<v8::Context>,
157 v8::Local<v8::Object>);
158 };
159
160 static MaybeLocal<Array> GetLoadedScripts(Isolate* isolate);
141 }; 161 };
142 162
143 } // namespace v8 163 } // namespace v8
144 164
145 #endif // V8_DEBUG_DEBUG_INTERFACE_H_ 165 #endif // V8_DEBUG_DEBUG_INTERFACE_H_
OLDNEW
« 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