X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/4be4e30906bcb8ee30b4d189205cb70bad6707ce..81345200c95645a1b0d2635520f96ad55dfde63f:/profiler/LegacyProfiler.h diff --git a/profiler/LegacyProfiler.h b/profiler/LegacyProfiler.h index 6db57cb..cc5f63b 100644 --- a/profiler/LegacyProfiler.h +++ b/profiler/LegacyProfiler.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2008, 2012 Apple Inc. All rights reserved. + * Copyright (C) 2008, 2012, 2014 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -10,7 +10,7 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of + * 3. Neither the name of Apple Inc. ("Apple") nor the names of * its contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * @@ -48,23 +48,23 @@ class LegacyProfiler { WTF_MAKE_FAST_ALLOCATED; public: JS_EXPORT_PRIVATE static LegacyProfiler* profiler(); - static CallIdentifier createCallIdentifier(ExecState*, JSValue, const WTF::String& sourceURL, int lineNumber); + static CallIdentifier createCallIdentifier(ExecState*, JSValue, const WTF::String& sourceURL, unsigned defaultLineNumber, unsigned defaultColumnNumber); JS_EXPORT_PRIVATE void startProfiling(ExecState*, const WTF::String& title); JS_EXPORT_PRIVATE PassRefPtr stopProfiling(ExecState*, const WTF::String& title); void stopProfiling(JSGlobalObject*); void willExecute(ExecState* callerCallFrame, JSValue function); - void willExecute(ExecState* callerCallFrame, const WTF::String& sourceURL, int startingLineNumber); + void willExecute(ExecState* callerCallFrame, const WTF::String& sourceURL, unsigned startingLineNumber, unsigned startingColumnNumber); void didExecute(ExecState* callerCallFrame, JSValue function); - void didExecute(ExecState* callerCallFrame, const WTF::String& sourceURL, int startingLineNumber); + void didExecute(ExecState* callerCallFrame, const WTF::String& sourceURL, unsigned startingLineNumber, unsigned startingColumnNumber); void exceptionUnwind(ExecState* handlerCallFrame); - const Vector >& currentProfiles() { return m_currentProfiles; }; + const Vector>& currentProfiles() { return m_currentProfiles; }; private: - Vector > m_currentProfiles; + Vector> m_currentProfiles; static LegacyProfiler* s_sharedLegacyProfiler; };