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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/ssa/builder.dart

Issue 15026006: Support for extending native classes (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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 part of ssa; 5 part of ssa;
6 6
7 /** 7 /**
8 * A special element for the extra parameter taken by intercepted 8 * A special element for the extra parameter taken by intercepted
9 * methods. We need to override [Element.computeType] because our 9 * methods. We need to override [Element.computeType] because our
10 * optimizers may look at its declared type. 10 * optimizers may look at its declared type.
(...skipping 3206 matching lines...) Expand 10 before | Expand all | Expand 10 after
3217 } else if (name == const SourceString('JS_DART_OBJECT_CONSTRUCTOR')) { 3217 } else if (name == const SourceString('JS_DART_OBJECT_CONSTRUCTOR')) {
3218 handleForeignDartObjectJsConstructorFunction(node); 3218 handleForeignDartObjectJsConstructorFunction(node);
3219 } else if (name == const SourceString('JS_IS_INDEXABLE_FIELD_NAME')) { 3219 } else if (name == const SourceString('JS_IS_INDEXABLE_FIELD_NAME')) {
3220 Element element = compiler.findHelper( 3220 Element element = compiler.findHelper(
3221 const SourceString('JavaScriptIndexingBehavior')); 3221 const SourceString('JavaScriptIndexingBehavior'));
3222 stack.add(addConstantString(node, backend.namer.operatorIs(element))); 3222 stack.add(addConstantString(node, backend.namer.operatorIs(element)));
3223 } else if (name == const SourceString('JS_CURRENT_ISOLATE')) { 3223 } else if (name == const SourceString('JS_CURRENT_ISOLATE')) {
3224 handleForeignJsCurrentIsolate(node); 3224 handleForeignJsCurrentIsolate(node);
3225 } else if (name == const SourceString('JS_GET_NAME')) { 3225 } else if (name == const SourceString('JS_GET_NAME')) {
3226 handleForeignJsGetName(node); 3226 handleForeignJsGetName(node);
3227 } else if (name == const SourceString('JS_EFFECT')) {
3228 stack.add(graph.addConstantNull(compiler));
3227 } else { 3229 } else {
3228 throw "Unknown foreign: ${selector}"; 3230 throw "Unknown foreign: ${selector}";
3229 } 3231 }
3230 } 3232 }
3231 3233
3232 generateSuperNoSuchMethodSend(Send node, 3234 generateSuperNoSuchMethodSend(Send node,
3233 Selector selector, 3235 Selector selector,
3234 List<HInstruction> arguments) { 3236 List<HInstruction> arguments) {
3235 SourceString name = selector.name; 3237 SourceString name = selector.name;
3236 3238
(...skipping 2206 matching lines...) Expand 10 before | Expand all | Expand 10 after
5443 new HSubGraphBlockInformation(elseBranch.graph)); 5445 new HSubGraphBlockInformation(elseBranch.graph));
5444 5446
5445 HBasicBlock conditionStartBlock = conditionBranch.block; 5447 HBasicBlock conditionStartBlock = conditionBranch.block;
5446 conditionStartBlock.setBlockFlow(info, joinBlock); 5448 conditionStartBlock.setBlockFlow(info, joinBlock);
5447 SubGraph conditionGraph = conditionBranch.graph; 5449 SubGraph conditionGraph = conditionBranch.graph;
5448 HIf branch = conditionGraph.end.last; 5450 HIf branch = conditionGraph.end.last;
5449 assert(branch is HIf); 5451 assert(branch is HIf);
5450 branch.blockInformation = conditionStartBlock.blockFlow; 5452 branch.blockInformation = conditionStartBlock.blockFlow;
5451 } 5453 }
5452 } 5454 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698