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

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: rebase 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 4798 matching lines...) Expand 10 before | Expand all | Expand 10 after
4809 4809
4810 static RawString* Transform(int32_t (*mapping)(int32_t ch), 4810 static RawString* Transform(int32_t (*mapping)(int32_t ch),
4811 const String& str, 4811 const String& str,
4812 Heap::Space space = Heap::kNew); 4812 Heap::Space space = Heap::kNew);
4813 4813
4814 static RawString* ToUpperCase(const String& str, 4814 static RawString* ToUpperCase(const String& str,
4815 Heap::Space space = Heap::kNew); 4815 Heap::Space space = Heap::kNew);
4816 static RawString* ToLowerCase(const String& str, 4816 static RawString* ToLowerCase(const String& str,
4817 Heap::Space space = Heap::kNew); 4817 Heap::Space space = Heap::kNew);
4818 4818
4819 static RawString* IdentifierPrettyName(const String& name);
4820 static RawString* IdentifierPrettyNameRetainPrivate(const String& name);
4821
4819 static bool EqualsIgnoringPrivateKey(const String& str1, 4822 static bool EqualsIgnoringPrivateKey(const String& str1,
4820 const String& str2); 4823 const String& str2);
4821 4824
4822 static RawString* NewFormatted(const char* format, ...) 4825 static RawString* NewFormatted(const char* format, ...)
4823 PRINTF_ATTRIBUTE(1, 2); 4826 PRINTF_ATTRIBUTE(1, 2);
4824 static RawString* NewFormattedV(const char* format, va_list args); 4827 static RawString* NewFormattedV(const char* format, va_list args);
4825 4828
4826 protected: 4829 protected:
4827 bool HasHash() const { 4830 bool HasHash() const {
4828 ASSERT(Smi::New(0) == NULL); 4831 ASSERT(Smi::New(0) == NULL);
(...skipping 1414 matching lines...) Expand 10 before | Expand all | Expand 10 after
6243 6246
6244 6247
6245 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 6248 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
6246 intptr_t index) { 6249 intptr_t index) {
6247 return array.At((index * kEntryLength) + kTargetFunctionIndex); 6250 return array.At((index * kEntryLength) + kTargetFunctionIndex);
6248 } 6251 }
6249 6252
6250 } // namespace dart 6253 } // namespace dart
6251 6254
6252 #endif // VM_OBJECT_H_ 6255 #endif // VM_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698