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

Side by Side Diff: runtime/vm/code_patcher.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/code_generator.cc ('k') | runtime/vm/code_patcher_arm.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 // Class for patching compiled code. 4 // Class for patching compiled code.
5 5
6 #ifndef VM_CODE_PATCHER_H_ 6 #ifndef VM_CODE_PATCHER_H_
7 #define VM_CODE_PATCHER_H_ 7 #define VM_CODE_PATCHER_H_
8 8
9 #include "vm/allocation.h" 9 #include "vm/allocation.h"
10 #include "vm/native_entry.h" 10 #include "vm/native_entry.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 static intptr_t InstanceCallSizeInBytes(); 69 static intptr_t InstanceCallSizeInBytes();
70 70
71 static void InsertDeoptimizationCallAt(uword start, uword target); 71 static void InsertDeoptimizationCallAt(uword start, uword target);
72 72
73 static void PatchPoolPointerCallAt(uword return_address, 73 static void PatchPoolPointerCallAt(uword return_address,
74 const Code& code, 74 const Code& code,
75 const Code& new_target); 75 const Code& new_target);
76 76
77 static void PatchSwitchableCallAt(uword return_address, 77 static void PatchSwitchableCallAt(uword return_address,
78 const Code& code, 78 const Code& caller_code,
79 const ICData& ic_data, 79 const Object& data,
80 const MegamorphicCache& new_cache, 80 const Code& target);
81 const Code& lookup_stub); 81 static RawObject* GetSwitchableCallDataAt(uword return_address,
82 const Code& caller_code);
83 static RawCode* GetSwitchableCallTargetAt(uword return_address,
84 const Code& caller_code);
82 85
83 static RawCode* GetNativeCallAt(uword return_address, 86 static RawCode* GetNativeCallAt(uword return_address,
84 const Code& code, 87 const Code& code,
85 NativeFunction* target); 88 NativeFunction* target);
86 89
87 static void PatchNativeCallAt(uword return_address, 90 static void PatchNativeCallAt(uword return_address,
88 const Code& code, 91 const Code& code,
89 NativeFunction target, 92 NativeFunction target,
90 const Code& trampoline); 93 const Code& trampoline);
91 }; 94 };
92 95
93 } // namespace dart 96 } // namespace dart
94 97
95 #endif // VM_CODE_PATCHER_H_ 98 #endif // VM_CODE_PATCHER_H_
OLDNEW
« no previous file with comments | « runtime/vm/code_generator.cc ('k') | runtime/vm/code_patcher_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698