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 | 7 |
8 <link rel="import" href="/tracing/model/source_info/source_info.html"> | 8 <link rel="import" href="/tracing/model/source_info/source_info.html"> |
9 | 9 |
10 <script> | 10 <script> |
(...skipping 23 matching lines...) Expand all Loading... |
34 return this.scriptId_; | 34 return this.scriptId_; |
35 }, | 35 }, |
36 | 36 |
37 toString: function() { | 37 toString: function() { |
38 var str = this.isNative_ ? '[native v8] ' : ''; | 38 var str = this.isNative_ ? '[native v8] ' : ''; |
39 return str + | 39 return str + |
40 tr.model.source_info.SourceInfo.prototype.toString.call(this); | 40 tr.model.source_info.SourceInfo.prototype.toString.call(this); |
41 } | 41 } |
42 }; | 42 }; |
43 | 43 |
| 44 var JSSourceState = { |
| 45 COMPILED: 'compiled', |
| 46 OPTIMIZABLE: 'optimizable', |
| 47 OPTIMIZED: 'optimized', |
| 48 UNKNOWN: 'unknown', |
| 49 }; |
| 50 |
44 return { | 51 return { |
45 JSSourceInfo: JSSourceInfo, | 52 JSSourceInfo, |
46 JSSourceState: { | 53 JSSourceState, |
47 COMPILED: 'compiled', | |
48 OPTIMIZABLE: 'optimizable', | |
49 OPTIMIZED: 'optimized', | |
50 UNKNOWN: 'unknown' | |
51 } | |
52 }; | 54 }; |
53 }); | 55 }); |
54 </script> | 56 </script> |
55 | 57 |
OLD | NEW |