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

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

Issue 875413002: dart2js: add mangled-global-names embedded global to new emitter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase. Change comment style. Created 5 years, 10 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
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/new_emitter/model_emitter.dart ('k') | no next file » | 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) 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 18
19 /** 19 /// If [JSInvocationMirror._invokeOn] is being used, this embedded global
20 * If [JSInvocationMirror._invokeOn] is being used, this embedded global 20 /// contains a JavaScript map with the names of methods that are
21 * contains a JavaScript map with the names of methods that are 21 /// intercepted.
22 * intercepted.
23 */
24 const INTERCEPTED_NAMES = 'interceptedNames'; 22 const INTERCEPTED_NAMES = 'interceptedNames';
25 23
24 /// A JS map from mangled global names to their unmangled names.
25 ///
26 /// If the program does not use reflection may be empty (but not null or
27 /// undefined).
26 const MANGLED_GLOBAL_NAMES = 'mangledGlobalNames'; 28 const MANGLED_GLOBAL_NAMES = 'mangledGlobalNames';
29
27 const MANGLED_NAMES = 'mangledNames'; 30 const MANGLED_NAMES = 'mangledNames';
28 const LIBRARIES = 'libraries'; 31 const LIBRARIES = 'libraries';
29 const FINISHED_CLASSES = 'finishedClasses'; 32 const FINISHED_CLASSES = 'finishedClasses';
30 const ALL_CLASSES = 'allClasses'; 33 const ALL_CLASSES = 'allClasses';
31 const METADATA = 'metadata'; 34 const METADATA = 'metadata';
32 const INTERCEPTORS_BY_TAG = 'interceptorsByTag'; 35 const INTERCEPTORS_BY_TAG = 'interceptorsByTag';
33 const LEAF_TAGS = 'leafTags'; 36 const LEAF_TAGS = 'leafTags';
34 const LAZIES = 'lazies'; 37 const LAZIES = 'lazies';
35 const GET_ISOLATE_TAG = 'getIsolateTag'; 38 const GET_ISOLATE_TAG = 'getIsolateTag';
36 const ISOLATE_TAG = 'isolateTag'; 39 const ISOLATE_TAG = 'isolateTag';
37 const CURRENT_SCRIPT = 'currentScript'; 40 const CURRENT_SCRIPT = 'currentScript';
38 const DEFERRED_LIBRARY_URIS = 'deferredLibraryUris'; 41 const DEFERRED_LIBRARY_URIS = 'deferredLibraryUris';
39 const DEFERRED_LIBRARY_HASHES = 'deferredLibraryHashes'; 42 const DEFERRED_LIBRARY_HASHES = 'deferredLibraryHashes';
40 const INITIALIZE_LOADED_HUNK = 'initializeLoadedHunk'; 43 const INITIALIZE_LOADED_HUNK = 'initializeLoadedHunk';
41 const IS_HUNK_LOADED = 'isHunkLoaded'; 44 const IS_HUNK_LOADED = 'isHunkLoaded';
42 const IS_HUNK_INITIALIZED = 'isHunkInitialized'; 45 const IS_HUNK_INITIALIZED = 'isHunkInitialized';
43 const DEFERRED_INITIALIZED = 'deferredInitialized'; 46 const DEFERRED_INITIALIZED = 'deferredInitialized';
44 const CLASS_ID_EXTRACTOR = 'classIdExtractor'; 47 const CLASS_ID_EXTRACTOR = 'classIdExtractor';
45 const CLASS_FIELDS_EXTRACTOR = 'classFieldsExtractor'; 48 const CLASS_FIELDS_EXTRACTOR = 'classFieldsExtractor';
46 const INSTANCE_FROM_CLASS_ID = "instanceFromClassId"; 49 const INSTANCE_FROM_CLASS_ID = "instanceFromClassId";
47 const INITIALIZE_EMPTY_INSTANCE = "initializeEmptyInstance"; 50 const INITIALIZE_EMPTY_INSTANCE = "initializeEmptyInstance";
48 const TYPEDEF_TYPE_PROPERTY_NAME = r"$typedefType"; 51 const TYPEDEF_TYPE_PROPERTY_NAME = r"$typedefType";
49 const TYPEDEF_PREDICATE_PROPERTY_NAME = r"$$isTypedef"; 52 const TYPEDEF_PREDICATE_PROPERTY_NAME = r"$$isTypedef";
50 const NATIVE_SUPERCLASS_TAG_NAME = r"$nativeSuperclassTag"; 53 const NATIVE_SUPERCLASS_TAG_NAME = r"$nativeSuperclassTag";
51 54
52 /** 55 /// Returns the type given the name of a class.
53 * Returns the type given the name of a class. 56 /// This function is called by the runtime when computing rti.
54 * This function is called by the runtime when computing rti.
55 */
56 const GET_TYPE_FROM_NAME = 'getTypeFromName'; 57 const GET_TYPE_FROM_NAME = 'getTypeFromName';
57 const TYPE_TO_INTERCEPTOR_MAP = "typeToInterceptorMap"; 58 const TYPE_TO_INTERCEPTOR_MAP = "typeToInterceptorMap";
58 59
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/new_emitter/model_emitter.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698