Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Side by Side Diff: lib/runtime/dart/_rtti.js

Issue 1486473002: Convert dart_utils.js to input_sdk/lib/_internal/utils.dart (#310) (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Rebased Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « lib/runtime/dart/_operations.js ('k') | lib/runtime/dart/_runtime.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 });
OLDNEW
« no previous file with comments | « lib/runtime/dart/_operations.js ('k') | lib/runtime/dart/_runtime.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698