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

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

Issue 1410733006: More general CHA-based inlining and devirtualization for precompiled code. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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 #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 5890 matching lines...) Expand 10 before | Expand all | Expand 10 after
5901 5901
5902 void Function::SetIsNativeAutoSetupScope(bool value) const { 5902 void Function::SetIsNativeAutoSetupScope(bool value) const {
5903 ASSERT(is_native()); 5903 ASSERT(is_native());
5904 set_is_optimizable(value); 5904 set_is_optimizable(value);
5905 } 5905 }
5906 5906
5907 5907
5908 bool Function::CanBeInlined() const { 5908 bool Function::CanBeInlined() const {
5909 return is_inlinable() && 5909 return is_inlinable() &&
5910 !is_generated_body() && 5910 !is_generated_body() &&
5911 HasCode() &&
5912 !Isolate::Current()->debugger()->HasBreakpoint(*this); 5911 !Isolate::Current()->debugger()->HasBreakpoint(*this);
5913 } 5912 }
5914 5913
5915 5914
5916 intptr_t Function::NumParameters() const { 5915 intptr_t Function::NumParameters() const {
5917 return num_fixed_parameters() + NumOptionalParameters(); 5916 return num_fixed_parameters() + NumOptionalParameters();
5918 } 5917 }
5919 5918
5920 5919
5921 intptr_t Function::NumImplicitParameters() const { 5920 intptr_t Function::NumImplicitParameters() const {
(...skipping 15839 matching lines...) Expand 10 before | Expand all | Expand 10 after
21761 return tag_label.ToCString(); 21760 return tag_label.ToCString();
21762 } 21761 }
21763 21762
21764 21763
21765 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { 21764 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const {
21766 Instance::PrintJSONImpl(stream, ref); 21765 Instance::PrintJSONImpl(stream, ref);
21767 } 21766 }
21768 21767
21769 21768
21770 } // namespace dart 21769 } // namespace dart
OLDNEW
« runtime/vm/flow_graph_optimizer.cc ('K') | « runtime/vm/flow_graph_optimizer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698