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

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 2004 matching lines...) Expand 10 before | Expand all | Expand 10 after
2015 2015
2016 FINAL_HEAP_OBJECT_IMPLEMENTATION(ICData, Object); 2016 FINAL_HEAP_OBJECT_IMPLEMENTATION(ICData, Object);
2017 friend class Class; 2017 friend class Class;
2018 }; 2018 };
2019 2019
2020 2020
2021 class Function : public Object { 2021 class Function : public Object {
2022 public: 2022 public:
2023 RawString* name() const { return raw_ptr()->name_; } 2023 RawString* name() const { return raw_ptr()->name_; }
2024 RawString* PrettyName() const; 2024 RawString* PrettyName() const;
2025 const char* PrettyNameCString() const;
2025 RawString* UserVisibleName() const; 2026 RawString* UserVisibleName() const;
2026 RawString* QualifiedPrettyName() const; 2027 RawString* QualifiedPrettyName() const;
2027 RawString* QualifiedUserVisibleName() const; 2028 RawString* QualifiedUserVisibleName() const;
2028 virtual RawString* DictionaryName() const { return name(); } 2029 virtual RawString* DictionaryName() const { return name(); }
2029 2030
2030 RawString* GetSource() const; 2031 RawString* GetSource() const;
2031 2032
2032 // Build a string of the form 'C<T, R>(T, {b: B, c: C}) => R' representing the 2033 // Build a string of the form 'C<T, R>(T, {b: B, c: C}) => R' representing the
2033 // internal signature of the given function. In this example, T and R are 2034 // internal signature of the given function. In this example, T and R are
2034 // type parameters of class C, the owner of the function. 2035 // type parameters of class C, the owner of the function.
(...skipping 5813 matching lines...) Expand 10 before | Expand all | Expand 10 after
7848 7849
7849 7850
7850 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 7851 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
7851 intptr_t index) { 7852 intptr_t index) {
7852 return array.At((index * kEntryLength) + kTargetFunctionIndex); 7853 return array.At((index * kEntryLength) + kTargetFunctionIndex);
7853 } 7854 }
7854 7855
7855 } // namespace dart 7856 } // namespace dart
7856 7857
7857 #endif // VM_OBJECT_H_ 7858 #endif // VM_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698