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

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

Issue 1295693002: Add ObjectPool tag for external labels. Use LoadExternalLabel for native calls... (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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 | « runtime/vm/intermediate_language_x64.cc ('k') | 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 3537 matching lines...) Expand 10 before | Expand all | Expand 10 after
3548 3548
3549 3549
3550 // ObjectPool contains constants, immediates and addresses embedded in code 3550 // ObjectPool contains constants, immediates and addresses embedded in code
3551 // and deoptimization infos. Each entry has an type-info associated with it 3551 // and deoptimization infos. Each entry has an type-info associated with it
3552 // which is stored in a typed data array (info_array). 3552 // which is stored in a typed data array (info_array).
3553 class ObjectPool : public Object { 3553 class ObjectPool : public Object {
3554 public: 3554 public:
3555 enum EntryType { 3555 enum EntryType {
3556 kTaggedObject, 3556 kTaggedObject,
3557 kImmediate, 3557 kImmediate,
3558 kExternalLabel,
3558 }; 3559 };
3559 3560
3560 struct Entry { 3561 struct Entry {
3561 Entry() : raw_value_(), type_() { } 3562 Entry() : raw_value_(), type_() { }
3562 explicit Entry(const Object* obj) : obj_(obj), type_(kTaggedObject) { } 3563 explicit Entry(const Object* obj) : obj_(obj), type_(kTaggedObject) { }
3563 Entry(uword value, EntryType info) : raw_value_(value), type_(info) { } 3564 Entry(uword value, EntryType info) : raw_value_(value), type_(info) { }
3564 union { 3565 union {
3565 const Object* obj_; 3566 const Object* obj_;
3566 uword raw_value_; 3567 uword raw_value_;
3567 }; 3568 };
(...skipping 4467 matching lines...) Expand 10 before | Expand all | Expand 10 after
8035 8036
8036 8037
8037 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 8038 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
8038 intptr_t index) { 8039 intptr_t index) {
8039 return array.At((index * kEntryLength) + kTargetFunctionIndex); 8040 return array.At((index * kEntryLength) + kTargetFunctionIndex);
8040 } 8041 }
8041 8042
8042 } // namespace dart 8043 } // namespace dart
8043 8044
8044 #endif // VM_OBJECT_H_ 8045 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_x64.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698