| OLD | NEW |
| 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 11277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11288 } | 11288 } |
| 11289 // Warning issued in ic miss handler. | 11289 // Warning issued in ic miss handler. |
| 11290 // No decoding necessary, so allow optimization if warning already issued. | 11290 // No decoding necessary, so allow optimization if warning already issued. |
| 11291 if (name.Equals(Symbols::toString()) && !IssuedJSWarning()) { | 11291 if (name.Equals(Symbols::toString()) && !IssuedJSWarning()) { |
| 11292 return true; | 11292 return true; |
| 11293 } | 11293 } |
| 11294 return false; | 11294 return false; |
| 11295 } | 11295 } |
| 11296 | 11296 |
| 11297 | 11297 |
| 11298 bool ICData::IsClosureCall() const { | |
| 11299 return IsClosureCallBit::decode(raw_ptr()->state_bits_); | |
| 11300 } | |
| 11301 | |
| 11302 | |
| 11303 void ICData::SetIsClosureCall() const { | |
| 11304 raw_ptr()->state_bits_ = | |
| 11305 IsClosureCallBit::update(true, raw_ptr()->state_bits_); | |
| 11306 } | |
| 11307 | |
| 11308 | |
| 11309 void ICData::set_state_bits(uint32_t bits) const { | 11298 void ICData::set_state_bits(uint32_t bits) const { |
| 11310 raw_ptr()->state_bits_ = bits; | 11299 raw_ptr()->state_bits_ = bits; |
| 11311 } | 11300 } |
| 11312 | 11301 |
| 11313 | 11302 |
| 11314 intptr_t ICData::TestEntryLengthFor(intptr_t num_args) { | 11303 intptr_t ICData::TestEntryLengthFor(intptr_t num_args) { |
| 11315 return num_args + 1 /* target function*/ + 1 /* frequency */; | 11304 return num_args + 1 /* target function*/ + 1 /* frequency */; |
| 11316 } | 11305 } |
| 11317 | 11306 |
| 11318 | 11307 |
| (...skipping 8380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 19699 return tag_label.ToCString(); | 19688 return tag_label.ToCString(); |
| 19700 } | 19689 } |
| 19701 | 19690 |
| 19702 | 19691 |
| 19703 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { | 19692 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { |
| 19704 Instance::PrintJSONImpl(stream, ref); | 19693 Instance::PrintJSONImpl(stream, ref); |
| 19705 } | 19694 } |
| 19706 | 19695 |
| 19707 | 19696 |
| 19708 } // namespace dart | 19697 } // namespace dart |
| OLD | NEW |