| 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 3387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3398 void Class::set_is_patch() const { | 3398 void Class::set_is_patch() const { |
| 3399 set_state_bits(PatchBit::update(true, raw_ptr()->state_bits_)); | 3399 set_state_bits(PatchBit::update(true, raw_ptr()->state_bits_)); |
| 3400 } | 3400 } |
| 3401 | 3401 |
| 3402 | 3402 |
| 3403 void Class::set_is_synthesized_class() const { | 3403 void Class::set_is_synthesized_class() const { |
| 3404 set_state_bits(SynthesizedClassBit::update(true, raw_ptr()->state_bits_)); | 3404 set_state_bits(SynthesizedClassBit::update(true, raw_ptr()->state_bits_)); |
| 3405 } | 3405 } |
| 3406 | 3406 |
| 3407 | 3407 |
| 3408 void Class::set_is_enum_class() const { |
| 3409 set_state_bits(EnumBit::update(true, raw_ptr()->state_bits_)); |
| 3410 } |
| 3411 |
| 3412 |
| 3408 void Class::set_is_const() const { | 3413 void Class::set_is_const() const { |
| 3409 set_state_bits(ConstBit::update(true, raw_ptr()->state_bits_)); | 3414 set_state_bits(ConstBit::update(true, raw_ptr()->state_bits_)); |
| 3410 } | 3415 } |
| 3411 | 3416 |
| 3412 | 3417 |
| 3413 void Class::set_is_mixin_app_alias() const { | 3418 void Class::set_is_mixin_app_alias() const { |
| 3414 set_state_bits(MixinAppAliasBit::update(true, raw_ptr()->state_bits_)); | 3419 set_state_bits(MixinAppAliasBit::update(true, raw_ptr()->state_bits_)); |
| 3415 } | 3420 } |
| 3416 | 3421 |
| 3417 | 3422 |
| (...skipping 3265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6683 set_ic_data_array(Array::Handle()); | 6688 set_ic_data_array(Array::Handle()); |
| 6684 } | 6689 } |
| 6685 | 6690 |
| 6686 | 6691 |
| 6687 bool Function::CheckSourceFingerprint(int32_t fp) const { | 6692 bool Function::CheckSourceFingerprint(int32_t fp) const { |
| 6688 if (SourceFingerprint() != fp) { | 6693 if (SourceFingerprint() != fp) { |
| 6689 const bool recalculatingFingerprints = false; | 6694 const bool recalculatingFingerprints = false; |
| 6690 if (recalculatingFingerprints) { | 6695 if (recalculatingFingerprints) { |
| 6691 // This output can be copied into a file, then used with sed | 6696 // This output can be copied into a file, then used with sed |
| 6692 // to replace the old values. | 6697 // to replace the old values. |
| 6693 // sed -i .bak -f /tmp/newkeys runtime/vm/intrinsifier.h | 6698 // sed -i .bak -f /tmp/newkeys runtime/vm/method_recognizer.h |
| 6694 // sed -i .bak -f /tmp/newkeys runtime/vm/intermediate_language.h | 6699 // sed -i .bak -f /tmp/newkeys runtime/vm/intermediate_language.h |
| 6695 // sed -i .bak -f /tmp/newkeys runtime/vm/flow_graph_builder.h | 6700 // sed -i .bak -f /tmp/newkeys runtime/vm/flow_graph_builder.h |
| 6696 OS::Print("s/%d/%d/\n", fp, SourceFingerprint()); | 6701 OS::Print("s/%d/%d/\n", fp, SourceFingerprint()); |
| 6697 } else { | 6702 } else { |
| 6698 OS::Print("FP mismatch while recognizing method %s:" | 6703 OS::Print("FP mismatch while recognizing method %s:" |
| 6699 " expecting %d found %d\n", | 6704 " expecting %d found %d\n", |
| 6700 ToFullyQualifiedCString(), | 6705 ToFullyQualifiedCString(), |
| 6701 fp, | 6706 fp, |
| 6702 SourceFingerprint()); | 6707 SourceFingerprint()); |
| 6703 return false; | 6708 return false; |
| (...skipping 13712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20416 return tag_label.ToCString(); | 20421 return tag_label.ToCString(); |
| 20417 } | 20422 } |
| 20418 | 20423 |
| 20419 | 20424 |
| 20420 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { | 20425 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { |
| 20421 Instance::PrintJSONImpl(stream, ref); | 20426 Instance::PrintJSONImpl(stream, ref); |
| 20422 } | 20427 } |
| 20423 | 20428 |
| 20424 | 20429 |
| 20425 } // namespace dart | 20430 } // namespace dart |
| OLD | NEW |