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

Side by Side Diff: sdk/lib/_internal/compiler/js_lib/shared/embedded_names.dart

Issue 833623003: dart2js: Merge intercepted names map. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Refactored. Created 5 years, 11 months 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 /// Contains the names of globals that are embedded into the output by the 5 /// Contains the names of globals that are embedded into the output by the
6 /// compiler. 6 /// compiler.
7 /// 7 ///
8 /// Variables embedded this way should be access with `JS_EMBEDDED_GLOBAL` from 8 /// Variables embedded this way should be access with `JS_EMBEDDED_GLOBAL` from
9 /// the `_foreign_helper` library. 9 /// the `_foreign_helper` library.
10 /// 10 ///
11 /// This library is shared between the compiler and the runtime system. 11 /// This library is shared between the compiler and the runtime system.
12 library dart2js._embedded_names; 12 library dart2js._embedded_names;
13 13
14 const DISPATCH_PROPERTY_NAME = "dispatchPropertyName"; 14 const DISPATCH_PROPERTY_NAME = "dispatchPropertyName";
15 const TYPE_INFORMATION = 'typeInformation'; 15 const TYPE_INFORMATION = 'typeInformation';
16 const GLOBAL_FUNCTIONS = 'globalFunctions'; 16 const GLOBAL_FUNCTIONS = 'globalFunctions';
17 const STATICS = 'statics'; 17 const STATICS = 'statics';
18
19 /**
20 * If [JSInvocationMirror._invokeOn] is being used, this embedded global
21 * contains a JavaScript map with the names of methods that are
22 * intercepted.
23 */
18 const INTERCEPTED_NAMES = 'interceptedNames'; 24 const INTERCEPTED_NAMES = 'interceptedNames';
25
19 const MANGLED_GLOBAL_NAMES = 'mangledGlobalNames'; 26 const MANGLED_GLOBAL_NAMES = 'mangledGlobalNames';
20 const MANGLED_NAMES = 'mangledNames'; 27 const MANGLED_NAMES = 'mangledNames';
21 const LIBRARIES = 'libraries'; 28 const LIBRARIES = 'libraries';
22 const FINISHED_CLASSES = 'finishedClasses'; 29 const FINISHED_CLASSES = 'finishedClasses';
23 const ALL_CLASSES = 'allClasses'; 30 const ALL_CLASSES = 'allClasses';
24 const METADATA = 'metadata'; 31 const METADATA = 'metadata';
25 const INTERCEPTORS_BY_TAG = 'interceptorsByTag'; 32 const INTERCEPTORS_BY_TAG = 'interceptorsByTag';
26 const LEAF_TAGS = 'leafTags'; 33 const LEAF_TAGS = 'leafTags';
27 const LAZIES = 'lazies'; 34 const LAZIES = 'lazies';
28 const GET_ISOLATE_TAG = 'getIsolateTag'; 35 const GET_ISOLATE_TAG = 'getIsolateTag';
29 const ISOLATE_TAG = 'isolateTag'; 36 const ISOLATE_TAG = 'isolateTag';
30 const CURRENT_SCRIPT = 'currentScript'; 37 const CURRENT_SCRIPT = 'currentScript';
31 const DEFERRED_LIBRARY_URIS = 'deferredLibraryUris'; 38 const DEFERRED_LIBRARY_URIS = 'deferredLibraryUris';
32 const DEFERRED_LIBRARY_HASHES = 'deferredLibraryHashes'; 39 const DEFERRED_LIBRARY_HASHES = 'deferredLibraryHashes';
33 const INITIALIZE_LOADED_HUNK = 'initializeLoadedHunk'; 40 const INITIALIZE_LOADED_HUNK = 'initializeLoadedHunk';
34 const IS_HUNK_LOADED = 'isHunkLoaded'; 41 const IS_HUNK_LOADED = 'isHunkLoaded';
35 const CLASS_ID_EXTRACTOR = 'classIdExtractor'; 42 const CLASS_ID_EXTRACTOR = 'classIdExtractor';
36 const CLASS_FIELDS_EXTRACTOR = 'classFieldsExtractor'; 43 const CLASS_FIELDS_EXTRACTOR = 'classFieldsExtractor';
37 const INSTANCE_FROM_CLASS_ID = "instanceFromClassId"; 44 const INSTANCE_FROM_CLASS_ID = "instanceFromClassId";
38 const INITIALIZE_EMPTY_INSTANCE = "initializeEmptyInstance"; 45 const INITIALIZE_EMPTY_INSTANCE = "initializeEmptyInstance";
39 const TYPEDEF_TYPE_PROPERTY_NAME = r"$typedefType"; 46 const TYPEDEF_TYPE_PROPERTY_NAME = r"$typedefType";
40 const TYPEDEF_PREDICATE_PROPERTY_NAME = r"$$isTypedef"; 47 const TYPEDEF_PREDICATE_PROPERTY_NAME = r"$$isTypedef";
41 const NATIVE_SUPERCLASS_TAG_NAME = r"$nativeSuperclassTag"; 48 const NATIVE_SUPERCLASS_TAG_NAME = r"$nativeSuperclassTag";
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698