Make sure dense_grow gets inlined into the tracer functions that call it
authorDavid Mandelin <dmandelin@mozilla.com>
Fri, 11 Jun 2010 11:29:04 -0700
changeset 52859 6f5c1e641cf1b4d28c3237cef5216f4e8c6c3094
parent 52858 54d42e9349aeee7032923b86310107e92bbd5a52
child 52861 8bb6fc99933e9bcdb6f78d81eeba6e69736ff951
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
milestone1.9.3a5pre
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
Make sure dense_grow gets inlined into the tracer functions that call it
js/src/jsarray.cpp
--- a/js/src/jsarray.cpp
+++ b/js/src/jsarray.cpp
@@ -896,17 +896,17 @@ js_PrototypeHasIndexedProperties(JSConte
         if (obj->scope()->hadIndexedProperties())
             return JS_TRUE;
     }
     return JS_FALSE;
 }
 
 #ifdef JS_TRACER
 
-static inline JSBool FASTCALL
+static JS_ALWAYS_INLINE JSBool FASTCALL
 dense_grow(JSContext* cx, JSObject* obj, jsint i, const Value &v)
 {
     /*
      * Let the interpreter worry about negative array indexes.
      */
     JS_ASSERT((MAX_DSLOTS_LENGTH > MAX_DSLOTS_LENGTH32) == (sizeof(intptr_t) != sizeof(uint32)));
     if (MAX_DSLOTS_LENGTH > MAX_DSLOTS_LENGTH32) {
         /*