[JAEGER] Fixed build.
authorDavid Anderson <danderson@mozilla.com>
Sun, 20 Jun 2010 16:16:51 -0700
changeset 52885 2de69b6b3058d32d5ece903395c78f0f5c7057df
parent 52884 aeec639233c372b854d2c34a770b8816b53ccb45
child 52886 d20814b5b2e2c3f43aaaf7e07eed48d4c9367a31
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
[JAEGER] Fixed build.
js/src/methodjit/Compiler.cpp
--- a/js/src/methodjit/Compiler.cpp
+++ b/js/src/methodjit/Compiler.cpp
@@ -1830,17 +1830,17 @@ void
 mjit::Compiler::jsop_length()
 {
     FrameEntry *top = frame.peek(-1);
 
     if (top->isTypeKnown() && top->getTypeTag() == JSVAL_MASK32_STRING) {
         if (top->isConstant()) {
             JSString *str = top->getValue().asString();
             Value v;
-            v.setNumber(str->length());
+            v.setNumber(uint32(str->length()));
             frame.pop();
             frame.push(v);
         } else {
             RegisterID str = frame.ownRegForData(top);
             masm.loadPtr(Address(str, offsetof(JSString, mLength)), str);
             frame.pop();
             frame.pushTypedPayload(JSVAL_MASK32_INT32, str);
         }