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

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

Issue 23012003: Add Null class to dart:core. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed comments. Marked test failing due to new dart2js mirror bug. 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 3169 matching lines...) Expand 10 before | Expand all | Expand 10 after
3180 handleForeignRawFunctionRef(node, 'RAW_DART_FUNCTION_REF'); 3180 handleForeignRawFunctionRef(node, 'RAW_DART_FUNCTION_REF');
3181 } else if (name == const SourceString('JS_SET_CURRENT_ISOLATE')) { 3181 } else if (name == const SourceString('JS_SET_CURRENT_ISOLATE')) {
3182 handleForeignSetCurrentIsolate(node); 3182 handleForeignSetCurrentIsolate(node);
3183 } else if (name == const SourceString('JS_CREATE_ISOLATE')) { 3183 } else if (name == const SourceString('JS_CREATE_ISOLATE')) {
3184 handleForeignCreateIsolate(node); 3184 handleForeignCreateIsolate(node);
3185 } else if (name == const SourceString('JS_OPERATOR_IS_PREFIX')) { 3185 } else if (name == const SourceString('JS_OPERATOR_IS_PREFIX')) {
3186 stack.add(addConstantString(node, backend.namer.operatorIsPrefix())); 3186 stack.add(addConstantString(node, backend.namer.operatorIsPrefix()));
3187 } else if (name == const SourceString('JS_OBJECT_CLASS_NAME')) { 3187 } else if (name == const SourceString('JS_OBJECT_CLASS_NAME')) {
3188 String name = backend.namer.getRuntimeTypeName(compiler.objectClass); 3188 String name = backend.namer.getRuntimeTypeName(compiler.objectClass);
3189 stack.add(addConstantString(node, name)); 3189 stack.add(addConstantString(node, name));
3190 } else if (name == const SourceString('JS_NULL_CLASS_NAME')) {
3191 String name = backend.namer.getRuntimeTypeName(compiler.nullClass);
3192 stack.add(addConstantString(node, name));
3190 } else if (name == const SourceString('JS_FUNCTION_CLASS_NAME')) { 3193 } else if (name == const SourceString('JS_FUNCTION_CLASS_NAME')) {
3191 String name = backend.namer.getRuntimeTypeName(compiler.functionClass); 3194 String name = backend.namer.getRuntimeTypeName(compiler.functionClass);
3192 stack.add(addConstantString(node, name)); 3195 stack.add(addConstantString(node, name));
3193 } else if (name == const SourceString('JS_OPERATOR_AS_PREFIX')) { 3196 } else if (name == const SourceString('JS_OPERATOR_AS_PREFIX')) {
3194 stack.add(addConstantString(node, backend.namer.operatorAsPrefix())); 3197 stack.add(addConstantString(node, backend.namer.operatorAsPrefix()));
3195 } else if (name == const SourceString('JS_SIGNATURE_NAME')) { 3198 } else if (name == const SourceString('JS_SIGNATURE_NAME')) {
3196 stack.add(addConstantString(node, backend.namer.operatorSignature())); 3199 stack.add(addConstantString(node, backend.namer.operatorSignature()));
3197 } else if (name == const SourceString('JS_FUNCTION_TYPE_TAG')) { 3200 } else if (name == const SourceString('JS_FUNCTION_TYPE_TAG')) {
3198 stack.add(addConstantString(node, backend.namer.functionTypeTag())); 3201 stack.add(addConstantString(node, backend.namer.functionTypeTag()));
3199 } else if (name == const SourceString('JS_FUNCTION_TYPE_VOID_RETURN_TAG')) { 3202 } else if (name == const SourceString('JS_FUNCTION_TYPE_VOID_RETURN_TAG')) {
(...skipping 2253 matching lines...) Expand 10 before | Expand all | Expand 10 after
5453 new HSubGraphBlockInformation(elseBranch.graph)); 5456 new HSubGraphBlockInformation(elseBranch.graph));
5454 5457
5455 HBasicBlock conditionStartBlock = conditionBranch.block; 5458 HBasicBlock conditionStartBlock = conditionBranch.block;
5456 conditionStartBlock.setBlockFlow(info, joinBlock); 5459 conditionStartBlock.setBlockFlow(info, joinBlock);
5457 SubGraph conditionGraph = conditionBranch.graph; 5460 SubGraph conditionGraph = conditionBranch.graph;
5458 HIf branch = conditionGraph.end.last; 5461 HIf branch = conditionGraph.end.last;
5459 assert(branch is HIf); 5462 assert(branch is HIf);
5460 branch.blockInformation = conditionStartBlock.blockFlow; 5463 branch.blockInformation = conditionStartBlock.blockFlow;
5461 } 5464 }
5462 } 5465 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698