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

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

Issue 23627009: Remove inlining restriction of calls to the == operator. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 3 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
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 4163 matching lines...) Expand 10 before | Expand all | Expand 10 after
4174 set_kind_tag(AbstractBit::update(value, raw_ptr()->kind_tag_)); 4174 set_kind_tag(AbstractBit::update(value, raw_ptr()->kind_tag_));
4175 } 4175 }
4176 4176
4177 4177
4178 void Function::set_is_inlinable(bool value) const { 4178 void Function::set_is_inlinable(bool value) const {
4179 set_kind_tag(InlinableBit::update(value, raw_ptr()->kind_tag_)); 4179 set_kind_tag(InlinableBit::update(value, raw_ptr()->kind_tag_));
4180 } 4180 }
4181 4181
4182 4182
4183 bool Function::IsInlineable() const { 4183 bool Function::IsInlineable() const {
4184 // '==' call is handled specially. 4184 return InlinableBit::decode(raw_ptr()->kind_tag_) && HasCode();
4185 return InlinableBit::decode(raw_ptr()->kind_tag_) &&
4186 HasCode() &&
4187 name() != Symbols::EqualOperator().raw();
4188 } 4185 }
4189 4186
4190 4187
4191 void Function::set_is_visible(bool value) const { 4188 void Function::set_is_visible(bool value) const {
4192 set_kind_tag(VisibleBit::update(value, raw_ptr()->kind_tag_)); 4189 set_kind_tag(VisibleBit::update(value, raw_ptr()->kind_tag_));
4193 } 4190 }
4194 4191
4195 4192
4196 intptr_t Function::NumParameters() const { 4193 intptr_t Function::NumParameters() const {
4197 return num_fixed_parameters() + NumOptionalParameters(); 4194 return num_fixed_parameters() + NumOptionalParameters();
(...skipping 10730 matching lines...) Expand 10 before | Expand all | Expand 10 after
14928 } 14925 }
14929 14926
14930 14927
14931 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { 14928 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const {
14932 stream->OpenObject(); 14929 stream->OpenObject();
14933 stream->CloseObject(); 14930 stream->CloseObject();
14934 } 14931 }
14935 14932
14936 14933
14937 } // namespace dart 14934 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language.cc ('k') | runtime/vm/parser.cc » ('j') | runtime/vm/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698