Chromium Code Reviews| 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 #ifndef VM_OBJECT_H_ | 5 #ifndef VM_OBJECT_H_ |
| 6 #define VM_OBJECT_H_ | 6 #define VM_OBJECT_H_ |
| 7 | 7 |
| 8 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
| 9 #include "platform/assert.h" | 9 #include "platform/assert.h" |
| 10 #include "platform/utils.h" | 10 #include "platform/utils.h" |
| (...skipping 1368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1379 // Allocate the raw ExternalTypedData classes. | 1379 // Allocate the raw ExternalTypedData classes. |
| 1380 static RawClass* NewExternalTypedDataClass(intptr_t class_id); | 1380 static RawClass* NewExternalTypedDataClass(intptr_t class_id); |
| 1381 | 1381 |
| 1382 // Register code that has used CHA for optimization. | 1382 // Register code that has used CHA for optimization. |
| 1383 // TODO(srdjan): Also register kind of CHA optimization (e.g.: leaf class, | 1383 // TODO(srdjan): Also register kind of CHA optimization (e.g.: leaf class, |
| 1384 // leaf method, ...). | 1384 // leaf method, ...). |
| 1385 void RegisterCHACode(const Code& code); | 1385 void RegisterCHACode(const Code& code); |
| 1386 | 1386 |
| 1387 void DisableCHAOptimizedCode(const Class& subclass); | 1387 void DisableCHAOptimizedCode(const Class& subclass); |
| 1388 | 1388 |
| 1389 RawArray* cha_codes() const { return raw_ptr()->cha_codes_; } | 1389 RawArray* cha_codes() const { return raw_ptr()->dependent_code_; } |
|
siva
2016/04/29 21:04:24
This seems to violate our naming standard that we
rmacnak
2016/04/29 21:47:49
Renamed the accessors to [set_]dependent_code and
| |
| 1390 void set_cha_codes(const Array& value) const; | 1390 void set_cha_codes(const Array& value) const; |
| 1391 | 1391 |
| 1392 bool TraceAllocation(Isolate* isolate) const; | 1392 bool TraceAllocation(Isolate* isolate) const; |
| 1393 void SetTraceAllocation(bool trace_allocation) const; | 1393 void SetTraceAllocation(bool trace_allocation) const; |
| 1394 | 1394 |
| 1395 bool ValidatePostFinalizePatch(const Class& orig_class, Error* error) const; | 1395 bool ValidatePostFinalizePatch(const Class& orig_class, Error* error) const; |
| 1396 | 1396 |
| 1397 private: | 1397 private: |
| 1398 enum MemberKind { | 1398 enum MemberKind { |
| 1399 kAny = 0, | 1399 kAny = 0, |
| (...skipping 7107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 8507 | 8507 |
| 8508 | 8508 |
| 8509 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 8509 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 8510 intptr_t index) { | 8510 intptr_t index) { |
| 8511 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 8511 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 8512 } | 8512 } |
| 8513 | 8513 |
| 8514 } // namespace dart | 8514 } // namespace dart |
| 8515 | 8515 |
| 8516 #endif // VM_OBJECT_H_ | 8516 #endif // VM_OBJECT_H_ |
| OLD | NEW |