OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <!-- | 2 <!-- |
3 Copyright 2015 The Chromium Authors. All rights reserved. | 3 Copyright 2015 The Chromium Authors. All rights reserved. |
4 Use of this source code is governed by a BSD-style license that can be | 4 Use of this source code is governed by a BSD-style license that can be |
5 found in the LICENSE file. | 5 found in the LICENSE file. |
6 --> | 6 --> |
7 <link rel="import" href="/tracing/base/iteration_helpers.html"> | 7 <link rel="import" href="/tracing/base/utils.html"> |
8 | 8 |
9 <script> | 9 <script> |
10 'use strict'; | 10 'use strict'; |
11 | 11 |
12 tr.exportTo('tr.mre', function() { | 12 tr.exportTo('tr.mre', function() { |
13 const FunctionRegistry = { | 13 const FunctionRegistry = { |
14 allFunctions_: [], | 14 allFunctions_: [], |
15 allFunctionsByName_: {}, | 15 allFunctionsByName_: {}, |
16 get allFunctions() { return this.allFunctions_; }, | 16 get allFunctions() { return this.allFunctions_; }, |
17 get allFunctionsByName() { return this.allFunctionsByName_; } | 17 get allFunctionsByName() { return this.allFunctionsByName_; } |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 return new FunctionHandle(modulesToLoad, handleDict.function_name, options); | 176 return new FunctionHandle(modulesToLoad, handleDict.function_name, options); |
177 }; | 177 }; |
178 | 178 |
179 return { | 179 return { |
180 FunctionHandle, | 180 FunctionHandle, |
181 ModuleToLoad, | 181 ModuleToLoad, |
182 FunctionRegistry, | 182 FunctionRegistry, |
183 }; | 183 }; |
184 }); | 184 }); |
185 </script> | 185 </script> |
OLD | NEW |