Bug 1529680 - [release 127] [Breakpoints] Improve column breakpoint performance (#8000). r=dwalsh

This commit is contained in:
Jason Laster 2019-02-25 10:02:35 -05:00 коммит произвёл Jason Laster
Родитель 62dde4d62a
Коммит dd27ec4805
2 изменённых файлов: 10 добавлений и 3 удалений

Просмотреть файл

@ -25,6 +25,10 @@ const _getAllGeneratedLocations = dispatcher.task("getAllGeneratedLocations", {
queue: true queue: true
}); });
const _getOriginalLocation = dispatcher.task("getOriginalLocation", {
queue: true
});
export const setAssetRootURL = async (assetRoot: string): Promise<void> => export const setAssetRootURL = async (assetRoot: string): Promise<void> =>
dispatcher.invoke("setAssetRootURL", assetRoot); dispatcher.invoke("setAssetRootURL", assetRoot);
@ -71,8 +75,7 @@ export const getAllGeneratedLocations = async (
export const getOriginalLocation = async ( export const getOriginalLocation = async (
location: SourceLocation, location: SourceLocation,
options: locationOptions = {} options: locationOptions = {}
): Promise<SourceLocation> => ): Promise<SourceLocation> => _getOriginalLocation(location, options);
dispatcher.invoke("getOriginalLocation", location, options);
export const getFileGeneratedRange = async ( export const getFileGeneratedRange = async (
originalSource: Source originalSource: Source

Просмотреть файл

@ -140,6 +140,10 @@ const _getAllGeneratedLocations = dispatcher.task("getAllGeneratedLocations", {
queue: true queue: true
}); });
const _getOriginalLocation = dispatcher.task("getOriginalLocation", {
queue: true
});
const setAssetRootURL = exports.setAssetRootURL = async assetRoot => dispatcher.invoke("setAssetRootURL", assetRoot); const setAssetRootURL = exports.setAssetRootURL = async assetRoot => dispatcher.invoke("setAssetRootURL", assetRoot);
const getOriginalURLs = exports.getOriginalURLs = async generatedSource => dispatcher.invoke("getOriginalURLs", generatedSource); const getOriginalURLs = exports.getOriginalURLs = async generatedSource => dispatcher.invoke("getOriginalURLs", generatedSource);
@ -153,7 +157,7 @@ const getGeneratedLocation = exports.getGeneratedLocation = async (location, ori
const getAllGeneratedLocations = exports.getAllGeneratedLocations = async (location, originalSource) => _getAllGeneratedLocations(location, originalSource); const getAllGeneratedLocations = exports.getAllGeneratedLocations = async (location, originalSource) => _getAllGeneratedLocations(location, originalSource);
const getOriginalLocation = exports.getOriginalLocation = async (location, options = {}) => dispatcher.invoke("getOriginalLocation", location, options); const getOriginalLocation = exports.getOriginalLocation = async (location, options = {}) => _getOriginalLocation(location, options);
const getFileGeneratedRange = exports.getFileGeneratedRange = async originalSource => dispatcher.invoke("getFileGeneratedRange", originalSource); const getFileGeneratedRange = exports.getFileGeneratedRange = async originalSource => dispatcher.invoke("getFileGeneratedRange", originalSource);