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

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

Issue 1358773002: Load the native call wrapper via Thread. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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
« no previous file with comments | « runtime/vm/native_entry.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 3588 matching lines...) Expand 10 before | Expand all | Expand 10 after
3599 3599
3600 3600
3601 // ObjectPool contains constants, immediates and addresses embedded in code 3601 // ObjectPool contains constants, immediates and addresses embedded in code
3602 // and deoptimization infos. Each entry has an type-info associated with it 3602 // and deoptimization infos. Each entry has an type-info associated with it
3603 // which is stored in a typed data array (info_array). 3603 // which is stored in a typed data array (info_array).
3604 class ObjectPool : public Object { 3604 class ObjectPool : public Object {
3605 public: 3605 public:
3606 enum EntryType { 3606 enum EntryType {
3607 kTaggedObject, 3607 kTaggedObject,
3608 kImmediate, 3608 kImmediate,
3609 kExternalLabel,
3610 kNativeEntry, 3609 kNativeEntry,
3611 }; 3610 };
3612 3611
3613 struct Entry { 3612 struct Entry {
3614 Entry() : raw_value_(), type_() { } 3613 Entry() : raw_value_(), type_() { }
3615 explicit Entry(const Object* obj) : obj_(obj), type_(kTaggedObject) { } 3614 explicit Entry(const Object* obj) : obj_(obj), type_(kTaggedObject) { }
3616 Entry(uword value, EntryType info) : raw_value_(value), type_(info) { } 3615 Entry(uword value, EntryType info) : raw_value_(value), type_(info) { }
3617 union { 3616 union {
3618 const Object* obj_; 3617 const Object* obj_;
3619 uword raw_value_; 3618 uword raw_value_;
(...skipping 4494 matching lines...) Expand 10 before | Expand all | Expand 10 after
8114 8113
8115 8114
8116 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 8115 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
8117 intptr_t index) { 8116 intptr_t index) {
8118 return array.At((index * kEntryLength) + kTargetFunctionIndex); 8117 return array.At((index * kEntryLength) + kTargetFunctionIndex);
8119 } 8118 }
8120 8119
8121 } // namespace dart 8120 } // namespace dart
8122 8121
8123 #endif // VM_OBJECT_H_ 8122 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/native_entry.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698