Commit 5805526d authored by kozyatinskiy's avatar kozyatinskiy Committed by Commit bot

[inspector] removed unused code from JavaScriptSourceFrame

And fixed gcc compilation.

BUG=none
R=alph@chromium.org,dgozman@chromium.org

Review-Url: https://codereview.chromium.org/2668363002
Cr-Commit-Position: refs/heads/master@{#42895}
parent d07f6540
...@@ -390,8 +390,8 @@ DebuggerScript._frameMirrorToJSCallFrame = function(frameMirror) ...@@ -390,8 +390,8 @@ DebuggerScript._frameMirrorToJSCallFrame = function(frameMirror)
details = { details = {
"functionName": ensureFuncMirror().debugName(), "functionName": ensureFuncMirror().debugName(),
"location": { "location": {
"lineNumber": line(), "lineNumber": ensureLocation().line,
"columnNumber": column(), "columnNumber": ensureLocation().column,
"scriptId": String(script.id()) "scriptId": String(script.id())
}, },
"this": thisObject, "this": thisObject,
...@@ -449,22 +449,6 @@ DebuggerScript._frameMirrorToJSCallFrame = function(frameMirror) ...@@ -449,22 +449,6 @@ DebuggerScript._frameMirrorToJSCallFrame = function(frameMirror)
return location; return location;
} }
/**
* @return {number}
*/
function line()
{
return ensureLocation().line;
}
/**
* @return {number}
*/
function column()
{
return ensureLocation().column;
}
/** /**
* @return {number} * @return {number}
*/ */
...@@ -477,15 +461,6 @@ DebuggerScript._frameMirrorToJSCallFrame = function(frameMirror) ...@@ -477,15 +461,6 @@ DebuggerScript._frameMirrorToJSCallFrame = function(frameMirror)
return 0; return 0;
} }
/**
* @return {number}
*/
function sourceID()
{
var script = ensureScriptMirror();
return script.id();
}
/** /**
* @param {string} expression * @param {string} expression
* @return {*} * @return {*}
...@@ -515,9 +490,6 @@ DebuggerScript._frameMirrorToJSCallFrame = function(frameMirror) ...@@ -515,9 +490,6 @@ DebuggerScript._frameMirrorToJSCallFrame = function(frameMirror)
} }
return { return {
"sourceID": sourceID,
"line": line,
"column": column,
"contextId": contextId, "contextId": contextId,
"thisObject": thisObject, "thisObject": thisObject,
"evaluate": evaluate, "evaluate": evaluate,
......
...@@ -29,9 +29,6 @@ var RawLocation; ...@@ -29,9 +29,6 @@ var RawLocation;
var JavaScriptCallFrameDetails; var JavaScriptCallFrameDetails;
/** @typedef {{ /** @typedef {{
sourceID: function():(number),
line: function():number,
column: function():number,
contextId: function():number, contextId: function():number,
thisObject: !Object, thisObject: !Object,
evaluate: function(string):*, evaluate: function(string):*,
......
...@@ -61,18 +61,6 @@ int JavaScriptCallFrame::callV8FunctionReturnInt(const char* name) const { ...@@ -61,18 +61,6 @@ int JavaScriptCallFrame::callV8FunctionReturnInt(const char* name) const {
return result.As<v8::Int32>()->Value(); return result.As<v8::Int32>()->Value();
} }
int JavaScriptCallFrame::sourceID() const {
return callV8FunctionReturnInt("sourceID");
}
int JavaScriptCallFrame::line() const {
return callV8FunctionReturnInt("line");
}
int JavaScriptCallFrame::column() const {
return callV8FunctionReturnInt("column");
}
int JavaScriptCallFrame::contextId() const { int JavaScriptCallFrame::contextId() const {
return callV8FunctionReturnInt("contextId"); return callV8FunctionReturnInt("contextId");
} }
......
...@@ -49,9 +49,6 @@ class JavaScriptCallFrame { ...@@ -49,9 +49,6 @@ class JavaScriptCallFrame {
} }
~JavaScriptCallFrame(); ~JavaScriptCallFrame();
int sourceID() const;
int line() const;
int column() const;
int contextId() const; int contextId() const;
bool isAtReturn() const; bool isAtReturn() const;
......
...@@ -152,6 +152,7 @@ String16 V8Debugger::setBreakpoint(const ScriptBreakpoint& breakpoint, ...@@ -152,6 +152,7 @@ String16 V8Debugger::setBreakpoint(const ScriptBreakpoint& breakpoint,
toV8String(m_isolate, breakpoint.condition)) toV8String(m_isolate, breakpoint.condition))
.FromMaybe(false); .FromMaybe(false);
DCHECK(success); DCHECK(success);
USE(success);
v8::Local<v8::Function> setBreakpointFunction = v8::Local<v8::Function>::Cast( v8::Local<v8::Function> setBreakpointFunction = v8::Local<v8::Function>::Cast(
m_debuggerScript.Get(m_isolate) m_debuggerScript.Get(m_isolate)
...@@ -186,6 +187,7 @@ void V8Debugger::removeBreakpoint(const String16& breakpointId) { ...@@ -186,6 +187,7 @@ void V8Debugger::removeBreakpoint(const String16& breakpointId) {
toV8String(m_isolate, breakpointId)) toV8String(m_isolate, breakpointId))
.FromMaybe(false); .FromMaybe(false);
DCHECK(success); DCHECK(success);
USE(success);
v8::Local<v8::Function> removeBreakpointFunction = v8::Local<v8::Function> removeBreakpointFunction =
v8::Local<v8::Function>::Cast( v8::Local<v8::Function>::Cast(
...@@ -224,6 +226,7 @@ void V8Debugger::setBreakpointsActivated(bool activated) { ...@@ -224,6 +226,7 @@ void V8Debugger::setBreakpointsActivated(bool activated) {
v8::Boolean::New(m_isolate, activated)) v8::Boolean::New(m_isolate, activated))
.FromMaybe(false); .FromMaybe(false);
DCHECK(success); DCHECK(success);
USE(success);
v8::Local<v8::Function> setBreakpointsActivated = v8::Local<v8::Function> setBreakpointsActivated =
v8::Local<v8::Function>::Cast( v8::Local<v8::Function>::Cast(
m_debuggerScript.Get(m_isolate) m_debuggerScript.Get(m_isolate)
......
...@@ -36,6 +36,7 @@ class WasmTranslation::TranslatorImpl { ...@@ -36,6 +36,7 @@ class WasmTranslation::TranslatorImpl {
virtual void Init(Isolate*, WasmTranslation*, V8DebuggerAgentImpl*) = 0; virtual void Init(Isolate*, WasmTranslation*, V8DebuggerAgentImpl*) = 0;
virtual void Translate(TransLocation*) = 0; virtual void Translate(TransLocation*) = 0;
virtual void TranslateBack(TransLocation*) = 0; virtual void TranslateBack(TransLocation*) = 0;
virtual ~TranslatorImpl() {}
class RawTranslator; class RawTranslator;
class DisassemblingTranslator; class DisassemblingTranslator;
...@@ -60,7 +61,7 @@ class WasmTranslation::TranslatorImpl::DisassemblingTranslator ...@@ -60,7 +61,7 @@ class WasmTranslation::TranslatorImpl::DisassemblingTranslator
void Init(Isolate* isolate, WasmTranslation* translation, void Init(Isolate* isolate, WasmTranslation* translation,
V8DebuggerAgentImpl* agent) override { V8DebuggerAgentImpl* agent) override {
// Register fake scripts for each function in this wasm module/script. // Register fake scripts for each function in this wasm module/script.
Handle<debug::WasmScript> script = script_.Get(isolate); Local<debug::WasmScript> script = script_.Get(isolate);
int num_functions = script->NumFunctions(); int num_functions = script->NumFunctions();
int num_imported_functions = script->NumImportedFunctions(); int num_imported_functions = script->NumImportedFunctions();
DCHECK_LE(0, num_imported_functions); DCHECK_LE(0, num_imported_functions);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment