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

Side by Side Diff: pkg/compiler/lib/src/js_backend/backend.dart

Issue 2464103002: Introduce ClassLike, MemberLike, FieldLike and FunctionLike (Closed)
Patch Set: Updated cf. comments. Created 4 years, 1 month 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
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 library js_backend.backend; 5 library js_backend.backend;
6 6
7 import 'dart:async' show Future; 7 import 'dart:async' show Future;
8 8
9 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames; 9 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames;
10 10
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 327
328 FunctionInlineCache inlineCache = new FunctionInlineCache(); 328 FunctionInlineCache inlineCache = new FunctionInlineCache();
329 329
330 /// If [true], the compiler will emit code that logs whenever a method is 330 /// If [true], the compiler will emit code that logs whenever a method is
331 /// called. When TRACE_METHOD is 'console' this will be logged 331 /// called. When TRACE_METHOD is 'console' this will be logged
332 /// directly in the JavaScript console. When TRACE_METHOD is 'post' the 332 /// directly in the JavaScript console. When TRACE_METHOD is 'post' the
333 /// information will be sent to a server via a POST request. 333 /// information will be sent to a server via a POST request.
334 static const String TRACE_METHOD = const String.fromEnvironment('traceCalls'); 334 static const String TRACE_METHOD = const String.fromEnvironment('traceCalls');
335 static const bool TRACE_CALLS = 335 static const bool TRACE_CALLS =
336 TRACE_METHOD == 'post' || TRACE_METHOD == 'console'; 336 TRACE_METHOD == 'post' || TRACE_METHOD == 'console';
337 Element traceHelper; 337 MethodElement traceHelper;
338 338
339 TypeMask get stringType => compiler.commonMasks.stringType; 339 TypeMask get stringType => compiler.commonMasks.stringType;
340 TypeMask get doubleType => compiler.commonMasks.doubleType; 340 TypeMask get doubleType => compiler.commonMasks.doubleType;
341 TypeMask get intType => compiler.commonMasks.intType; 341 TypeMask get intType => compiler.commonMasks.intType;
342 TypeMask get uint32Type => compiler.commonMasks.uint32Type; 342 TypeMask get uint32Type => compiler.commonMasks.uint32Type;
343 TypeMask get uint31Type => compiler.commonMasks.uint31Type; 343 TypeMask get uint31Type => compiler.commonMasks.uint31Type;
344 TypeMask get positiveIntType => compiler.commonMasks.positiveIntType; 344 TypeMask get positiveIntType => compiler.commonMasks.positiveIntType;
345 TypeMask get numType => compiler.commonMasks.numType; 345 TypeMask get numType => compiler.commonMasks.numType;
346 TypeMask get boolType => compiler.commonMasks.boolType; 346 TypeMask get boolType => compiler.commonMasks.boolType;
347 TypeMask get dynamicType => compiler.commonMasks.dynamicType; 347 TypeMask get dynamicType => compiler.commonMasks.dynamicType;
(...skipping 2940 matching lines...) Expand 10 before | Expand all | Expand 10 after
3288 ClassElement get mapImplementation => helpers.mapLiteralClass; 3288 ClassElement get mapImplementation => helpers.mapLiteralClass;
3289 ClassElement get constMapImplementation => helpers.constMapLiteralClass; 3289 ClassElement get constMapImplementation => helpers.constMapLiteralClass;
3290 ClassElement get typeImplementation => helpers.typeLiteralClass; 3290 ClassElement get typeImplementation => helpers.typeLiteralClass;
3291 ClassElement get boolImplementation => helpers.jsBoolClass; 3291 ClassElement get boolImplementation => helpers.jsBoolClass;
3292 ClassElement get nullImplementation => helpers.jsNullClass; 3292 ClassElement get nullImplementation => helpers.jsNullClass;
3293 ClassElement get syncStarIterableImplementation => helpers.syncStarIterable; 3293 ClassElement get syncStarIterableImplementation => helpers.syncStarIterable;
3294 ClassElement get asyncFutureImplementation => helpers.futureImplementation; 3294 ClassElement get asyncFutureImplementation => helpers.futureImplementation;
3295 ClassElement get asyncStarStreamImplementation => helpers.controllerStream; 3295 ClassElement get asyncStarStreamImplementation => helpers.controllerStream;
3296 ClassElement get functionImplementation => helpers.coreClasses.functionClass; 3296 ClassElement get functionImplementation => helpers.coreClasses.functionClass;
3297 } 3297 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/elements/entities.dart ('k') | pkg/compiler/lib/src/js_backend/backend_helpers.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698