| 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 4430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4441 } | 4441 } |
| 4442 return false; | 4442 return false; |
| 4443 } | 4443 } |
| 4444 uword Hash() const { | 4444 uword Hash() const { |
| 4445 return key_.ComputeCanonicalTableHash(); | 4445 return key_.ComputeCanonicalTableHash(); |
| 4446 } | 4446 } |
| 4447 const Instance& key_; | 4447 const Instance& key_; |
| 4448 | 4448 |
| 4449 private: | 4449 private: |
| 4450 DISALLOW_ALLOCATION(); | 4450 DISALLOW_ALLOCATION(); |
| 4451 DISALLOW_COPY_AND_ASSIGN(CanonicalInstanceKey); | |
| 4452 }; | 4451 }; |
| 4453 | 4452 |
| 4454 | 4453 |
| 4455 // Traits for looking up Canonical Instances based on a hash of the fields. | 4454 // Traits for looking up Canonical Instances based on a hash of the fields. |
| 4456 class CanonicalInstanceTraits { | 4455 class CanonicalInstanceTraits { |
| 4457 public: | 4456 public: |
| 4458 static const char* Name() { return "CanonicalInstanceTraits"; } | 4457 static const char* Name() { return "CanonicalInstanceTraits"; } |
| 4459 static bool ReportStats() { return false; } | 4458 static bool ReportStats() { return false; } |
| 4460 | 4459 |
| 4461 // Called when growing the table. | 4460 // Called when growing the table. |
| (...skipping 17668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 22130 return UserTag::null(); | 22129 return UserTag::null(); |
| 22131 } | 22130 } |
| 22132 | 22131 |
| 22133 | 22132 |
| 22134 const char* UserTag::ToCString() const { | 22133 const char* UserTag::ToCString() const { |
| 22135 const String& tag_label = String::Handle(label()); | 22134 const String& tag_label = String::Handle(label()); |
| 22136 return tag_label.ToCString(); | 22135 return tag_label.ToCString(); |
| 22137 } | 22136 } |
| 22138 | 22137 |
| 22139 } // namespace dart | 22138 } // namespace dart |
| OLD | NEW |