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

Side by Side Diff: pkg/compiler/lib/src/js_emitter/startup_emitter/emitter.dart

Issue 1244473002: dart2js: Fix check for support of reflection. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 dart2js.js_emitter.startup_emitter; 5 library dart2js.js_emitter.startup_emitter;
6 6
7 import 'package:js_runtime/shared/embedded_names.dart' show 7 import 'package:js_runtime/shared/embedded_names.dart' show
8 JsBuiltin, 8 JsBuiltin,
9 METADATA, 9 METADATA,
10 TYPES; 10 TYPES;
(...skipping 30 matching lines...) Expand all
41 this.namer = namer, 41 this.namer = namer,
42 _emitter = new ModelEmitter(compiler, namer, nativeEmitter); 42 _emitter = new ModelEmitter(compiler, namer, nativeEmitter);
43 43
44 @override 44 @override
45 int emitProgram(ProgramBuilder programBuilder) { 45 int emitProgram(ProgramBuilder programBuilder) {
46 Program program = programBuilder.buildProgram(); 46 Program program = programBuilder.buildProgram();
47 return _emitter.emitProgram(program); 47 return _emitter.emitProgram(program);
48 } 48 }
49 49
50 @override 50 @override
51 bool get supportsReflection => false;
52
53 @override
51 bool isConstantInlinedOrAlreadyEmitted(ConstantValue constant) { 54 bool isConstantInlinedOrAlreadyEmitted(ConstantValue constant) {
52 return _emitter.isConstantInlinedOrAlreadyEmitted(constant); 55 return _emitter.isConstantInlinedOrAlreadyEmitted(constant);
53 } 56 }
54 57
55 @override 58 @override
56 int compareConstants(ConstantValue a, ConstantValue b) { 59 int compareConstants(ConstantValue a, ConstantValue b) {
57 return _emitter.compareConstants(a, b); 60 return _emitter.compareConstants(a, b);
58 } 61 }
59 62
60 @override 63 @override
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 _compiler.internalError(NO_LOCATION_SPANNABLE, 176 _compiler.internalError(NO_LOCATION_SPANNABLE,
174 "Unhandled Builtin: $builtin"); 177 "Unhandled Builtin: $builtin");
175 return null; 178 return null;
176 } 179 }
177 } 180 }
178 181
179 @override 182 @override
180 void invalidateCaches() { 183 void invalidateCaches() {
181 } 184 }
182 } 185 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698