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

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

Issue 1761903002: dart2js cps: Keep interceptors in a separate field. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Rebase Created 4 years, 9 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
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 '../backend_helpers.dart' show 7 import '../backend_helpers.dart' show
8 BackendHelpers; 8 BackendHelpers;
9 import '../js_backend.dart'; 9 import '../js_backend.dart';
10 10
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 292
293 FunctionElement get closureFromTearOff => _backend.helpers.closureFromTearOff; 293 FunctionElement get closureFromTearOff => _backend.helpers.closureFromTearOff;
294 294
295 js.Name registerOneShotInterceptor(Selector selector) { 295 js.Name registerOneShotInterceptor(Selector selector) {
296 return _backend.registerOneShotInterceptor(selector); 296 return _backend.registerOneShotInterceptor(selector);
297 } 297 }
298 298
299 bool mayGenerateInstanceofCheck(DartType type) { 299 bool mayGenerateInstanceofCheck(DartType type) {
300 return _backend.mayGenerateInstanceofCheck(type); 300 return _backend.mayGenerateInstanceofCheck(type);
301 } 301 }
302
303 bool methodUsesReceiverArgument(FunctionElement function) {
304 assert(isInterceptedMethod(function));
305 ClassElement class_ = function.enclosingClass.declaration;
306 return isInterceptorClass(class_) || isUsedAsMixin(class_);
307 }
302 } 308 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/type_propagation.dart ('k') | pkg/compiler/lib/src/js_backend/codegen/task.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698