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

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

Issue 24631003: Add proper API for creating private symbols wrt a library. (Closed) Base URL: https://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
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 4757 matching lines...) Expand 10 before | Expand all | Expand 10 after
4768 4768
4769 static RawString* Transform(int32_t (*mapping)(int32_t ch), 4769 static RawString* Transform(int32_t (*mapping)(int32_t ch),
4770 const String& str, 4770 const String& str,
4771 Heap::Space space = Heap::kNew); 4771 Heap::Space space = Heap::kNew);
4772 4772
4773 static RawString* ToUpperCase(const String& str, 4773 static RawString* ToUpperCase(const String& str,
4774 Heap::Space space = Heap::kNew); 4774 Heap::Space space = Heap::kNew);
4775 static RawString* ToLowerCase(const String& str, 4775 static RawString* ToLowerCase(const String& str,
4776 Heap::Space space = Heap::kNew); 4776 Heap::Space space = Heap::kNew);
4777 4777
4778 static RawString* IdentifierPrettyName(const String& name);
4779
4778 static bool EqualsIgnoringPrivateKey(const String& str1, 4780 static bool EqualsIgnoringPrivateKey(const String& str1,
4779 const String& str2); 4781 const String& str2);
4780 4782
4781 static RawString* NewFormatted(const char* format, ...) 4783 static RawString* NewFormatted(const char* format, ...)
4782 PRINTF_ATTRIBUTE(1, 2); 4784 PRINTF_ATTRIBUTE(1, 2);
4783 static RawString* NewFormattedV(const char* format, va_list args); 4785 static RawString* NewFormattedV(const char* format, va_list args);
4784 4786
4785 protected: 4787 protected:
4786 bool HasHash() const { 4788 bool HasHash() const {
4787 ASSERT(Smi::New(0) == NULL); 4789 ASSERT(Smi::New(0) == NULL);
(...skipping 1407 matching lines...) Expand 10 before | Expand all | Expand 10 after
6195 6197
6196 6198
6197 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 6199 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
6198 intptr_t index) { 6200 intptr_t index) {
6199 return array.At((index * kEntryLength) + kTargetFunctionIndex); 6201 return array.At((index * kEntryLength) + kTargetFunctionIndex);
6200 } 6202 }
6201 6203
6202 } // namespace dart 6204 } // namespace dart
6203 6205
6204 #endif // VM_OBJECT_H_ 6206 #endif // VM_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698