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

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: addressed comments, fixed type propagation assertion failure 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
« no previous file with comments | « runtime/vm/intermediate_language.h ('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 5893 matching lines...) Expand 10 before | Expand all | Expand 10 after
5904 5904
5905 void Function::SetIsNativeAutoSetupScope(bool value) const { 5905 void Function::SetIsNativeAutoSetupScope(bool value) const {
5906 ASSERT(is_native()); 5906 ASSERT(is_native());
5907 set_is_optimizable(value); 5907 set_is_optimizable(value);
5908 } 5908 }
5909 5909
5910 5910
5911 bool Function::CanBeInlined() const { 5911 bool Function::CanBeInlined() const {
5912 return is_inlinable() && 5912 return is_inlinable() &&
5913 !is_generated_body() && 5913 !is_generated_body() &&
5914 HasCode() &&
5915 !Isolate::Current()->debugger()->HasBreakpoint(*this); 5914 !Isolate::Current()->debugger()->HasBreakpoint(*this);
5916 } 5915 }
5917 5916
5918 5917
5919 intptr_t Function::NumParameters() const { 5918 intptr_t Function::NumParameters() const {
5920 return num_fixed_parameters() + NumOptionalParameters(); 5919 return num_fixed_parameters() + NumOptionalParameters();
5921 } 5920 }
5922 5921
5923 5922
5924 intptr_t Function::NumImplicitParameters() const { 5923 intptr_t Function::NumImplicitParameters() const {
(...skipping 15831 matching lines...) Expand 10 before | Expand all | Expand 10 after
21756 return tag_label.ToCString(); 21755 return tag_label.ToCString();
21757 } 21756 }
21758 21757
21759 21758
21760 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { 21759 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const {
21761 Instance::PrintJSONImpl(stream, ref); 21760 Instance::PrintJSONImpl(stream, ref);
21762 } 21761 }
21763 21762
21764 21763
21765 } // namespace dart 21764 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698