Bug 768626 - Define CheckStackRoots in correct namespace
authorSteve Fink <sfink@mozilla.com>
Wed, 25 Jul 2012 16:06:33 -0700
changeset 100481 1e6e5607105dcca8a2de7e7f68a74f9402015b3c
parent 100480 eeb58cbbb35292e9f64d29c3f6c7e5e9a2e0a1d6
child 100482 bdca2e424ca8d3d01d4b0dd23202eb9d5244c97c
push id12521
push usersfink@mozilla.com
push dateWed, 25 Jul 2012 23:31:17 +0000
treeherdermozilla-inbound@bdca2e424ca8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs768626
milestone17.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 768626 - Define CheckStackRoots in correct namespace
js/src/vm/ObjectImpl.h
--- a/js/src/vm/ObjectImpl.h
+++ b/js/src/vm/ObjectImpl.h
@@ -74,17 +74,20 @@ class PropertyId
     { }
 
     PropertyName * asName() const {
         return JSID_TO_STRING(id)->asAtom().asPropertyName();
     }
     SpecialId asSpecial() const {
         return JSID_TO_SPECIALID(id);
     }
-    jsid asId() const {
+    const jsid &asId() const {
+        return id;
+    }
+    jsid &asId() {
         return id;
     }
 
     bool operator==(const PropertyId &rhs) const { return id == rhs.id; }
     bool operator!=(const PropertyId &rhs) const { return id != rhs.id; }
 };
 
 /*