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

Unified Diff: runtime/vm/code_patcher_ia32.cc

Issue 2481873005: clang-format runtime/vm (Closed)
Patch Set: Merge Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/code_patcher_dbc.cc ('k') | runtime/vm/code_patcher_ia32_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/code_patcher_ia32.cc
diff --git a/runtime/vm/code_patcher_ia32.cc b/runtime/vm/code_patcher_ia32.cc
index de3f74c493d55ecd4132d462bbbf3717fbc6d9dd..45f39238fc6e0c6cc5e353765ee5040704c4300e 100644
--- a/runtime/vm/code_patcher_ia32.cc
+++ b/runtime/vm/code_patcher_ia32.cc
@@ -44,13 +44,9 @@ class UnoptimizedCall : public ValueObject {
(code_bytes[2 * kMovInstructionSize] == 0xFF);
}
- uword return_address() const {
- return start_ + kPatternSize;
- }
+ uword return_address() const { return start_ + kPatternSize; }
- uword call_address() const {
- return start_ + 2 * kMovInstructionSize;
- }
+ uword call_address() const { return start_ + 2 * kMovInstructionSize; }
protected:
uword start_;
@@ -62,8 +58,7 @@ class UnoptimizedCall : public ValueObject {
class NativeCall : public UnoptimizedCall {
public:
- explicit NativeCall(uword return_address) : UnoptimizedCall(return_address) {
- }
+ explicit NativeCall(uword return_address) : UnoptimizedCall(return_address) {}
NativeFunction native_function() const {
return *reinterpret_cast<NativeFunction*>(start_ + 1);
@@ -145,12 +140,10 @@ class StaticCall : public ValueObject {
private:
uword return_address() const {
- return start_ + kMovInstructionSize + kCallInstructionSize;
+ return start_ + kMovInstructionSize + kCallInstructionSize;
}
- uword call_address() const {
- return start_ + kMovInstructionSize;
- }
+ uword call_address() const { return start_ + kMovInstructionSize; }
uword start_;
@@ -182,8 +175,9 @@ void CodePatcher::InsertDeoptimizationCallAt(uword start) {
}
-RawCode* CodePatcher::GetInstanceCallAt(
- uword return_address, const Code& code, ICData* ic_data) {
+RawCode* CodePatcher::GetInstanceCallAt(uword return_address,
+ const Code& code,
+ ICData* ic_data) {
ASSERT(code.ContainsInstructionAt(return_address));
InstanceCall call(return_address);
if (ic_data != NULL) {
@@ -193,8 +187,9 @@ RawCode* CodePatcher::GetInstanceCallAt(
}
-RawFunction* CodePatcher::GetUnoptimizedStaticCallAt(
- uword return_address, const Code& code, ICData* ic_data_result) {
+RawFunction* CodePatcher::GetUnoptimizedStaticCallAt(uword return_address,
+ const Code& code,
+ ICData* ic_data_result) {
ASSERT(code.ContainsInstructionAt(return_address));
UnoptimizedStaticCall static_call(return_address);
ICData& ic_data = ICData::Handle();
@@ -247,7 +242,6 @@ RawCode* CodePatcher::GetNativeCallAt(uword return_address,
}
-
intptr_t CodePatcher::InstanceCallSizeInBytes() {
return InstanceCall::kPatternSize;
}
« no previous file with comments | « runtime/vm/code_patcher_dbc.cc ('k') | runtime/vm/code_patcher_ia32_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698