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

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

Issue 1087833005: Add annotation for function declarations. Mark functions with performance problems in red. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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/observatory/lib/src/elements/script_inset.html ('k') | no next file » | 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 #include "vm/object.h" 5 #include "vm/object.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/assembler.h" 9 #include "vm/assembler.h"
10 #include "vm/cpu.h" 10 #include "vm/cpu.h"
(...skipping 6846 matching lines...) Expand 10 before | Expand all | Expand 10 after
6857 if (ref) { 6857 if (ref) {
6858 return; 6858 return;
6859 } 6859 }
6860 jsobj.AddProperty("static", is_static()); 6860 jsobj.AddProperty("static", is_static());
6861 jsobj.AddProperty("const", is_const()); 6861 jsobj.AddProperty("const", is_const());
6862 Code& code = Code::Handle(CurrentCode()); 6862 Code& code = Code::Handle(CurrentCode());
6863 if (!code.IsNull()) { 6863 if (!code.IsNull()) {
6864 jsobj.AddProperty("code", code); 6864 jsobj.AddProperty("code", code);
6865 } 6865 }
6866 jsobj.AddProperty("_optimizable", is_optimizable()); 6866 jsobj.AddProperty("_optimizable", is_optimizable());
6867 jsobj.AddProperty("_inlinable", CanBeInlined()); 6867 jsobj.AddProperty("_inlinable", is_inlinable());
6868 code = unoptimized_code(); 6868 code = unoptimized_code();
6869 if (!code.IsNull()) { 6869 if (!code.IsNull()) {
6870 jsobj.AddProperty("_unoptimizedCode", code); 6870 jsobj.AddProperty("_unoptimizedCode", code);
6871 } 6871 }
6872 jsobj.AddProperty("_usageCounter", usage_counter()); 6872 jsobj.AddProperty("_usageCounter", usage_counter());
6873 jsobj.AddProperty("_optimizedCallSiteCount", optimized_call_site_count()); 6873 jsobj.AddProperty("_optimizedCallSiteCount", optimized_call_site_count());
6874 jsobj.AddProperty("_deoptimizations", 6874 jsobj.AddProperty("_deoptimizations",
6875 static_cast<intptr_t>(deoptimization_counter())); 6875 static_cast<intptr_t>(deoptimization_counter()));
6876 6876
6877 const Script& script = Script::Handle(this->script()); 6877 const Script& script = Script::Handle(this->script());
(...skipping 13802 matching lines...) Expand 10 before | Expand all | Expand 10 after
20680 return tag_label.ToCString(); 20680 return tag_label.ToCString();
20681 } 20681 }
20682 20682
20683 20683
20684 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { 20684 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const {
20685 Instance::PrintJSONImpl(stream, ref); 20685 Instance::PrintJSONImpl(stream, ref);
20686 } 20686 }
20687 20687
20688 20688
20689 } // namespace dart 20689 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/elements/script_inset.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698