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

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

Issue 227423005: Add TraceBuffer log to all Functions (plus small tweaks to function-view) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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
« no previous file with comments | « runtime/vm/deopt_instructions.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 1877 matching lines...) Expand 10 before | Expand all | Expand 10 after
1888 1888
1889 // Returns true if this function represents a signature function without code. 1889 // Returns true if this function represents a signature function without code.
1890 bool IsSignatureFunction() const { 1890 bool IsSignatureFunction() const {
1891 return kind() == RawFunction::kSignatureFunction; 1891 return kind() == RawFunction::kSignatureFunction;
1892 } 1892 }
1893 1893
1894 static intptr_t InstanceSize() { 1894 static intptr_t InstanceSize() {
1895 return RoundedAllocationSize(sizeof(RawFunction)); 1895 return RoundedAllocationSize(sizeof(RawFunction));
1896 } 1896 }
1897 1897
1898 TraceBuffer* log() const {
1899 ASSERT(raw_ptr()->log_ != NULL);
1900 return raw_ptr()->log_;
1901 }
1902
1903 void set_log(TraceBuffer* trace_buffer) const {
1904 ASSERT(trace_buffer != NULL);
1905 raw_ptr()->log_ = trace_buffer;
1906 }
1907
1898 static RawFunction* New(const String& name, 1908 static RawFunction* New(const String& name,
1899 RawFunction::Kind kind, 1909 RawFunction::Kind kind,
1900 bool is_static, 1910 bool is_static,
1901 bool is_const, 1911 bool is_const,
1902 bool is_abstract, 1912 bool is_abstract,
1903 bool is_external, 1913 bool is_external,
1904 bool is_native, 1914 bool is_native,
1905 const Object& owner, 1915 const Object& owner,
1906 intptr_t token_pos); 1916 intptr_t token_pos);
1907 1917
(...skipping 4917 matching lines...) Expand 10 before | Expand all | Expand 10 after
6825 6835
6826 6836
6827 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 6837 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
6828 intptr_t index) { 6838 intptr_t index) {
6829 return array.At((index * kEntryLength) + kTargetFunctionIndex); 6839 return array.At((index * kEntryLength) + kTargetFunctionIndex);
6830 } 6840 }
6831 6841
6832 } // namespace dart 6842 } // namespace dart
6833 6843
6834 #endif // VM_OBJECT_H_ 6844 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/deopt_instructions.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698