7
7
exports [ "sourceMap" ] = factory ( require ( "fs" ) , require ( "path" ) ) ;
8
8
else
9
9
root [ "sourceMap" ] = factory ( root [ "fs" ] , root [ "path" ] ) ;
10
- } ) ( this , function ( __WEBPACK_EXTERNAL_MODULE_11__ , __WEBPACK_EXTERNAL_MODULE_12__ ) {
10
+ } ) ( this , function ( __WEBPACK_EXTERNAL_MODULE_10__ , __WEBPACK_EXTERNAL_MODULE_11__ ) {
11
11
return /******/ ( function ( modules ) { // webpackBootstrap
12
12
/******/ // The module cache
13
13
/******/ var installedModules = { } ;
@@ -61,7 +61,7 @@ return /******/ (function(modules) { // webpackBootstrap
61
61
*/
62
62
exports . SourceMapGenerator = __webpack_require__ ( 1 ) . SourceMapGenerator ;
63
63
exports . SourceMapConsumer = __webpack_require__ ( 7 ) . SourceMapConsumer ;
64
- exports . SourceNode = __webpack_require__ ( 14 ) . SourceNode ;
64
+ exports . SourceNode = __webpack_require__ ( 13 ) . SourceNode ;
65
65
66
66
67
67
/***/ } ) ,
@@ -1413,9 +1413,8 @@ return /******/ (function(modules) { // webpackBootstrap
1413
1413
var binarySearch = __webpack_require__ ( 8 ) ;
1414
1414
var ArraySet = __webpack_require__ ( 5 ) . ArraySet ;
1415
1415
var base64VLQ = __webpack_require__ ( 2 ) ;
1416
- var quickSort = __webpack_require__ ( 9 ) . quickSort ;
1417
- var readWasm = __webpack_require__ ( 10 ) ;
1418
- var wasm = __webpack_require__ ( 13 ) ;
1416
+ var readWasm = __webpack_require__ ( 9 ) ;
1417
+ var wasm = __webpack_require__ ( 12 ) ;
1419
1418
1420
1419
function SourceMapConsumer ( aSourceMap , aSourceMapURL ) {
1421
1420
var sourceMap = aSourceMap ;
@@ -2314,14 +2313,14 @@ return /******/ (function(modules) { // webpackBootstrap
2314
2313
IndexedSourceMapConsumer . prototype . _sortGeneratedMappings =
2315
2314
function IndexedSourceMapConsumer_sortGeneratedMappings ( ) {
2316
2315
const mappings = this . _generatedMappingsUnsorted ;
2317
- quickSort ( mappings , util . compareByGeneratedPositionsDeflated ) ;
2316
+ mappings . sort ( util . compareByGeneratedPositionsDeflated ) ;
2318
2317
this . __generatedMappings = mappings ;
2319
2318
} ;
2320
2319
2321
2320
IndexedSourceMapConsumer . prototype . _sortOriginalMappings =
2322
2321
function IndexedSourceMapConsumer_sortOriginalMappings ( ) {
2323
2322
const mappings = this . _originalMappingsUnsorted ;
2324
- quickSort ( mappings , util . compareByOriginalPositions ) ;
2323
+ mappings . sort ( util . compareByOriginalPositions ) ;
2325
2324
this . __originalMappings = mappings ;
2326
2325
} ;
2327
2326
@@ -2814,126 +2813,6 @@ return /******/ (function(modules) { // webpackBootstrap
2814
2813
2815
2814
/***/ } ) ,
2816
2815
/* 9 */
2817
- /***/ ( function ( module , exports ) {
2818
-
2819
- /* -*- Mode: js; js-indent-level: 2; -*- */
2820
- /*
2821
- * Copyright 2011 Mozilla Foundation and contributors
2822
- * Licensed under the New BSD license. See LICENSE or:
2823
- * http://opensource.org/licenses/BSD-3-Clause
2824
- */
2825
-
2826
- // It turns out that some (most?) JavaScript engines don't self-host
2827
- // `Array.prototype.sort`. This makes sense because C++ will likely remain
2828
- // faster than JS when doing raw CPU-intensive sorting. However, when using a
2829
- // custom comparator function, calling back and forth between the VM's C++ and
2830
- // JIT'd JS is rather slow *and* loses JIT type information, resulting in
2831
- // worse generated code for the comparator function than would be optimal. In
2832
- // fact, when sorting with a comparator, these costs outweigh the benefits of
2833
- // sorting in C++. By using our own JS-implemented Quick Sort (below), we get
2834
- // a ~3500ms mean speed-up in `bench/bench.html`.
2835
-
2836
- /**
2837
- * Swap the elements indexed by `x` and `y` in the array `ary`.
2838
- *
2839
- * @param {Array } ary
2840
- * The array.
2841
- * @param {Number } x
2842
- * The index of the first item.
2843
- * @param {Number } y
2844
- * The index of the second item.
2845
- */
2846
- function swap ( ary , x , y ) {
2847
- var temp = ary [ x ] ;
2848
- ary [ x ] = ary [ y ] ;
2849
- ary [ y ] = temp ;
2850
- }
2851
-
2852
- /**
2853
- * Returns a random integer within the range `low .. high` inclusive.
2854
- *
2855
- * @param {Number } low
2856
- * The lower bound on the range.
2857
- * @param {Number } high
2858
- * The upper bound on the range.
2859
- */
2860
- function randomIntInRange ( low , high ) {
2861
- return Math . round ( low + ( Math . random ( ) * ( high - low ) ) ) ;
2862
- }
2863
-
2864
- /**
2865
- * The Quick Sort algorithm.
2866
- *
2867
- * @param {Array } ary
2868
- * An array to sort.
2869
- * @param {function } comparator
2870
- * Function to use to compare two items.
2871
- * @param {Number } p
2872
- * Start index of the array
2873
- * @param {Number } r
2874
- * End index of the array
2875
- */
2876
- function doQuickSort ( ary , comparator , p , r ) {
2877
- // If our lower bound is less than our upper bound, we (1) partition the
2878
- // array into two pieces and (2) recurse on each half. If it is not, this is
2879
- // the empty array and our base case.
2880
-
2881
- if ( p < r ) {
2882
- // (1) Partitioning.
2883
- //
2884
- // The partitioning chooses a pivot between `p` and `r` and moves all
2885
- // elements that are less than or equal to the pivot to the before it, and
2886
- // all the elements that are greater than it after it. The effect is that
2887
- // once partition is done, the pivot is in the exact place it will be when
2888
- // the array is put in sorted order, and it will not need to be moved
2889
- // again. This runs in O(n) time.
2890
-
2891
- // Always choose a random pivot so that an input array which is reverse
2892
- // sorted does not cause O(n^2) running time.
2893
- var pivotIndex = randomIntInRange ( p , r ) ;
2894
- var i = p - 1 ;
2895
-
2896
- swap ( ary , pivotIndex , r ) ;
2897
- var pivot = ary [ r ] ;
2898
-
2899
- // Immediately after `j` is incremented in this loop, the following hold
2900
- // true:
2901
- //
2902
- // * Every element in `ary[p .. i]` is less than or equal to the pivot.
2903
- //
2904
- // * Every element in `ary[i+1 .. j-1]` is greater than the pivot.
2905
- for ( var j = p ; j < r ; j ++ ) {
2906
- if ( comparator ( ary [ j ] , pivot ) <= 0 ) {
2907
- i += 1 ;
2908
- swap ( ary , i , j ) ;
2909
- }
2910
- }
2911
-
2912
- swap ( ary , i + 1 , j ) ;
2913
- var q = i + 1 ;
2914
-
2915
- // (2) Recurse on each half.
2916
-
2917
- doQuickSort ( ary , comparator , p , q - 1 ) ;
2918
- doQuickSort ( ary , comparator , q + 1 , r ) ;
2919
- }
2920
- }
2921
-
2922
- /**
2923
- * Sort the given array in-place with the given comparator function.
2924
- *
2925
- * @param {Array } ary
2926
- * An array to sort.
2927
- * @param {function } comparator
2928
- * Function to use to compare two items.
2929
- */
2930
- exports . quickSort = function ( ary , comparator ) {
2931
- doQuickSort ( ary , comparator , 0 , ary . length - 1 ) ;
2932
- } ;
2933
-
2934
-
2935
- /***/ } ) ,
2936
- /* 10 */
2937
2816
/***/ ( function ( module , exports , __webpack_require__ ) {
2938
2817
2939
2818
/* WEBPACK VAR INJECTION */ ( function ( __dirname ) { if ( typeof fetch === "function" ) {
@@ -2955,8 +2834,8 @@ return /******/ (function(modules) { // webpackBootstrap
2955
2834
module . exports . initialize = url => mappingsWasmUrl = url ;
2956
2835
} else {
2957
2836
// Node version of reading a wasm file into an array buffer.
2958
- const fs = __webpack_require__ ( 11 ) ;
2959
- const path = __webpack_require__ ( 12 ) ;
2837
+ const fs = __webpack_require__ ( 10 ) ;
2838
+ const path = __webpack_require__ ( 11 ) ;
2960
2839
2961
2840
module . exports = function readWasm ( ) {
2962
2841
return new Promise ( ( resolve , reject ) => {
@@ -2980,22 +2859,22 @@ return /******/ (function(modules) { // webpackBootstrap
2980
2859
/* WEBPACK VAR INJECTION */ } . call ( exports , "/" ) )
2981
2860
2982
2861
/***/ } ) ,
2983
- /* 11 */
2862
+ /* 10 */
2984
2863
/***/ ( function ( module , exports ) {
2985
2864
2986
- module . exports = __WEBPACK_EXTERNAL_MODULE_11__ ;
2865
+ module . exports = __WEBPACK_EXTERNAL_MODULE_10__ ;
2987
2866
2988
2867
/***/ } ) ,
2989
- /* 12 */
2868
+ /* 11 */
2990
2869
/***/ ( function ( module , exports ) {
2991
2870
2992
- module . exports = __WEBPACK_EXTERNAL_MODULE_12__ ;
2871
+ module . exports = __WEBPACK_EXTERNAL_MODULE_11__ ;
2993
2872
2994
2873
/***/ } ) ,
2995
- /* 13 */
2874
+ /* 12 */
2996
2875
/***/ ( function ( module , exports , __webpack_require__ ) {
2997
2876
2998
- const readWasm = __webpack_require__ ( 10 ) ;
2877
+ const readWasm = __webpack_require__ ( 9 ) ;
2999
2878
3000
2879
/**
3001
2880
* Provide the JIT with a nice shape / hidden class.
@@ -3105,7 +2984,7 @@ return /******/ (function(modules) { // webpackBootstrap
3105
2984
3106
2985
3107
2986
/***/ } ) ,
3108
- /* 14 */
2987
+ /* 13 */
3109
2988
/***/ ( function ( module , exports , __webpack_require__ ) {
3110
2989
3111
2990
/* -*- Mode: js; js-indent-level: 2; -*- */
0 commit comments