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

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

Issue 23369004: Revert "Extract interceptor calls from raw is-checks." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/ssa/builder.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 part of js_backend; 5 part of js_backend;
6 6
7 class JavaScriptItemCompilationContext extends ItemCompilationContext { 7 class JavaScriptItemCompilationContext extends ItemCompilationContext {
8 final Set<HInstruction> boundsChecked; 8 final Set<HInstruction> boundsChecked;
9 9
10 JavaScriptItemCompilationContext() 10 JavaScriptItemCompilationContext()
(...skipping 1266 matching lines...) Expand 10 before | Expand all | Expand 10 after
1277 ? const PropertyCheckedModeHelper( 1277 ? const PropertyCheckedModeHelper(
1278 const SourceString('propertyTypeCast')) 1278 const SourceString('propertyTypeCast'))
1279 : const PropertyCheckedModeHelper( 1279 : const PropertyCheckedModeHelper(
1280 const SourceString('propertyTypeCheck')); 1280 const SourceString('propertyTypeCheck'));
1281 } 1281 }
1282 } 1282 }
1283 } 1283 }
1284 } 1284 }
1285 } 1285 }
1286 1286
1287 /**
1288 * Returns [:true:] if the checking of [type] is performed directly on the
1289 * object and not on an interceptor.
1290 */
1291 bool hasDirectCheckFor(DartType type) {
1292 Element element = type.element;
1293 return element == compiler.stringClass ||
1294 element == compiler.boolClass ||
1295 element == compiler.numClass ||
1296 element == compiler.intClass ||
1297 element == compiler.doubleClass ||
1298 element == jsArrayClass ||
1299 element == jsMutableArrayClass ||
1300 element == jsExtendableArrayClass ||
1301 element == jsFixedArrayClass;
1302 }
1303
1304 Element getExceptionUnwrapper() { 1287 Element getExceptionUnwrapper() {
1305 return compiler.findHelper(const SourceString('unwrapException')); 1288 return compiler.findHelper(const SourceString('unwrapException'));
1306 } 1289 }
1307 1290
1308 Element getThrowRuntimeError() { 1291 Element getThrowRuntimeError() {
1309 return compiler.findHelper(const SourceString('throwRuntimeError')); 1292 return compiler.findHelper(const SourceString('throwRuntimeError'));
1310 } 1293 }
1311 1294
1312 Element getThrowAbstractClassInstantiationError() { 1295 Element getThrowAbstractClassInstantiationError() {
1313 return compiler.findHelper( 1296 return compiler.findHelper(
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
1638 copy(constant.values); 1621 copy(constant.values);
1639 copy(constant.protoValue); 1622 copy(constant.protoValue);
1640 copy(constant); 1623 copy(constant);
1641 } 1624 }
1642 1625
1643 void visitConstructed(ConstructedConstant constant) { 1626 void visitConstructed(ConstructedConstant constant) {
1644 copy(constant.fields); 1627 copy(constant.fields);
1645 copy(constant); 1628 copy(constant);
1646 } 1629 }
1647 } 1630 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/ssa/builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698