Author: [EMAIL PROTECTED]
Date: Tue Nov 25 04:45:31 2008
New Revision: 835

Modified:
    branches/bleeding_edge/src/regexp-macro-assembler.cc
    branches/bleeding_edge/src/regexp-macro-assembler.h

Log:
Old gcc on ARM can't cope with template stuff we weren't using anyway.
Review URL: http://codereview.chromium.org/12429

Modified: branches/bleeding_edge/src/regexp-macro-assembler.cc
==============================================================================
--- branches/bleeding_edge/src/regexp-macro-assembler.cc        (original)
+++ branches/bleeding_edge/src/regexp-macro-assembler.cc        Tue Nov 25  
04:45:31 2008
@@ -71,7 +71,7 @@
  template <typename T>
  ArraySlice ByteArrayProvider::GetBuffer(Vector<T> values) {
    ArraySlice slice = GetBuffer(values.length(), sizeof(T));
-  memcpy(slice.location<void>(), values.start(), values.length() *  
sizeof(T));
+  memcpy(slice.location(), values.start(), values.length() * sizeof(T));
    return slice;
  }
  } }

Modified: branches/bleeding_edge/src/regexp-macro-assembler.h
==============================================================================
--- branches/bleeding_edge/src/regexp-macro-assembler.h (original)
+++ branches/bleeding_edge/src/regexp-macro-assembler.h Tue Nov 25 04:45:31  
2008
@@ -148,9 +148,8 @@
    size_t base_offset() {
      return ByteArray::kHeaderSize - kHeapObjectTag + offset_;
    }
-  template <typename T>
-  T* location() {
-    return reinterpret_cast<T*>(array_->GetDataStartAddress() + offset_);
+  void* location() {
+    return reinterpret_cast<void*>(array_->GetDataStartAddress() +  
offset_);
    }
    template <typename T>
    T& at(int idx) {

--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to