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

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
« no previous file with comments | « runtime/vm/json_stream.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »
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 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 5915 matching lines...) Expand 10 before | Expand all | Expand 10 after
7967 7968
7968 7969
7969 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 7970 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
7970 intptr_t index) { 7971 intptr_t index) {
7971 return array.At((index * kEntryLength) + kTargetFunctionIndex); 7972 return array.At((index * kEntryLength) + kTargetFunctionIndex);
7972 } 7973 }
7973 7974
7974 } // namespace dart 7975 } // namespace dart
7975 7976
7976 #endif // VM_OBJECT_H_ 7977 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « 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