Commit 03179ab3 authored by kozyatinskiy's avatar kozyatinskiy Committed by Commit bot

[inspector] fixed compilation with gyp

BUG=none
TBR=dgozman@chromium.org

Review-Url: https://codereview.chromium.org/2773723002
Cr-Commit-Position: refs/heads/master@{#44064}
parent ae8bc6ed
...@@ -166,7 +166,8 @@ void adjustBreakpointLocation(const V8DebuggerScript& script, ...@@ -166,7 +166,8 @@ void adjustBreakpointLocation(const V8DebuggerScript& script,
bestMatch = nextMatch - offset < offset - prevMatch ? nextMatch : prevMatch; bestMatch = nextMatch - offset < offset - prevMatch ? nextMatch : prevMatch;
} }
bestMatch += searchRegionOffset; bestMatch += searchRegionOffset;
v8::debug::Location hintPosition = script.location(bestMatch); v8::debug::Location hintPosition =
script.location(static_cast<int>(bestMatch));
if (hintPosition.IsEmpty()) return; if (hintPosition.IsEmpty()) return;
breakpoint->line_number = hintPosition.GetLineNumber(); breakpoint->line_number = hintPosition.GetLineNumber();
breakpoint->column_number = hintPosition.GetColumnNumber(); breakpoint->column_number = hintPosition.GetColumnNumber();
...@@ -1096,14 +1097,15 @@ void V8DebuggerAgentImpl::didParseSource( ...@@ -1096,14 +1097,15 @@ void V8DebuggerAgentImpl::didParseSource(
scriptRef->endLine(), scriptRef->endColumn(), contextId, scriptRef->endLine(), scriptRef->endColumn(), contextId,
scriptRef->hash(), std::move(executionContextAuxDataParam), scriptRef->hash(), std::move(executionContextAuxDataParam),
isLiveEditParam, std::move(sourceMapURLParam), hasSourceURLParam, isLiveEditParam, std::move(sourceMapURLParam), hasSourceURLParam,
isModuleParam, scriptRef->source().length(), std::move(stackTrace)); isModuleParam, static_cast<int>(scriptRef->source().length()),
std::move(stackTrace));
} else { } else {
m_frontend.scriptFailedToParse( m_frontend.scriptFailedToParse(
scriptId, scriptURL, scriptRef->startLine(), scriptRef->startColumn(), scriptId, scriptURL, scriptRef->startLine(), scriptRef->startColumn(),
scriptRef->endLine(), scriptRef->endColumn(), contextId, scriptRef->endLine(), scriptRef->endColumn(), contextId,
scriptRef->hash(), std::move(executionContextAuxDataParam), scriptRef->hash(), std::move(executionContextAuxDataParam),
std::move(sourceMapURLParam), hasSourceURLParam, isModuleParam, std::move(sourceMapURLParam), hasSourceURLParam, isModuleParam,
scriptRef->source().length(), std::move(stackTrace)); static_cast<int>(scriptRef->source().length()), std::move(stackTrace));
} }
if (scriptURL.isEmpty() || !success) return; if (scriptURL.isEmpty() || !success) return;
......
...@@ -78,9 +78,10 @@ v8::Local<v8::Context> TaskRunner::GetContext(int context_group_id) { ...@@ -78,9 +78,10 @@ v8::Local<v8::Context> TaskRunner::GetContext(int context_group_id) {
} }
int TaskRunner::GetContextGroupId(v8::Local<v8::Context> context) { int TaskRunner::GetContextGroupId(v8::Local<v8::Context> context) {
return reinterpret_cast<intptr_t>( return static_cast<int>(
context->GetAlignedPointerFromEmbedderData(kContextGroupIdIndex)) / reinterpret_cast<intptr_t>(
2; context->GetAlignedPointerFromEmbedderData(kContextGroupIdIndex)) /
2);
} }
void TaskRunner::Run() { void TaskRunner::Run() {
......
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