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

Side by Side Diff: vm/object.h

Issue 10933021: - Do not limit the compiler message buffer, by allocating the message (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 3 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 | vm/object.cc » ('j') | vm/object.cc » ('J')
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 VM_OBJECT_H_ 5 #ifndef VM_OBJECT_H_
6 #define VM_OBJECT_H_ 6 #define VM_OBJECT_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "platform/utils.h" 10 #include "platform/utils.h"
(...skipping 3539 matching lines...) Expand 10 before | Expand all | Expand 10 after
3550 const String& str, 3550 const String& str,
3551 Heap::Space space = Heap::kNew); 3551 Heap::Space space = Heap::kNew);
3552 3552
3553 static RawString* ToUpperCase(const String& str, 3553 static RawString* ToUpperCase(const String& str,
3554 Heap::Space space = Heap::kNew); 3554 Heap::Space space = Heap::kNew);
3555 static RawString* ToLowerCase(const String& str, 3555 static RawString* ToLowerCase(const String& str,
3556 Heap::Space space = Heap::kNew); 3556 Heap::Space space = Heap::kNew);
3557 3557
3558 static RawString* NewFormatted(const char* format, ...) 3558 static RawString* NewFormatted(const char* format, ...)
3559 PRINTF_ATTRIBUTE(1, 2); 3559 PRINTF_ATTRIBUTE(1, 2);
3560 static RawString* NewFormattedV(const char* format, va_list args);
3560 3561
3561 protected: 3562 protected:
3562 bool HasHash() const { 3563 bool HasHash() const {
3563 ASSERT(Smi::New(0) == NULL); 3564 ASSERT(Smi::New(0) == NULL);
3564 return (raw_ptr()->hash_ != NULL); 3565 return (raw_ptr()->hash_ != NULL);
3565 } 3566 }
3566 3567
3567 void SetLength(intptr_t value) const { 3568 void SetLength(intptr_t value) const {
3568 // This is only safe because we create a new Smi, which does not cause 3569 // This is only safe because we create a new Smi, which does not cause
3569 // heap allocation. 3570 // heap allocation.
(...skipping 2004 matching lines...) Expand 10 before | Expand all | Expand 10 after
5574 if (this->CharAt(i) != str.CharAt(begin_index + i)) { 5575 if (this->CharAt(i) != str.CharAt(begin_index + i)) {
5575 return false; 5576 return false;
5576 } 5577 }
5577 } 5578 }
5578 return true; 5579 return true;
5579 } 5580 }
5580 5581
5581 } // namespace dart 5582 } // namespace dart
5582 5583
5583 #endif // VM_OBJECT_H_ 5584 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « no previous file | vm/object.cc » ('j') | vm/object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698