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

Unified Diff: runtime/vm/code_patcher.cc

Issue 296003013: - Reduce the number of Isolate::Current() calls. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/code_patcher.cc
===================================================================
--- runtime/vm/code_patcher.cc (revision 36483)
+++ runtime/vm/code_patcher.cc (working copy)
@@ -17,10 +17,9 @@
intptr_t size)
: address_(address), size_(size) {
if (FLAG_write_protect_code) {
- bool status =
- VirtualMemory::Protect(reinterpret_cast<void*>(address),
- size,
- VirtualMemory::kReadWrite);
+ bool status = VirtualMemory::Protect(reinterpret_cast<void*>(address),
+ size,
+ VirtualMemory::kReadWrite);
ASSERT(status);
}
}
@@ -28,10 +27,9 @@
WritableInstructionsScope::~WritableInstructionsScope() {
if (FLAG_write_protect_code) {
- bool status =
- VirtualMemory::Protect(reinterpret_cast<void*>(address_),
- size_,
- VirtualMemory::kReadExecute);
+ bool status = VirtualMemory::Protect(reinterpret_cast<void*>(address_),
+ size_,
+ VirtualMemory::kReadExecute);
ASSERT(status);
}
}

Powered by Google App Engine
This is Rietveld 408576698