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

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

Issue 2226893002: Optimize AOT's switchable calls for the monomorphic case. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: sync Created 4 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/profiler_test.cc ('k') | runtime/vm/runtime_entry_list.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_RAW_OBJECT_H_ 5 #ifndef VM_RAW_OBJECT_H_
6 #define VM_RAW_OBJECT_H_ 6 #define VM_RAW_OBJECT_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/atomic.h" 9 #include "vm/atomic.h"
10 #include "vm/globals.h" 10 #include "vm/globals.h"
(...skipping 1085 matching lines...) Expand 10 before | Expand all | Expand 10 after
1096 kInlinedIntervalsIndex = 0, 1096 kInlinedIntervalsIndex = 0,
1097 kInlinedIdToFunctionIndex = 1, 1097 kInlinedIdToFunctionIndex = 1,
1098 kInlinedCallerIdMapIndex = 2, 1098 kInlinedCallerIdMapIndex = 2,
1099 kInlinedIdToTokenPosIndex = 3, 1099 kInlinedIdToTokenPosIndex = 3,
1100 kInlinedMetadataSize = 4, 1100 kInlinedMetadataSize = 4,
1101 }; 1101 };
1102 1102
1103 RAW_HEAP_OBJECT_IMPLEMENTATION(Code); 1103 RAW_HEAP_OBJECT_IMPLEMENTATION(Code);
1104 1104
1105 uword entry_point_; 1105 uword entry_point_;
1106 uword checked_entry_point_;
1106 1107
1107 RawObject** from() { 1108 RawObject** from() {
1108 return reinterpret_cast<RawObject**>(&ptr()->active_instructions_); 1109 return reinterpret_cast<RawObject**>(&ptr()->active_instructions_);
1109 } 1110 }
1110 RawInstructions* active_instructions_; 1111 RawInstructions* active_instructions_;
1111 RawInstructions* instructions_; 1112 RawInstructions* instructions_;
1112 RawObjectPool* object_pool_; 1113 RawObjectPool* object_pool_;
1113 // If owner_ is Function::null() the owner is a regular stub. 1114 // If owner_ is Function::null() the owner is a regular stub.
1114 // If owner_ is a Class the owner is the allocation stub for that class. 1115 // If owner_ is a Class the owner is the allocation stub for that class.
1115 // Else, owner_ is a regular Dart Function. 1116 // Else, owner_ is a regular Dart Function.
(...skipping 1307 matching lines...) Expand 10 before | Expand all | Expand 10 after
2423 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == 2424 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid ==
2424 kTypedDataInt8ArrayViewCid + 15); 2425 kTypedDataInt8ArrayViewCid + 15);
2425 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); 2426 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14);
2426 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); 2427 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1);
2427 return (kNullCid - kTypedDataInt8ArrayCid); 2428 return (kNullCid - kTypedDataInt8ArrayCid);
2428 } 2429 }
2429 2430
2430 } // namespace dart 2431 } // namespace dart
2431 2432
2432 #endif // VM_RAW_OBJECT_H_ 2433 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/profiler_test.cc ('k') | runtime/vm/runtime_entry_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698