Changeset 40169 in webkit for trunk/JavaScriptCore/runtime


Ignore:
Timestamp:
Jan 23, 2009, 11:40:56 AM (16 years ago)
Author:
[email protected]
Message:

2009-01-23 Anders Carlsson <[email protected]>

Reviewed by Sam Weinig.


Turn on -Wmissing-prototypes and fix the warnings.


  • API/JSClassRef.cpp: (clearReferenceToPrototype):
  • Configurations/Base.xcconfig:
  • runtime/Collector.cpp: (JSC::getPlatformThreadRegisters):
  • runtime/ExceptionHelpers.cpp: (JSC::createError):
  • runtime/JSGlobalObjectFunctions.h:
  • runtime/JSNumberCell.h:
  • runtime/UString.cpp: (JSC::initializeStaticBaseString): (JSC::createRep):
  • wtf/FastMalloc.cpp:
  • wtf/Threading.cpp:
Location:
trunk/JavaScriptCore/runtime
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/runtime/Collector.cpp

    r40046 r40169  
    667667#endif
    668668
    669 size_t getPlatformThreadRegisters(const PlatformThread& platformThread, PlatformThreadRegisters& regs)
     669static size_t getPlatformThreadRegisters(const PlatformThread& platformThread, PlatformThreadRegisters& regs)
    670670{
    671671#if PLATFORM(DARWIN)
  • trunk/JavaScriptCore/runtime/ExceptionHelpers.cpp

    r40046 r40169  
    3232#include "CodeBlock.h"
    3333#include "CallFrame.h"
     34#include "JSGlobalObjectFunctions.h"
    3435#include "JSObject.h"
    3536#include "JSNotAnObject.h"
     
    3839
    3940namespace JSC {
    40 
    41 static void substitute(UString& string, const UString& substring)
    42 {
    43     int position = string.find("%s");
    44     ASSERT(position != -1);
    45     UString newString = string.substr(0, position);
    46     newString.append(substring);
    47     newString.append(string.substr(position + 2));
    48     string = newString;
    49 }
    5041
    5142class InterruptedExecutionError : public JSObject {
     
    6455}
    6556
    66 JSValuePtr createError(ExecState* exec, ErrorType e, const char* msg)
     57static JSValuePtr createError(ExecState* exec, ErrorType e, const char* msg)
    6758{
    6859    return Error::create(exec, e, msg, -1, -1, 0);
    69 }
    70 
    71 JSValuePtr createError(ExecState* exec, ErrorType e, const char* msg, const Identifier& label)
    72 {
    73     UString message = msg;
    74     substitute(message, label.ustring());
    75     return Error::create(exec, e, message, -1, -1, 0);
    76 }
    77 
    78 JSValuePtr createError(ExecState* exec, ErrorType e, const char* msg, JSValuePtr v)
    79 {
    80     UString message = msg;
    81     substitute(message, v.toString(exec));
    82     return Error::create(exec, e, message, -1, -1, 0);
    8360}
    8461
     
    10380}
    10481   
    105 bool isStrWhiteSpace(UChar c);
    106 
    10782static UString createErrorMessage(ExecState* exec, CodeBlock* codeBlock, int, int expressionStart, int expressionStop, JSValuePtr value, UString error)
    10883{
  • trunk/JavaScriptCore/runtime/JSGlobalObjectFunctions.h

    r39670 r40169  
    5353    static const double mantissaOverflowLowerBound = 9007199254740992.0;
    5454    double parseIntOverflow(const char*, int length, int radix);
     55    bool isStrWhiteSpace(UChar);
    5556
    5657} // namespace JSC
  • trunk/JavaScriptCore/runtime/JSNumberCell.h

    r39958 r40169  
    4747    struct Instruction;
    4848
     49    JSValuePtr jsNumberCell(ExecState*, double);
     50
    4951    class JSNumberCell : public JSCell {
    5052        friend class JIT;
     
    106108
    107109    JSValuePtr jsNumberCell(JSGlobalData*, double);
    108     JSValuePtr jsNumberCell(ExecState*, double);
    109110
    110111    inline bool isNumberCell(JSValuePtr v)
  • trunk/JavaScriptCore/runtime/UString.cpp

    r39815 r40169  
    192192UString* UString::nullUString;
    193193
    194 void initializeStaticBaseString(int len, UChar* buf, UString::BaseString& base)
     194static void initializeStaticBaseString(int len, UChar* buf, UString::BaseString& base)
    195195{
    196196    base.offset = 0;
     
    497497}
    498498
    499 PassRefPtr<UString::Rep> createRep(const char* c)
     499static PassRefPtr<UString::Rep> createRep(const char* c)
    500500{
    501501    if (!c)
Note: See TracChangeset for help on using the changeset viewer.