[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}
This commit is contained in:
parent
ae8bc6ed2a
commit
03179ab375
@ -166,7 +166,8 @@ void adjustBreakpointLocation(const V8DebuggerScript& script,
|
||||
bestMatch = nextMatch - offset < offset - prevMatch ? nextMatch : prevMatch;
|
||||
}
|
||||
bestMatch += searchRegionOffset;
|
||||
v8::debug::Location hintPosition = script.location(bestMatch);
|
||||
v8::debug::Location hintPosition =
|
||||
script.location(static_cast<int>(bestMatch));
|
||||
if (hintPosition.IsEmpty()) return;
|
||||
breakpoint->line_number = hintPosition.GetLineNumber();
|
||||
breakpoint->column_number = hintPosition.GetColumnNumber();
|
||||
@ -1096,14 +1097,15 @@ void V8DebuggerAgentImpl::didParseSource(
|
||||
scriptRef->endLine(), scriptRef->endColumn(), contextId,
|
||||
scriptRef->hash(), std::move(executionContextAuxDataParam),
|
||||
isLiveEditParam, std::move(sourceMapURLParam), hasSourceURLParam,
|
||||
isModuleParam, scriptRef->source().length(), std::move(stackTrace));
|
||||
isModuleParam, static_cast<int>(scriptRef->source().length()),
|
||||
std::move(stackTrace));
|
||||
} else {
|
||||
m_frontend.scriptFailedToParse(
|
||||
scriptId, scriptURL, scriptRef->startLine(), scriptRef->startColumn(),
|
||||
scriptRef->endLine(), scriptRef->endColumn(), contextId,
|
||||
scriptRef->hash(), std::move(executionContextAuxDataParam),
|
||||
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;
|
||||
|
@ -78,9 +78,10 @@ v8::Local<v8::Context> TaskRunner::GetContext(int context_group_id) {
|
||||
}
|
||||
|
||||
int TaskRunner::GetContextGroupId(v8::Local<v8::Context> context) {
|
||||
return reinterpret_cast<intptr_t>(
|
||||
context->GetAlignedPointerFromEmbedderData(kContextGroupIdIndex)) /
|
||||
2;
|
||||
return static_cast<int>(
|
||||
reinterpret_cast<intptr_t>(
|
||||
context->GetAlignedPointerFromEmbedderData(kContextGroupIdIndex)) /
|
||||
2);
|
||||
}
|
||||
|
||||
void TaskRunner::Run() {
|
||||
|
Loading…
Reference in New Issue
Block a user