Changeset 50789 in webkit for trunk/JavaScriptCore/runtime
- Timestamp:
- Nov 10, 2009, 11:22:30 PM (16 years ago)
- Location:
- trunk/JavaScriptCore/runtime
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/JSGlobalData.cpp
r50711 r50789 149 149 , markStack(vptrSet.jsArrayVPtr) 150 150 , cachedUTCOffset(NaN) 151 , weakRandom(static_cast<int>(currentTime())) 151 152 #ifndef NDEBUG 152 153 , mainThreadOnly(false) -
trunk/JavaScriptCore/runtime/JSGlobalData.h
r50711 r50789 39 39 #include "SmallStrings.h" 40 40 #include "TimeoutChecker.h" 41 #include "WeakRandom.h" 41 42 #include <wtf/Forward.h> 42 43 #include <wtf/HashMap.h> … … 179 180 UString cachedDateString; 180 181 double cachedDateStringValue; 182 183 WeakRandom weakRandom; 181 184 182 185 #ifndef NDEBUG -
trunk/JavaScriptCore/runtime/MathObject.cpp
r48836 r50789 97 97 putDirectWithoutTransition(Identifier(exec, "SQRT1_2"), jsNumber(exec, sqrt(0.5)), DontDelete | DontEnum | ReadOnly); 98 98 putDirectWithoutTransition(Identifier(exec, "SQRT2"), jsNumber(exec, sqrt(2.0)), DontDelete | DontEnum | ReadOnly); 99 WTF::initializeWeakRandomNumberGenerator();100 99 } 101 100 … … 212 211 JSValue JSC_HOST_CALL mathProtoFuncRandom(ExecState* exec, JSObject*, JSValue, const ArgList&) 213 212 { 214 return jsNumber(exec, WTF::weakRandomNumber());213 return jsNumber(exec, exec->globalData().weakRandom.get()); 215 214 } 216 215
Note:
See TracChangeset
for help on using the changeset viewer.