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

Unified Diff: sdk/lib/_internal/compiler/implementation/lib/typeddata_patch.dart

Issue 12668004: Add dart:typeddata to the SDK and add an unimplemented patch file for dart2js. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 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
« no previous file with comments | « no previous file | sdk/lib/_internal/libraries.dart » ('j') | sdk/lib/_internal/libraries.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/lib/typeddata_patch.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/lib/typeddata_patch.dart (revision 0)
+++ sdk/lib/_internal/compiler/implementation/lib/typeddata_patch.dart (revision 0)
@@ -0,0 +1,151 @@
+// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+// This is an empty dummy patch file for the VM dart:typeddata library.
+// This is needed in order to be able to generate documentation for the
+// typeddata library.
+
+patch class Int8List {
+ patch factory Int8List(int length) {
+ throw new UnsupportedError('Int8List');
+ }
+
+ patch factory Int8List.view(ByteBuffer buffer,
+ [int offsetInBytes = 0, int length]) {
+ throw new UnsupportedError('Int8List.view');
+ }
+}
+
+
+patch class Uint8List {
+ patch factory Uint8List(int length) {
+ throw new UnsupportedError('Uint8List');
+ }
+
+ patch factory Uint8List.view(ByteBuffer buffer,
+ [int offsetInBytes = 0, int length]) {
+ throw new UnsupportedError('Uint8List.view');
+ }
+}
+
+
+patch class Uint8ClampedList {
+ patch factory Uint8ClampedList(int length) {
+ throw new UnsupportedError('Uint8ClampedList');
+ }
+
+ patch factory Uint8ClampedList.view(ByteBuffer buffer,
+ [int offsetInBytes = 0, int length]) {
+ throw new UnsupportedError('Uint8ClampedList.view');
+ }
+}
+
+
+patch class Int16List {
+ patch factory Int16List(int length) {
+ throw new UnsupportedError('Int16List');
+
+ }
+
+ patch factory Int16List.view(ByteBuffer buffer,
+ [int offsetInBytes = 0, int length]) {
+ throw new UnsupportedError('Int16List.view');
+ }
+}
+
+
+patch class Uint16List {
+ patch factory Uint16List(int length) {
+ throw new UnsupportedError('Uint16List');
+ }
+
+ patch factory Uint16List.view(ByteBuffer buffer,
+ [int offsetInBytes = 0, int length]) {
+ throw new UnsupportedError('Uint16List.view');
+ }
+}
+
+
+patch class Int32List {
+ patch factory Int32List(int length) {
+ throw new UnsupportedError('Int32List');
+ }
+
+ patch factory Int32List.view(ByteBuffer buffer,
+ [int offsetInBytes = 0, int length]) {
+ throw new UnsupportedError('Int32List.view');
+ }
+}
+
+
+patch class Uint32List {
+ patch factory Uint32List(int length) {
+ throw new UnsupportedError('Uint32List');
+ }
+
+ patch factory Uint32List.view(ByteBuffer buffer,
+ [int offsetInBytes = 0, int length]) {
+ throw new UnsupportedError('Uint32List.view');
+ }
+}
+
+
+patch class Int64List {
+ patch factory Int64List(int length) {
+ throw new UnsupportedError('Int64List');
+ }
+
+ patch factory Int64List.view(ByteBuffer buffer,
+ [int offsetInBytes = 0, int length]) {
+ throw new UnsupportedError('Int64List.view');
+ }
+}
+
+
+patch class Uint64List {
+ patch factory Uint64List(int length) {
+ throw new UnsupportedError('Uint64List');
+ }
+
+ patch factory Uint64List.view(ByteBuffer buffer,
+ [int offsetInBytes = 0, int length]) {
+ throw new UnsupportedError('Uint64List.view');
+ }
+}
+
+
+patch class Float32List {
+ patch factory Float32List(int length) {
+ throw new UnsupportedError('Float32List');
+ }
+
+ patch factory Float32List.view(ByteBuffer buffer,
+ [int offsetInBytes = 0, int length]) {
+ throw new UnsupportedError('Float32List.view');
+ }
+}
+
+
+patch class Float64List {
+ patch factory Float64List(int length) {
+ throw new UnsupportedError('Float64List');
+ }
+
+ patch factory Float64List.view(ByteBuffer buffer,
+ [int offsetInBytes = 0, int length]) {
+ throw new UnsupportedError('Float64List.view');
+ }
+}
+
+
+patch class ByteData {
+ patch factory ByteData(int length) {
+ throw new UnsupportedError('ByteData');
+ }
+
+ patch factory ByteData.view(ByteBuffer buffer,
+ [int offsetInBytes = 0, int length]) {
+ throw new UnsupportedError('ByteData.view');
+ }
+}
« no previous file with comments | « no previous file | sdk/lib/_internal/libraries.dart » ('j') | sdk/lib/_internal/libraries.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698