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

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

Issue 2948153003: VM: Fix fragile shaker test after changes to hash code storage. (Closed)
Patch Set: Created 3 years, 5 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 | « pkg/front_end/testcases/shaker/empty_program.dart.shaker ('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/become.h" 10 #include "vm/become.h"
(...skipping 1021 matching lines...) Expand 10 before | Expand all | Expand 10 after
1032 if (counter_ == 0) counter_++; 1032 if (counter_ == 0) counter_++;
1033 Object::SetCachedHash(obj, counter_); 1033 Object::SetCachedHash(obj, counter_);
1034 } 1034 }
1035 } 1035 }
1036 #endif 1036 #endif
1037 } 1037 }
1038 } 1038 }
1039 1039
1040 private: 1040 private:
1041 #if defined(HASH_IN_OBJECT_HEADER) 1041 #if defined(HASH_IN_OBJECT_HEADER)
1042 int counter_; 1042 int32_t counter_;
1043 #endif 1043 #endif
1044 }; 1044 };
1045 1045
1046 1046
1047 #define SET_CLASS_NAME(class_name, name) \ 1047 #define SET_CLASS_NAME(class_name, name) \
1048 cls = class_name##_class(); \ 1048 cls = class_name##_class(); \
1049 cls.set_name(Symbols::name()); 1049 cls.set_name(Symbols::name());
1050 1050
1051 void Object::FinalizeVMIsolate(Isolate* isolate) { 1051 void Object::FinalizeVMIsolate(Isolate* isolate) {
1052 // Should only be run by the vm isolate. 1052 // Should only be run by the vm isolate.
(...skipping 22493 matching lines...) Expand 10 before | Expand all | Expand 10 after
23546 return UserTag::null(); 23546 return UserTag::null();
23547 } 23547 }
23548 23548
23549 23549
23550 const char* UserTag::ToCString() const { 23550 const char* UserTag::ToCString() const {
23551 const String& tag_label = String::Handle(label()); 23551 const String& tag_label = String::Handle(label());
23552 return tag_label.ToCString(); 23552 return tag_label.ToCString();
23553 } 23553 }
23554 23554
23555 } // namespace dart 23555 } // namespace dart
OLDNEW
« no previous file with comments | « pkg/front_end/testcases/shaker/empty_program.dart.shaker ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698