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

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

Issue 1930263002: Don't include dependent code arrays in snapshots. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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 | « no previous file | runtime/vm/object.cc » ('j') | 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 #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
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 // Return the list of code objects that were compiled using CHA of this class.
1390 void set_cha_codes(const Array& value) const; 1390 // These code objects will be invalidated if new subclasses of this class
1391 // are finalized.
1392 RawArray* dependent_code() const { return raw_ptr()->dependent_code_; }
1393 void set_dependent_code(const Array& array) const;
1391 1394
1392 bool TraceAllocation(Isolate* isolate) const; 1395 bool TraceAllocation(Isolate* isolate) const;
1393 void SetTraceAllocation(bool trace_allocation) const; 1396 void SetTraceAllocation(bool trace_allocation) const;
1394 1397
1395 bool ValidatePostFinalizePatch(const Class& orig_class, Error* error) const; 1398 bool ValidatePostFinalizePatch(const Class& orig_class, Error* error) const;
1396 1399
1397 private: 1400 private:
1398 enum MemberKind { 1401 enum MemberKind {
1399 kAny = 0, 1402 kAny = 0,
1400 kStatic, 1403 kStatic,
(...skipping 7106 matching lines...) Expand 10 before | Expand all | Expand 10 after
8507 8510
8508 8511
8509 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 8512 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
8510 intptr_t index) { 8513 intptr_t index) {
8511 return array.At((index * kEntryLength) + kTargetFunctionIndex); 8514 return array.At((index * kEntryLength) + kTargetFunctionIndex);
8512 } 8515 }
8513 8516
8514 } // namespace dart 8517 } // namespace dart
8515 8518
8516 #endif // VM_OBJECT_H_ 8519 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698