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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/compiler/implementation/ssa/builder.dart
diff --git a/sdk/lib/_internal/compiler/implementation/ssa/builder.dart b/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
index acf5cb94affb90a5db09db31d582a66306220883..735f771a4c855c1aecd667f8f8f884f567429cb3 100644
--- a/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
+++ b/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
@@ -3187,6 +3187,9 @@ class SsaBuilder extends ResolvedVisitor implements Visitor {
} else if (name == const SourceString('JS_OBJECT_CLASS_NAME')) {
String name = backend.namer.getRuntimeTypeName(compiler.objectClass);
stack.add(addConstantString(node, name));
+ } else if (name == const SourceString('JS_NULL_CLASS_NAME')) {
+ String name = backend.namer.getRuntimeTypeName(compiler.nullClass);
+ stack.add(addConstantString(node, name));
} else if (name == const SourceString('JS_FUNCTION_CLASS_NAME')) {
String name = backend.namer.getRuntimeTypeName(compiler.functionClass);
stack.add(addConstantString(node, name));

Powered by Google App Engine
This is Rietveld 408576698