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

Side by Side Diff: runtime/bin/dartutils.h

Issue 26294002: Cleanups: int -> intptr_t for "array" lengths, memory sizes. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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
« no previous file with comments | « no previous file | runtime/bin/dartutils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 BIN_DARTUTILS_H_ 5 #ifndef BIN_DARTUTILS_H_
6 #define BIN_DARTUTILS_H_ 6 #define BIN_DARTUTILS_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "include/dart_native_api.h" 9 #include "include/dart_native_api.h"
10 10
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 434
435 private: 435 private:
436 DISALLOW_COPY_AND_ASSIGN(CObjectDouble); 436 DISALLOW_COPY_AND_ASSIGN(CObjectDouble);
437 }; 437 };
438 438
439 439
440 class CObjectString : public CObject { 440 class CObjectString : public CObject {
441 public: 441 public:
442 DECLARE_COBJECT_CONSTRUCTORS(String) 442 DECLARE_COBJECT_CONSTRUCTORS(String)
443 443
444 int Length() const { return strlen(cobject_->value.as_string); } 444 intptr_t Length() const { return strlen(cobject_->value.as_string); }
445 char* CString() const { return cobject_->value.as_string; } 445 char* CString() const { return cobject_->value.as_string; }
446 446
447 private: 447 private:
448 DISALLOW_COPY_AND_ASSIGN(CObjectString); 448 DISALLOW_COPY_AND_ASSIGN(CObjectString);
449 }; 449 };
450 450
451 451
452 class CObjectArray : public CObject { 452 class CObjectArray : public CObject {
453 public: 453 public:
454 DECLARE_COBJECT_CONSTRUCTORS(Array) 454 DECLARE_COBJECT_CONSTRUCTORS(Array)
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 } 518 }
519 519
520 private: 520 private:
521 DISALLOW_COPY_AND_ASSIGN(CObjectExternalUint8Array); 521 DISALLOW_COPY_AND_ASSIGN(CObjectExternalUint8Array);
522 }; 522 };
523 523
524 } // namespace bin 524 } // namespace bin
525 } // namespace dart 525 } // namespace dart
526 526
527 #endif // BIN_DARTUTILS_H_ 527 #endif // BIN_DARTUTILS_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/bin/dartutils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698