Bug 898365 - Remove superfluous handler-wrapping form JSFunction::nonLazyScript. rs=jonco
authorTill Schneidereit <till@tillschneidereit.net>
Fri, 26 Jul 2013 12:59:48 +0200
changeset 140144 9a1a962eaa193b39ca238a46ff6c865455f75572
parent 140143 0621ef3a01da803d6f7465d0f5fdc447ff020610
child 140145 e8ef43506a4df5964dd5cb464984d18a9d6897cb
push id25016
push userryanvm@gmail.com
push dateSat, 27 Jul 2013 02:25:56 +0000
treeherdermozilla-central@fb48c7d58b8b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjonco
bugs898365
milestone25.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 898365 - Remove superfluous handler-wrapping form JSFunction::nonLazyScript. rs=jonco
js/src/jsfun.h
--- a/js/src/jsfun.h
+++ b/js/src/jsfun.h
@@ -255,17 +255,17 @@ class JSFunction : public JSObject
         JS_ASSERT(hasScript());
         return u.i.s.script_;
     }
 
     inline JSScript *existingScript();
 
     JSScript *nonLazyScript() const {
         JS_ASSERT(hasScript());
-        return JS::HandleScript::fromMarkedLocation(&u.i.s.script_);
+        return u.i.s.script_;
     }
 
     js::HeapPtrScript &mutableScript() {
         JS_ASSERT(isInterpreted());
         return *(js::HeapPtrScript *)&u.i.s.script_;
     }
 
     js::LazyScript *lazyScript() const {