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

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

Issue 1092023002: CPS implementation of throw and rethrow. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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 library code_generator_dependencies; 5 library code_generator_dependencies;
6 6
7 import '../js_backend.dart'; 7 import '../js_backend.dart';
8 import '../../dart2jslib.dart'; 8 import '../../dart2jslib.dart';
9 import '../../js_emitter/js_emitter.dart'; 9 import '../../js_emitter/js_emitter.dart';
10 import '../../js/js.dart' as js; 10 import '../../js/js.dart' as js;
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 114
115 String getInterceptorName(Set<ClassElement> interceptedClasses) { 115 String getInterceptorName(Set<ClassElement> interceptedClasses) {
116 return _backend.namer.nameForGetInterceptor(interceptedClasses); 116 return _backend.namer.nameForGetInterceptor(interceptedClasses);
117 } 117 }
118 118
119 js.Expression getInterceptorLibrary() { 119 js.Expression getInterceptorLibrary() {
120 return new js.VariableUse( 120 return new js.VariableUse(
121 _backend.namer.globalObjectFor(_backend.interceptorsLibrary)); 121 _backend.namer.globalObjectFor(_backend.interceptorsLibrary));
122 } 122 }
123 123
124 FunctionElement getWrapExceptionHelper() {
125 return _backend.getWrapExceptionHelper();
126 }
127
124 FunctionElement getExceptionUnwrapper() { 128 FunctionElement getExceptionUnwrapper() {
125 return _backend.getExceptionUnwrapper(); 129 return _backend.getExceptionUnwrapper();
126 } 130 }
127 131
128 FunctionElement getTraceFromException() { 132 FunctionElement getTraceFromException() {
129 return _backend.getTraceFromException(); 133 return _backend.getTraceFromException();
130 } 134 }
131 135
132 FunctionElement getCreateRuntimeType() { 136 FunctionElement getCreateRuntimeType() {
133 return _backend.getCreateRuntimeType(); 137 return _backend.getCreateRuntimeType();
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 js.Expression generateTypeRepresentation(DartType dartType, 174 js.Expression generateTypeRepresentation(DartType dartType,
171 List<js.Expression> arguments) { 175 List<js.Expression> arguments) {
172 int variableIndex = 0; 176 int variableIndex = 0;
173 js.Expression representation = _backend.rti.getTypeRepresentation( 177 js.Expression representation = _backend.rti.getTypeRepresentation(
174 dartType, 178 dartType,
175 (_) => arguments[variableIndex++]); 179 (_) => arguments[variableIndex++]);
176 assert(variableIndex == arguments.length); 180 assert(variableIndex == arguments.length);
177 return representation; 181 return representation;
178 } 182 }
179 } 183 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698