OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 /* This library defines the association between runtime objects and | 5 /* This library defines the association between runtime objects and |
6 * runtime types. | 6 * runtime types. |
7 */ | 7 */ |
8 | 8 |
9 dart_library.library('dart/_rtti', null, /* Imports */[ | 9 dart_library.library('dart/_rtti', null, /* Imports */[ |
10 ], /* Lazy Imports */[ | 10 ], /* Lazy Imports */[ |
| 11 'dart/_utils', |
11 'dart/core', | 12 'dart/core', |
12 'dart/_types' | 13 'dart/_types' |
13 ], function(exports, core, types) { | 14 ], function(exports, dart_utils, core, types) { |
14 'use strict'; | 15 'use strict'; |
15 | 16 |
16 const defineLazyProperty = dart_utils.defineLazyProperty; | 17 const defineLazyProperty = dart_utils.defineLazyProperty; |
17 | 18 |
18 const defineProperty = Object.defineProperty; | 19 const defineProperty = Object.defineProperty; |
19 | 20 |
20 /** | 21 /** |
21 * Runtime type information. This module defines the mapping from | 22 * Runtime type information. This module defines the mapping from |
22 * runtime objects to their runtime type information. See the types | 23 * runtime objects to their runtime type information. See the types |
23 * module for the definition of how type information is represented. | 24 * module for the definition of how type information is represented. |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 function getter() { | 169 function getter() { |
169 if (compute == null) return cache; | 170 if (compute == null) return cache; |
170 cache = compute(); | 171 cache = compute(); |
171 compute = null; | 172 compute = null; |
172 return cache; | 173 return cache; |
173 } | 174 } |
174 tagComputed(value, getter); | 175 tagComputed(value, getter); |
175 } | 176 } |
176 exports.tagMemoized = tagMemoized; | 177 exports.tagMemoized = tagMemoized; |
177 }); | 178 }); |
OLD | NEW |