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

Side by Side Diff: lib/compiler/implementation/js_backend/backend.dart

Issue 10919146: Get rid of a lot of () for getters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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) 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 typedef void Recompile(Element element); 5 typedef void Recompile(Element element);
6 6
7 class ReturnInfo { 7 class ReturnInfo {
8 HType returnType; 8 HType returnType;
9 List<Element> compiledFunctions; 9 List<Element> compiledFunctions;
10 10
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 returnInfo = new Map<Element, ReturnInfo>(), 431 returnInfo = new Map<Element, ReturnInfo>(),
432 invalidateAfterCodegen = new List<Element>(), 432 invalidateAfterCodegen = new List<Element>(),
433 super(compiler, constantSystem: JAVA_SCRIPT_CONSTANT_SYSTEM) { 433 super(compiler, constantSystem: JAVA_SCRIPT_CONSTANT_SYSTEM) {
434 emitter = new CodeEmitterTask(compiler, namer, generateSourceMap); 434 emitter = new CodeEmitterTask(compiler, namer, generateSourceMap);
435 builder = new SsaBuilderTask(this); 435 builder = new SsaBuilderTask(this);
436 optimizer = new SsaOptimizerTask(this); 436 optimizer = new SsaOptimizerTask(this);
437 generator = new SsaCodeGeneratorTask(this); 437 generator = new SsaCodeGeneratorTask(this);
438 argumentTypes = new ArgumentTypesRegistry(this); 438 argumentTypes = new ArgumentTypesRegistry(this);
439 } 439 }
440 440
441 Element get cyclicThrowHelper() { 441 Element get cyclicThrowHelper {
442 return compiler.findHelper(const SourceString("throwCyclicInit")); 442 return compiler.findHelper(const SourceString("throwCyclicInit"));
443 } 443 }
444 444
445 JavaScriptItemCompilationContext createItemCompilationContext() { 445 JavaScriptItemCompilationContext createItemCompilationContext() {
446 return new JavaScriptItemCompilationContext(); 446 return new JavaScriptItemCompilationContext();
447 } 447 }
448 448
449 void enqueueHelpers(Enqueuer world) { 449 void enqueueHelpers(Enqueuer world) {
450 enqueueAllTopLevelFunctions(compiler.jsHelperLibrary, world); 450 enqueueAllTopLevelFunctions(compiler.jsHelperLibrary, world);
451 enqueueAllTopLevelFunctions(compiler.interceptorsLibrary, world); 451 enqueueAllTopLevelFunctions(compiler.interceptorsLibrary, world);
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
718 return const SourceString('listSuperTypeCheck'); 718 return const SourceString('listSuperTypeCheck');
719 } 719 }
720 } else if (nativeCheck) { 720 } else if (nativeCheck) {
721 return const SourceString('callTypeCheck'); 721 return const SourceString('callTypeCheck');
722 } else { 722 } else {
723 return const SourceString('propertyTypeCheck'); 723 return const SourceString('propertyTypeCheck');
724 } 724 }
725 } 725 }
726 } 726 }
727 } 727 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698