Bug 817960 - cannot build AssemblerBufferWithConstantPool.h using clang 3.1 in NDK r8c. r=mrosenberg
authorMakoto Kato <m_kato@ga2.so-net.ne.jp>
Mon, 10 Dec 2012 14:05:45 +0900
changeset 124565 6db9b2f36039cd01ff709d10e838a18ed2a702b6
parent 124564 0770315e3538430d517efbb584fce361f79a823b
child 124566 222b76f9fa95b5932638c8aa63fa2aa3d72c770f
push id2151
push userlsblakk@mozilla.com
push dateTue, 19 Feb 2013 18:06:57 +0000
treeherdermozilla-beta@4952e88741ec [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmrosenberg
bugs817960
milestone20.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 817960 - cannot build AssemblerBufferWithConstantPool.h using clang 3.1 in NDK r8c. r=mrosenberg
js/src/assembler/assembler/AssemblerBufferWithConstantPool.h
--- a/js/src/assembler/assembler/AssemblerBufferWithConstantPool.h
+++ b/js/src/assembler/assembler/AssemblerBufferWithConstantPool.h
@@ -226,39 +226,16 @@ public:
         m_mask[m_numConsts] = static_cast<char>(isReusable ? ReusableConst : UniqueConst);
 
         AssemblerBuffer::putInt(AssemblerType::patchConstantPoolLoad(insn, m_numConsts));
         ++m_numConsts;
 
         correctDeltas(4, 4);
     }
 
-    uint32_t *getPoolSpace(uint32_t insn, uint32_t constant, bool isReusable = false)
-    {
-        flushIfNoSpaceFor(4, 4);
-
-        m_loadOffsets.append(AssemblerBuffer::size());
-        if (isReusable)
-            for (int i = 0; i < m_numConsts; ++i) {
-                if (m_mask[i] == ReusableConst && m_pool[i] == constant) {
-                    AssemblerBuffer::putInt(AssemblerType::patchConstantPoolLoad(insn, i));
-                    correctDeltas(4);
-                    return;
-                }
-            }
-
-        m_pool[m_numConsts] = constant;
-        m_mask[m_numConsts] = static_cast<char>(isReusable ? ReusableConst : UniqueConst);
-
-        AssemblerBuffer::putInt(AssemblerType::patchConstantPoolLoad(insn, m_numConsts));
-        ++m_numConsts;
-
-        correctDeltas(4, 4);
-    }
-
     void putIntWithConstantDouble(uint32_t insn, double constant)
     {
         flushIfNoSpaceFor(4, 8);
 
         m_loadOffsets.append(AssemblerBuffer::size());
         bool isReusable = false;
 
         union DoublePun {