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

Side by Side Diff: compiler/lib/implementation/core.dart

Issue 8276014: Update assert to follow the spec. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 2 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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 class ConstHelper { 5 class ConstHelper {
6 static String getConstId(var o) native; 6 static String getConstId(var o) native;
7 7
8 static String getConstMapId(Map map) native { 8 static String getConstMapId(Map map) native {
9 StringBuffer sb = new StringBuffer(); 9 StringBuffer sb = new StringBuffer();
10 sb.add("m"); 10 sb.add("m");
(...skipping 22 matching lines...) Expand all
33 } 33 }
34 34
35 static NoSuchMethodException createNoSuchMethodException( 35 static NoSuchMethodException createNoSuchMethodException(
36 receiver, functionName, arguments) native { 36 receiver, functionName, arguments) native {
37 return new NoSuchMethodException(receiver, functionName, arguments); 37 return new NoSuchMethodException(receiver, functionName, arguments);
38 } 38 }
39 39
40 static TypeError createTypeError(String srcType, String dstType) native { 40 static TypeError createTypeError(String srcType, String dstType) native {
41 return new TypeError(srcType, dstType); 41 return new TypeError(srcType, dstType);
42 } 42 }
43
44 static AssertionError createAssertionError() native {
45 return new AssertionError();
46 }
43 } 47 }
44 48
45 class _CoreJsUtil { 49 class _CoreJsUtil {
46 static Map _newMapLiteral() native { 50 static Map _newMapLiteral() native {
47 return new LinkedHashMap(); 51 return new LinkedHashMap();
48 } 52 }
49 } 53 }
50 54
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698