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

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

Issue 557913002: Allow invalidation and recompilation of instance allocation stubs. Requested in order to implement… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 3 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 | Annotate | Revision Log
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 1113 matching lines...) Expand 10 before | Expand all | Expand 10 after
1124 } 1124 }
1125 void set_num_native_fields(uint16_t value) const { 1125 void set_num_native_fields(uint16_t value) const {
1126 raw_ptr()->num_native_fields_ = value; 1126 raw_ptr()->num_native_fields_ = value;
1127 } 1127 }
1128 1128
1129 RawCode* allocation_stub() const { 1129 RawCode* allocation_stub() const {
1130 return raw_ptr()->allocation_stub_; 1130 return raw_ptr()->allocation_stub_;
1131 } 1131 }
1132 void set_allocation_stub(const Code& value) const; 1132 void set_allocation_stub(const Code& value) const;
1133 1133
1134 void DisableAllocationStub() const;
1135
1134 RawArray* constants() const; 1136 RawArray* constants() const;
1135 1137
1136 intptr_t FindInvocationDispatcherFunctionIndex(const Function& needle) const; 1138 intptr_t FindInvocationDispatcherFunctionIndex(const Function& needle) const;
1137 RawFunction* InvocationDispatcherFunctionFromIndex(intptr_t idx) const; 1139 RawFunction* InvocationDispatcherFunctionFromIndex(intptr_t idx) const;
1138 1140
1139 RawFunction* GetInvocationDispatcher(const String& target_name, 1141 RawFunction* GetInvocationDispatcher(const String& target_name,
1140 const Array& args_desc, 1142 const Array& args_desc,
1141 RawFunction::Kind kind) const; 1143 RawFunction::Kind kind) const;
1142 1144
1143 void Finalize() const; 1145 void Finalize() const;
(...skipping 6308 matching lines...) Expand 10 before | Expand all | Expand 10 after
7452 7454
7453 7455
7454 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 7456 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
7455 intptr_t index) { 7457 intptr_t index) {
7456 return array.At((index * kEntryLength) + kTargetFunctionIndex); 7458 return array.At((index * kEntryLength) + kTargetFunctionIndex);
7457 } 7459 }
7458 7460
7459 } // namespace dart 7461 } // namespace dart
7460 7462
7461 #endif // VM_OBJECT_H_ 7463 #endif // VM_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698