Bug 708735 - Update IDBObjectStore to use the <stdint.h> types for its JSAPI interactions. r=bustage in a CLOSED TREE :-\
authorJeff Walden <jwalden@mit.edu>
Fri, 16 Dec 2011 09:42:09 -0500
changeset 82771 3bf9653c4e4624411b54d3023fa03351d7313375
parent 82770 80ac06ad280db6b032d58d8fe724a3a162c6a0a8
child 82772 3749f921ee90290e7d930cb2340e49a2cd7d0893
child 82792 1d5d582321ccf4091e46185bcd76cc98079126b4
child 83011 d5c1f587cb0f58cc7dee2096f811a59a5fb81953
push id21698
push userjwalden@mit.edu
push dateFri, 16 Dec 2011 14:47:42 +0000
treeherdermozilla-central@3bf9653c4e46 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage
bugs708735
milestone11.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 708735 - Update IDBObjectStore to use the <stdint.h> types for its JSAPI interactions. r=bustage in a CLOSED TREE :-\
dom/indexedDB/AsyncConnectionHelper.cpp
dom/indexedDB/IDBObjectStore.cpp
dom/indexedDB/IDBObjectStore.h
--- a/dom/indexedDB/AsyncConnectionHelper.cpp
+++ b/dom/indexedDB/AsyncConnectionHelper.cpp
@@ -89,17 +89,17 @@ ConvertCloneReadInfosToArrayInternal(
   }
 
   if (!aReadInfos.IsEmpty()) {
     if (!JS_SetArrayLength(aCx, array, jsuint(aReadInfos.Length()))) {
       NS_WARNING("Failed to set array length!");
       return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
     }
 
-    for (uint32 index = 0, count = aReadInfos.Length(); index < count;
+    for (uint32_t index = 0, count = aReadInfos.Length(); index < count;
          index++) {
       StructuredCloneReadInfo& readInfo = aReadInfos[index];
 
       jsval val;
       if (!IDBObjectStore::DeserializeValue(aCx, readInfo, &val)) {
         NS_WARNING("Failed to decode!");
         return NS_ERROR_DOM_DATA_CLONE_ERR;
       }
--- a/dom/indexedDB/IDBObjectStore.cpp
+++ b/dom/indexedDB/IDBObjectStore.cpp
@@ -938,18 +938,18 @@ StructuredCloneReadString(JSStructuredCl
   }
 
   return true;
 }
 
 JSObject*
 IDBObjectStore::StructuredCloneReadCallback(JSContext* aCx,
                                             JSStructuredCloneReader* aReader,
-                                            uint32 aTag,
-                                            uint32 aData,
+                                            uint32_t aTag,
+                                            uint32_t aData,
                                             void* aClosure)
 {
   if (aTag == SCTAG_DOM_BLOB || aTag == SCTAG_DOM_FILE) {
     StructuredCloneReadInfo* cloneReadInfo =
       reinterpret_cast<StructuredCloneReadInfo*>(aClosure);
 
     NS_ASSERTION(aData < cloneReadInfo->mFileInfos.Length(),
                  "Bad blob index!");
--- a/dom/indexedDB/IDBObjectStore.h
+++ b/dom/indexedDB/IDBObjectStore.h
@@ -113,18 +113,18 @@ public:
   static bool
   SerializeValue(JSContext* aCx,
                  StructuredCloneWriteInfo& aCloneWriteInfo,
                  jsval aValue);
 
   static JSObject*
   StructuredCloneReadCallback(JSContext* aCx,
                               JSStructuredCloneReader* aReader,
-                              uint32 aTag,
-                              uint32 aData,
+                              uint32_t aTag,
+                              uint32_t aData,
                               void* aClosure);
   static JSBool
   StructuredCloneWriteCallback(JSContext* aCx,
                                JSStructuredCloneWriter* aWriter,
                                JSObject* aObj,
                                void* aClosure);
 
   static nsresult