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

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

Issue 1170503004: Initial Timeline Events (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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
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 2013 matching lines...) Expand 10 before | Expand all | Expand 10 after
2024 }; 2024 };
2025 2025
2026 2026
2027 class Function : public Object { 2027 class Function : public Object {
2028 public: 2028 public:
2029 RawString* name() const { return raw_ptr()->name_; } 2029 RawString* name() const { return raw_ptr()->name_; }
2030 RawString* PrettyName() const; 2030 RawString* PrettyName() const;
2031 RawString* UserVisibleName() const; 2031 RawString* UserVisibleName() const;
2032 RawString* QualifiedPrettyName() const; 2032 RawString* QualifiedPrettyName() const;
2033 RawString* QualifiedUserVisibleName() const; 2033 RawString* QualifiedUserVisibleName() const;
2034 const char* QualifiedUserVisibleNameCString() const;
2034 virtual RawString* DictionaryName() const { return name(); } 2035 virtual RawString* DictionaryName() const { return name(); }
2035 2036
2036 RawString* GetSource() const; 2037 RawString* GetSource() const;
2037 2038
2038 // Build a string of the form 'C<T, R>(T, {b: B, c: C}) => R' representing the 2039 // Build a string of the form 'C<T, R>(T, {b: B, c: C}) => R' representing the
2039 // internal signature of the given function. In this example, T and R are 2040 // internal signature of the given function. In this example, T and R are
2040 // type parameters of class C, the owner of the function. 2041 // type parameters of class C, the owner of the function.
2041 RawString* Signature() const { 2042 RawString* Signature() const {
2042 const bool instantiate = false; 2043 const bool instantiate = false;
2043 return BuildSignature(instantiate, kInternalName, TypeArguments::Handle()); 2044 return BuildSignature(instantiate, kInternalName, TypeArguments::Handle());
(...skipping 5809 matching lines...) Expand 10 before | Expand all | Expand 10 after
7853 7854
7854 7855
7855 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 7856 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
7856 intptr_t index) { 7857 intptr_t index) {
7857 return array.At((index * kEntryLength) + kTargetFunctionIndex); 7858 return array.At((index * kEntryLength) + kTargetFunctionIndex);
7858 } 7859 }
7859 7860
7860 } // namespace dart 7861 } // namespace dart
7861 7862
7862 #endif // VM_OBJECT_H_ 7863 #endif // VM_OBJECT_H_
OLDNEW
« runtime/vm/isolate.cc ('K') | « runtime/vm/json_stream.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698