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

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

Issue 1418863003: Precompilation: Generate instance calls as IC calls that can switch to Megamoprhic calls. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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 | « runtime/vm/isolate.cc ('k') | runtime/vm/stub_code.h » ('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_STORE_H_ 5 #ifndef VM_OBJECT_STORE_H_
6 #define VM_OBJECT_STORE_H_ 6 #define VM_OBJECT_STORE_H_
7 7
8 #include "vm/object.h" 8 #include "vm/object.h"
9 9
10 namespace dart { 10 namespace dart {
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 void set_token_objects_map(const Array& value) { 442 void set_token_objects_map(const Array& value) {
443 token_objects_map_ = value.raw(); 443 token_objects_map_ = value.raw();
444 } 444 }
445 445
446 RawGrowableObjectArray* megamorphic_cache_table() const { 446 RawGrowableObjectArray* megamorphic_cache_table() const {
447 return megamorphic_cache_table_; 447 return megamorphic_cache_table_;
448 } 448 }
449 void set_megamorphic_cache_table(const GrowableObjectArray& value) { 449 void set_megamorphic_cache_table(const GrowableObjectArray& value) {
450 megamorphic_cache_table_ = value.raw(); 450 megamorphic_cache_table_ = value.raw();
451 } 451 }
452 RawCode* megamorphic_miss_code() const {
453 return megamorphic_miss_code_;
454 }
452 RawFunction* megamorphic_miss_function() const { 455 RawFunction* megamorphic_miss_function() const {
453 return megamorphic_miss_function_; 456 return megamorphic_miss_function_;
454 } 457 }
455 void SetMegamorphicMissHandler(const Code& code, const Function& func) { 458 void SetMegamorphicMissHandler(const Code& code, const Function& func) {
456 // Hold onto the code so it is traced and not detached from the function. 459 // Hold onto the code so it is traced and not detached from the function.
457 megamorphic_miss_code_ = code.raw(); 460 megamorphic_miss_code_ = code.raw();
458 megamorphic_miss_function_ = func.raw(); 461 megamorphic_miss_function_ = func.raw();
459 } 462 }
460 463
461 // Visit all object pointers. 464 // Visit all object pointers.
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 friend class FullSnapshotWriter; 565 friend class FullSnapshotWriter;
563 friend class SnapshotReader; 566 friend class SnapshotReader;
564 friend class VmIsolateSnapshotReader; 567 friend class VmIsolateSnapshotReader;
565 568
566 DISALLOW_COPY_AND_ASSIGN(ObjectStore); 569 DISALLOW_COPY_AND_ASSIGN(ObjectStore);
567 }; 570 };
568 571
569 } // namespace dart 572 } // namespace dart
570 573
571 #endif // VM_OBJECT_STORE_H_ 574 #endif // VM_OBJECT_STORE_H_
OLDNEW
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/stub_code.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698