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

Side by Side Diff: runtime/lib/core_patch.dart

Issue 1127533002: Add Map.unmodifiable constructor. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 7 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 import "dart:math"; 5 import "dart:math";
6 import "dart:typed_data"; 6 import "dart:typed_data";
7 7
8 // Equivalent of calling FATAL from C++ code. 8 // Equivalent of calling FATAL from C++ code.
9 _fatal(msg) native "DartCore_fatal"; 9 _fatal(msg) native "DartCore_fatal";
10 10
11
Ivan Posva 2015/05/11 18:16:54 ?
12 // We need to pass the exception and stack trace objects as second and third 11 // We need to pass the exception and stack trace objects as second and third
13 // parameter to the continuation. See vm/ast_transformer.cc for usage. 12 // parameter to the continuation. See vm/ast_transformer.cc for usage.
14 void _asyncCatchHelper(catchFunction, continuation) { 13 void _asyncCatchHelper(catchFunction, continuation) {
15 catchFunction((e, s) => continuation(null, e, s)); 14 catchFunction((e, s) => continuation(null, e, s));
16 } 15 }
17 16
18 // The members of this class are cloned and added to each class that 17 // The members of this class are cloned and added to each class that
19 // represents an enum type. 18 // represents an enum type.
20 class _EnumHelper { 19 class _EnumHelper {
21 // Declare the list of enum value names private. When this field is 20 // Declare the list of enum value names private. When this field is
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 if (isYieldEach) { 198 if (isYieldEach) {
200 // Spec mandates: it is a dynamic error if the class of [the object 199 // Spec mandates: it is a dynamic error if the class of [the object
201 // returned by yield*] does not implement Iterable. 200 // returned by yield*] does not implement Iterable.
202 yieldEachIterator = (current as Iterable).iterator; 201 yieldEachIterator = (current as Iterable).iterator;
203 continue; 202 continue;
204 } 203 }
205 return true; 204 return true;
206 } 205 }
207 } 206 }
208 } 207 }
OLDNEW
« no previous file with comments | « no previous file | runtime/lib/integers_patch.dart » ('j') | sdk/lib/_internal/compiler/js_lib/constant_map.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698