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

Side by Side Diff: sdk/lib/_internal/libraries.dart

Issue 12314055: Use browsers JSON.parse for parsing JSON (#3) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 library libraries; 5 library libraries;
6 6
7 /** 7 /**
8 * A bit flag used by [LibraryInfo] indicating that a library is used by dart2js 8 * A bit flag used by [LibraryInfo] indicating that a library is used by dart2js
9 */ 9 */
10 const int DART2JS_PLATFORM = 1; 10 const int DART2JS_PLATFORM = 1;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 "io": const LibraryInfo( 59 "io": const LibraryInfo(
60 "io/io.dart", 60 "io/io.dart",
61 category: "Server", 61 category: "Server",
62 dart2jsPatchPath: "_internal/compiler/implementation/lib/io_patch.dart"), 62 dart2jsPatchPath: "_internal/compiler/implementation/lib/io_patch.dart"),
63 63
64 "isolate": const LibraryInfo( 64 "isolate": const LibraryInfo(
65 "isolate/isolate.dart", 65 "isolate/isolate.dart",
66 dart2jsPatchPath: "_internal/compiler/implementation/lib/isolate_patch.dar t"), 66 dart2jsPatchPath: "_internal/compiler/implementation/lib/isolate_patch.dar t"),
67 67
68 "json": const LibraryInfo( 68 "json": const LibraryInfo(
69 "json/json.dart"), 69 "json/json.dart",
70 dart2jsPatchPath: "_internal/compiler/implementation/lib/json_patch.dart") ,
70 71
71 "math": const LibraryInfo( 72 "math": const LibraryInfo(
72 "math/math.dart", 73 "math/math.dart",
73 dart2jsPatchPath: "_internal/compiler/implementation/lib/math_patch.dart") , 74 dart2jsPatchPath: "_internal/compiler/implementation/lib/math_patch.dart") ,
74 75
75 "mirrors": const LibraryInfo( 76 "mirrors": const LibraryInfo(
76 "mirrors/mirrors.dart", 77 "mirrors/mirrors.dart",
77 dart2jsPatchPath: "_internal/compiler/implementation/lib/mirrors_patch.dar t"), 78 dart2jsPatchPath: "_internal/compiler/implementation/lib/mirrors_patch.dar t"),
78 79
79 "nativewrappers": const LibraryInfo( 80 "nativewrappers": const LibraryInfo(
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 this.category: "Shared", 194 this.category: "Shared",
194 this.dart2jsPath, 195 this.dart2jsPath,
195 this.dart2jsPatchPath, 196 this.dart2jsPatchPath,
196 this.implementation: false, 197 this.implementation: false,
197 this.documented: true, 198 this.documented: true,
198 this.platforms: DART2JS_PLATFORM | VM_PLATFORM}); 199 this.platforms: DART2JS_PLATFORM | VM_PLATFORM});
199 200
200 bool get isDart2jsLibrary => (platforms & DART2JS_PLATFORM) != 0; 201 bool get isDart2jsLibrary => (platforms & DART2JS_PLATFORM) != 0;
201 bool get isVmLibrary => (platforms & VM_PLATFORM) != 0; 202 bool get isVmLibrary => (platforms & VM_PLATFORM) != 0;
202 } 203 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/lib/json_patch.dart ('k') | sdk/lib/json/json_base.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698