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

Side by Side Diff: src/debug/debug-interface.h

Issue 2499273003: [inspector] introduced Script::TYPE_INSPECTOR (Closed)
Patch Set: rebased 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
« no previous file with comments | « src/compiler.cc ('k') | src/frames.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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-util.h" 9 #include "include/v8-util.h"
10 #include "include/v8.h" 10 #include "include/v8.h"
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 * Returns empty local if not called with a valid wrapper of 191 * Returns empty local if not called with a valid wrapper of
192 * v8::internal::Script. 192 * v8::internal::Script.
193 */ 193 */
194 static MaybeLocal<Script> Wrap(Isolate* isolate, 194 static MaybeLocal<Script> Wrap(Isolate* isolate,
195 v8::Local<v8::Object> script); 195 v8::Local<v8::Object> script);
196 196
197 private: 197 private:
198 int GetSourcePosition(const Location& location) const; 198 int GetSourcePosition(const Location& location) const;
199 }; 199 };
200 200
201 /**
202 * Return array of compiled scripts.
203 */
204 static void GetLoadedScripts(Isolate* isolate, 201 static void GetLoadedScripts(Isolate* isolate,
205 PersistentValueVector<Script>& scripts); 202 PersistentValueVector<Script>& scripts);
206 203
207 /** 204 /**
208 * Compute the disassembly of a wasm function. 205 * Compute the disassembly of a wasm function.
209 * Returns the disassembly string and a list of <byte_offset, line, column> 206 * Returns the disassembly string and a list of <byte_offset, line, column>
210 * entries, mapping wasm byte offsets to line and column in the disassembly. 207 * entries, mapping wasm byte offsets to line and column in the disassembly.
211 * The list is guaranteed to be ordered by the byte_offset. 208 * The list is guaranteed to be ordered by the byte_offset.
212 */ 209 */
213 static std::pair<std::string, std::vector<std::tuple<uint32_t, int, int>>> 210 static std::pair<std::string, std::vector<std::tuple<uint32_t, int, int>>>
214 DisassembleWasmFunction(Isolate* isolate, v8::Local<v8::Object> script, 211 DisassembleWasmFunction(Isolate* isolate, v8::Local<v8::Object> script,
215 int function_index); 212 int function_index);
213 static MaybeLocal<UnboundScript> CompileInspectorScript(Isolate* isolate,
214 Local<String> source);
216 }; 215 };
217 216
218 } // namespace v8 217 } // namespace v8
219 218
220 #endif // V8_DEBUG_DEBUG_INTERFACE_H_ 219 #endif // V8_DEBUG_DEBUG_INTERFACE_H_
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/frames.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698