Unify the `Assembler` helpers related to the code buffer.

A few helpers in `Assembler` classes that were simply wrappers around
`CodeBuffer` methods have been deprecated, and should be replaced by calls to
the `CodeBuffer` methods.

Change-Id: I72608c8c1f1f2823c58c8f6de042e932abe12629
diff --git a/src/code-buffer-vixl.h b/src/code-buffer-vixl.h
index d345805..7f2623c 100644
--- a/src/code-buffer-vixl.h
+++ b/src/code-buffer-vixl.h
@@ -70,10 +70,23 @@
 
   template <typename T>
   T GetOffsetAddress(ptrdiff_t offset) const {
+    VIXL_STATIC_ASSERT(sizeof(T) >= sizeof(uintptr_t));
     VIXL_ASSERT((offset >= 0) && (offset <= (cursor_ - buffer_)));
     return reinterpret_cast<T>(buffer_ + offset);
   }
 
+  // Return the address of the start or end of the buffer.
+  template <typename T>
+  T GetStartAddress() const {
+    VIXL_STATIC_ASSERT(sizeof(T) >= sizeof(uintptr_t));
+    return GetOffsetAddress<T>(0);
+  }
+  template <typename T>
+  T GetEndAddress() const {
+    VIXL_STATIC_ASSERT(sizeof(T) >= sizeof(uintptr_t));
+    return GetOffsetAddress<T>(GetCapacity());
+  }
+
   size_t GetRemainingBytes() const {
     VIXL_ASSERT((cursor_ >= buffer_) && (cursor_ <= (buffer_ + capacity_)));
     return (buffer_ + capacity_) - cursor_;
@@ -82,15 +95,6 @@
     return GetRemainingBytes();
   }
 
-  byte* GetBuffer() const { return GetOffsetAddress<byte*>(0); }
-
-  // Return the address of the start of the buffer.
-  template <typename T>
-  T GetStartAddress() const {
-    VIXL_STATIC_ASSERT(sizeof(T) >= sizeof(uintptr_t));
-    return GetOffsetAddress<T>(0);
-  }
-
   size_t GetSizeInBytes() const {
     VIXL_ASSERT((cursor_ >= buffer_) && (cursor_ <= (buffer_ + capacity_)));
     return cursor_ - buffer_;