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

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

Issue 2131583002: Optimized megamorphic stubs (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Addressed Florians comments. Created 4 years, 5 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
« runtime/vm/stub_code_arm64.cc ('K') | « runtime/vm/stub_code_x64.cc ('k') | no next file » | 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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_THREAD_H_ 5 #ifndef VM_THREAD_H_
6 #define VM_THREAD_H_ 6 #define VM_THREAD_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 "vm/atomic.h" 10 #include "vm/atomic.h"
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 CACHED_VM_STUBS_LIST(V) \ 98 CACHED_VM_STUBS_LIST(V) \
99 99
100 #if defined(TARGET_ARCH_DBC) 100 #if defined(TARGET_ARCH_DBC)
101 #define CACHED_VM_STUBS_ADDRESSES_LIST(V) 101 #define CACHED_VM_STUBS_ADDRESSES_LIST(V)
102 #else 102 #else
103 #define CACHED_VM_STUBS_ADDRESSES_LIST(V) \ 103 #define CACHED_VM_STUBS_ADDRESSES_LIST(V) \
104 V(uword, update_store_buffer_entry_point_, \ 104 V(uword, update_store_buffer_entry_point_, \
105 StubCode::UpdateStoreBuffer_entry()->EntryPoint(), 0) \ 105 StubCode::UpdateStoreBuffer_entry()->EntryPoint(), 0) \
106 V(uword, call_to_runtime_entry_point_, \ 106 V(uword, call_to_runtime_entry_point_, \
107 StubCode::CallToRuntime_entry()->EntryPoint(), 0) \ 107 StubCode::CallToRuntime_entry()->EntryPoint(), 0) \
108 V(uword, megamorphic_lookup_entry_point_, \
109 StubCode::MegamorphicLookup_entry()->EntryPoint(), 0) \
108 110
109 #endif 111 #endif
110 112
111 #define CACHED_ADDRESSES_LIST(V) \ 113 #define CACHED_ADDRESSES_LIST(V) \
112 CACHED_VM_STUBS_ADDRESSES_LIST(V) \ 114 CACHED_VM_STUBS_ADDRESSES_LIST(V) \
113 V(uword, native_call_wrapper_entry_point_, \ 115 V(uword, native_call_wrapper_entry_point_, \
114 NativeEntry::NativeCallWrapperEntry(), 0) \ 116 NativeEntry::NativeCallWrapperEntry(), 0) \
115 V(RawString**, predefined_symbols_address_, \ 117 V(RawString**, predefined_symbols_address_, \
116 Symbols::PredefinedAddress(), NULL) \ 118 Symbols::PredefinedAddress(), NULL) \
117 V(uword, double_negate_address_, \ 119 V(uword, double_negate_address_, \
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after
766 // Disable thread interrupts. 768 // Disable thread interrupts.
767 class DisableThreadInterruptsScope : public StackResource { 769 class DisableThreadInterruptsScope : public StackResource {
768 public: 770 public:
769 explicit DisableThreadInterruptsScope(Thread* thread); 771 explicit DisableThreadInterruptsScope(Thread* thread);
770 ~DisableThreadInterruptsScope(); 772 ~DisableThreadInterruptsScope();
771 }; 773 };
772 774
773 } // namespace dart 775 } // namespace dart
774 776
775 #endif // VM_THREAD_H_ 777 #endif // VM_THREAD_H_
OLDNEW
« runtime/vm/stub_code_arm64.cc ('K') | « runtime/vm/stub_code_x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698