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

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 2021 matching lines...) Expand 10 before | Expand all | Expand 10 after
2032 }; 2032 };
2033 2033
2034 2034
2035 class Function : public Object { 2035 class Function : public Object {
2036 public: 2036 public:
2037 RawString* name() const { return raw_ptr()->name_; } 2037 RawString* name() const { return raw_ptr()->name_; }
2038 RawString* PrettyName() const; 2038 RawString* PrettyName() const;
2039 RawString* UserVisibleName() const; 2039 RawString* UserVisibleName() const;
2040 RawString* QualifiedPrettyName() const; 2040 RawString* QualifiedPrettyName() const;
2041 RawString* QualifiedUserVisibleName() const; 2041 RawString* QualifiedUserVisibleName() const;
2042 const char* QualifiedUserVisibleNameCString() const;
2042 virtual RawString* DictionaryName() const { return name(); } 2043 virtual RawString* DictionaryName() const { return name(); }
2043 2044
2044 RawString* GetSource() const; 2045 RawString* GetSource() const;
2045 2046
2046 // Build a string of the form 'C<T, R>(T, {b: B, c: C}) => R' representing the 2047 // Build a string of the form 'C<T, R>(T, {b: B, c: C}) => R' representing the
2047 // internal signature of the given function. In this example, T and R are 2048 // internal signature of the given function. In this example, T and R are
2048 // type parameters of class C, the owner of the function. 2049 // type parameters of class C, the owner of the function.
2049 RawString* Signature() const { 2050 RawString* Signature() const {
2050 const bool instantiate = false; 2051 const bool instantiate = false;
2051 return BuildSignature(instantiate, kInternalName, TypeArguments::Handle()); 2052 return BuildSignature(instantiate, kInternalName, TypeArguments::Handle());
(...skipping 5909 matching lines...) Expand 10 before | Expand all | Expand 10 after
7961 7962
7962 7963
7963 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 7964 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
7964 intptr_t index) { 7965 intptr_t index) {
7965 return array.At((index * kEntryLength) + kTargetFunctionIndex); 7966 return array.At((index * kEntryLength) + kTargetFunctionIndex);
7966 } 7967 }
7967 7968
7968 } // namespace dart 7969 } // namespace dart
7969 7970
7970 #endif // VM_OBJECT_H_ 7971 #endif // VM_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698