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

Unified Diff: src/x64/register-allocator-x64.cc

Issue 149002: X64: Count operations (increment, decrement) (Closed)
Patch Set: Created 11 years, 6 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: src/x64/register-allocator-x64.cc
diff --git a/src/x64/register-allocator-x64.cc b/src/x64/register-allocator-x64.cc
index 660618b613cf4436169a9700d7f54df21674f944..0dd4abcd8f35c1800f537352a3706da342d672b5 100644
--- a/src/x64/register-allocator-x64.cc
+++ b/src/x64/register-allocator-x64.cc
@@ -71,4 +71,17 @@ void Result::ToRegister(Register target) {
}
+// -------------------------------------------------------------------------
+// RegisterAllocator implementation.
+
+Result RegisterAllocator::AllocateByteRegisterWithoutSpilling() {
+ // X64 has no distinction between registers that can be used as 8-bit
+ // and registers that can't. However, if the register is not one of
+ // AL, CL, DL or BL, the REX.W bit is necessary to trigger 64-bit
William Hesse 2009/06/25 10:46:05 We really don't even need this function anymore.
+ // interpretation of 8-bit registers (using SPL, BPL, DIL and SIL
+ // instead of AH, CH, DH and BH).
+ return AllocateWithoutSpilling();
+}
+
+
} } // namespace v8::internal

Powered by Google App Engine
This is Rietveld 408576698