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

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

Issue 1557533002: Eliminate excessive increment of deoptimization counters (e.g., with deep recursion of deoptimized … (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: r Created 4 years, 11 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/flow_graph_inliner.cc ('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 7707 matching lines...) Expand 10 before | Expand all | Expand 10 after
7718 if (FLAG_trace_deoptimization || FLAG_trace_deoptimization_verbose) { 7718 if (FLAG_trace_deoptimization || FLAG_trace_deoptimization_verbose) {
7719 Function& function = Function::Handle(code.function()); 7719 Function& function = Function::Handle(code.function());
7720 THR_Print("Deoptimizing %s because guard on field %s failed.\n", 7720 THR_Print("Deoptimizing %s because guard on field %s failed.\n",
7721 function.ToFullyQualifiedCString(), field_.ToCString()); 7721 function.ToFullyQualifiedCString(), field_.ToCString());
7722 } 7722 }
7723 } 7723 }
7724 7724
7725 virtual void ReportSwitchingCode(const Code& code) { 7725 virtual void ReportSwitchingCode(const Code& code) {
7726 if (FLAG_trace_deoptimization || FLAG_trace_deoptimization_verbose) { 7726 if (FLAG_trace_deoptimization || FLAG_trace_deoptimization_verbose) {
7727 Function& function = Function::Handle(code.function()); 7727 Function& function = Function::Handle(code.function());
7728 THR_Print("Switching %s to unoptimized code because guard" 7728 THR_Print("Switching '%s' to unoptimized code because guard"
7729 " on field %s was violated.\n", 7729 " on field '%s' was violated.\n",
7730 function.ToFullyQualifiedCString(), 7730 function.ToFullyQualifiedCString(),
7731 field_.ToCString()); 7731 field_.ToCString());
7732 } 7732 }
7733 } 7733 }
7734 7734
7735 virtual void IncrementInvalidationGen() { 7735 virtual void IncrementInvalidationGen() {
7736 Isolate::Current()->IncrFieldInvalidationGen(); 7736 Isolate::Current()->IncrFieldInvalidationGen();
7737 } 7737 }
7738 7738
7739 private: 7739 private:
(...skipping 14256 matching lines...) Expand 10 before | Expand all | Expand 10 after
21996 return tag_label.ToCString(); 21996 return tag_label.ToCString();
21997 } 21997 }
21998 21998
21999 21999
22000 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { 22000 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const {
22001 Instance::PrintJSONImpl(stream, ref); 22001 Instance::PrintJSONImpl(stream, ref);
22002 } 22002 }
22003 22003
22004 22004
22005 } // namespace dart 22005 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_inliner.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698