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

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

Issue 113837: Change the register allocator so that it no longer tracks references... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 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: src/ia32/register-allocator-ia32.cc
===================================================================
--- src/ia32/register-allocator-ia32.cc (revision 2055)
+++ src/ia32/register-allocator-ia32.cc (working copy)
@@ -84,46 +84,6 @@
// -------------------------------------------------------------------------
// RegisterAllocator implementation.
-RegisterFile RegisterAllocator::Reserved() {
- RegisterFile reserved;
- reserved.Use(esp);
- reserved.Use(ebp);
- reserved.Use(esi);
- return reserved;
-}
-
-
-void RegisterAllocator::UnuseReserved(RegisterFile* register_file) {
- register_file->ref_counts_[esp.code()] = 0;
- register_file->ref_counts_[ebp.code()] = 0;
- register_file->ref_counts_[esi.code()] = 0;
-}
-
-
-bool RegisterAllocator::IsReserved(int reg_code) {
- // Test below relies on the order of register codes.
- return reg_code >= esp.code() && reg_code <= esi.code();
-}
-
-
-void RegisterAllocator::Initialize() {
- Reset();
- // The following register is live on function entry, saved in the
- // frame, and available for allocation during execution.
- Use(edi); // JS function.
-}
-
-
-void RegisterAllocator::Reset() {
- registers_.Reset();
- // The following registers are live on function entry and reserved
- // during execution.
- Use(esp); // Stack pointer.
- Use(ebp); // Frame pointer (caller's frame pointer on entry).
- Use(esi); // Context (callee's context on entry).
-}
-
-
Result RegisterAllocator::AllocateByteRegisterWithoutSpilling() {
Result result = AllocateWithoutSpilling();
// Check that the register is a byte register. If not, unuse the

Powered by Google App Engine
This is Rietveld 408576698