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

Side by Side Diff: runtime/vm/raw_object.h

Issue 10832401: Gentle start with removing explicit interfaces (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 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 #ifndef VM_RAW_OBJECT_H_ 5 #ifndef VM_RAW_OBJECT_H_
6 #define VM_RAW_OBJECT_H_ 6 #define VM_RAW_OBJECT_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/globals.h" 9 #include "vm/globals.h"
10 #include "vm/token.h" 10 #include "vm/token.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 V(ExternalUint16Array) \ 83 V(ExternalUint16Array) \
84 V(ExternalInt32Array) \ 84 V(ExternalInt32Array) \
85 V(ExternalUint32Array) \ 85 V(ExternalUint32Array) \
86 V(ExternalInt64Array) \ 86 V(ExternalInt64Array) \
87 V(ExternalUint64Array) \ 87 V(ExternalUint64Array) \
88 V(ExternalFloat32Array) \ 88 V(ExternalFloat32Array) \
89 V(ExternalFloat64Array) \ 89 V(ExternalFloat64Array) \
90 V(Stacktrace) \ 90 V(Stacktrace) \
91 V(JSRegExp) \ 91 V(JSRegExp) \
92 V(WeakProperty) \ 92 V(WeakProperty) \
93 V(DartFunction) \
93 V(Closure) \ 94 V(Closure) \
94 95
95 #define CLASS_LIST(V) \ 96 #define CLASS_LIST(V) \
96 V(Object) \ 97 V(Object) \
97 CLASS_LIST_NO_OBJECT(V) 98 CLASS_LIST_NO_OBJECT(V)
98 99
99 100
100 // Forward declarations. 101 // Forward declarations.
101 class Isolate; 102 class Isolate;
102 #define DEFINE_FORWARD_DECLARATION(clazz) \ 103 #define DEFINE_FORWARD_DECLARATION(clazz) \
(...skipping 1275 matching lines...) Expand 10 before | Expand all | Expand 10 after
1378 }; 1379 };
1379 1380
1380 1381
1381 class RawExternalFloat64Array : public RawByteArray { 1382 class RawExternalFloat64Array : public RawByteArray {
1382 RAW_HEAP_OBJECT_IMPLEMENTATION(ExternalFloat64Array); 1383 RAW_HEAP_OBJECT_IMPLEMENTATION(ExternalFloat64Array);
1383 1384
1384 ExternalByteArrayData<double>* external_data_; 1385 ExternalByteArrayData<double>* external_data_;
1385 }; 1386 };
1386 1387
1387 1388
1389 class RawDartFunction : public RawInstance {
1390 RAW_HEAP_OBJECT_IMPLEMENTATION(DartFunction);
1391 };
1392
1393
1388 class RawClosure : public RawInstance { 1394 class RawClosure : public RawInstance {
1389 RAW_HEAP_OBJECT_IMPLEMENTATION(Closure); 1395 RAW_HEAP_OBJECT_IMPLEMENTATION(Closure);
1390 1396
1391 RawObject** from() { 1397 RawObject** from() {
1392 return reinterpret_cast<RawObject**>(&ptr()->type_arguments_); 1398 return reinterpret_cast<RawObject**>(&ptr()->type_arguments_);
1393 } 1399 }
1394 RawAbstractTypeArguments* type_arguments_; 1400 RawAbstractTypeArguments* type_arguments_;
1395 RawFunction* function_; 1401 RawFunction* function_;
1396 RawContext* context_; 1402 RawContext* context_;
1397 // TODO(iposva): Remove this temporary hack. 1403 // TODO(iposva): Remove this temporary hack.
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
1574 kExternalUint64ArrayCid == kByteArrayCid + 18 && 1580 kExternalUint64ArrayCid == kByteArrayCid + 18 &&
1575 kExternalFloat32ArrayCid == kByteArrayCid + 19 && 1581 kExternalFloat32ArrayCid == kByteArrayCid + 19 &&
1576 kExternalFloat64ArrayCid == kByteArrayCid + 20 && 1582 kExternalFloat64ArrayCid == kByteArrayCid + 20 &&
1577 kStacktraceCid == kByteArrayCid + 21); 1583 kStacktraceCid == kByteArrayCid + 21);
1578 return (index >= kByteArrayCid && index <= kExternalFloat64ArrayCid); 1584 return (index >= kByteArrayCid && index <= kExternalFloat64ArrayCid);
1579 } 1585 }
1580 1586
1581 } // namespace dart 1587 } // namespace dart
1582 1588
1583 #endif // VM_RAW_OBJECT_H_ 1589 #endif // VM_RAW_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698