Changeset 40169 in webkit for trunk/JavaScriptCore/runtime
- Timestamp:
- Jan 23, 2009, 11:40:56 AM (16 years ago)
- Location:
- trunk/JavaScriptCore/runtime
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/Collector.cpp
r40046 r40169 667 667 #endif 668 668 669 s ize_t getPlatformThreadRegisters(const PlatformThread& platformThread, PlatformThreadRegisters& regs)669 static size_t getPlatformThreadRegisters(const PlatformThread& platformThread, PlatformThreadRegisters& regs) 670 670 { 671 671 #if PLATFORM(DARWIN) -
trunk/JavaScriptCore/runtime/ExceptionHelpers.cpp
r40046 r40169 32 32 #include "CodeBlock.h" 33 33 #include "CallFrame.h" 34 #include "JSGlobalObjectFunctions.h" 34 35 #include "JSObject.h" 35 36 #include "JSNotAnObject.h" … … 38 39 39 40 namespace 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 }50 41 51 42 class InterruptedExecutionError : public JSObject { … … 64 55 } 65 56 66 JSValuePtr createError(ExecState* exec, ErrorType e, const char* msg)57 static JSValuePtr createError(ExecState* exec, ErrorType e, const char* msg) 67 58 { 68 59 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);83 60 } 84 61 … … 103 80 } 104 81 105 bool isStrWhiteSpace(UChar c);106 107 82 static UString createErrorMessage(ExecState* exec, CodeBlock* codeBlock, int, int expressionStart, int expressionStop, JSValuePtr value, UString error) 108 83 { -
trunk/JavaScriptCore/runtime/JSGlobalObjectFunctions.h
r39670 r40169 53 53 static const double mantissaOverflowLowerBound = 9007199254740992.0; 54 54 double parseIntOverflow(const char*, int length, int radix); 55 bool isStrWhiteSpace(UChar); 55 56 56 57 } // namespace JSC -
trunk/JavaScriptCore/runtime/JSNumberCell.h
r39958 r40169 47 47 struct Instruction; 48 48 49 JSValuePtr jsNumberCell(ExecState*, double); 50 49 51 class JSNumberCell : public JSCell { 50 52 friend class JIT; … … 106 108 107 109 JSValuePtr jsNumberCell(JSGlobalData*, double); 108 JSValuePtr jsNumberCell(ExecState*, double);109 110 110 111 inline bool isNumberCell(JSValuePtr v) -
trunk/JavaScriptCore/runtime/UString.cpp
r39815 r40169 192 192 UString* UString::nullUString; 193 193 194 void initializeStaticBaseString(int len, UChar* buf, UString::BaseString& base)194 static void initializeStaticBaseString(int len, UChar* buf, UString::BaseString& base) 195 195 { 196 196 base.offset = 0; … … 497 497 } 498 498 499 PassRefPtr<UString::Rep> createRep(const char* c)499 static PassRefPtr<UString::Rep> createRep(const char* c) 500 500 { 501 501 if (!c)
Note:
See TracChangeset
for help on using the changeset viewer.