Changeset 127958 in webkit for trunk/Source/JavaScriptCore/runtime
- Timestamp:
- Sep 7, 2012, 10:46:29 PM (13 years ago)
- Location:
- trunk/Source/JavaScriptCore/runtime
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/ExceptionHelpers.cpp
r127505 r127958 107 107 JSObject* createUndefinedVariableError(ExecState* exec, const Identifier& ident) 108 108 { 109 String message(makeString("Can't find variable: ", ident. ustring()));109 String message(makeString("Can't find variable: ", ident.string())); 110 110 return createReferenceError(exec, message); 111 111 } -
trunk/Source/JavaScriptCore/runtime/Executable.cpp
r127810 r127958 673 673 674 674 FunctionExecutable* functionExecutable = FunctionExecutable::create(exec->globalData(), body); 675 functionExecutable->m_nameValue.set(exec->globalData(), functionExecutable, jsString(&exec->globalData(), name. ustring()));675 functionExecutable->m_nameValue.set(exec->globalData(), functionExecutable, jsString(&exec->globalData(), name.string())); 676 676 return functionExecutable; 677 677 } … … 684 684 if (!builder.isEmpty()) 685 685 builder.appendLiteral(", "); 686 builder.append(parameters[pos]. ustring());686 builder.append(parameters[pos].string()); 687 687 } 688 688 return builder.toString(); -
trunk/Source/JavaScriptCore/runtime/Executable.h
r127810 r127958 713 713 { 714 714 Base::finishCreation(globalData); 715 m_nameValue.set(globalData, this, jsString(&globalData, name(). ustring()));715 m_nameValue.set(globalData, this, jsString(&globalData, name().string())); 716 716 } 717 717 -
trunk/Source/JavaScriptCore/runtime/FunctionPrototype.cpp
r127191 r127958 56 56 void FunctionPrototype::addFunctionProperties(ExecState* exec, JSGlobalObject* globalObject, JSFunction** callFunction, JSFunction** applyFunction) 57 57 { 58 JSFunction* toStringFunction = JSFunction::create(exec, globalObject, 0, exec->propertyNames().toString. ustring(), functionProtoFuncToString);58 JSFunction* toStringFunction = JSFunction::create(exec, globalObject, 0, exec->propertyNames().toString.string(), functionProtoFuncToString); 59 59 putDirectWithoutTransition(exec->globalData(), exec->propertyNames().toString, toStringFunction, DontEnum); 60 60 61 *applyFunction = JSFunction::create(exec, globalObject, 2, exec->propertyNames().apply. ustring(), functionProtoFuncApply);61 *applyFunction = JSFunction::create(exec, globalObject, 2, exec->propertyNames().apply.string(), functionProtoFuncApply); 62 62 putDirectWithoutTransition(exec->globalData(), exec->propertyNames().apply, *applyFunction, DontEnum); 63 63 64 *callFunction = JSFunction::create(exec, globalObject, 1, exec->propertyNames().call. ustring(), functionProtoFuncCall);64 *callFunction = JSFunction::create(exec, globalObject, 1, exec->propertyNames().call.string(), functionProtoFuncCall); 65 65 putDirectWithoutTransition(exec->globalData(), exec->propertyNames().call, *callFunction, DontEnum); 66 66 67 JSFunction* bindFunction = JSFunction::create(exec, globalObject, 1, exec->propertyNames().bind. ustring(), functionProtoFuncBind);67 JSFunction* bindFunction = JSFunction::create(exec, globalObject, 1, exec->propertyNames().bind.string(), functionProtoFuncBind); 68 68 putDirectWithoutTransition(exec->globalData(), exec->propertyNames().bind, bindFunction, DontEnum); 69 69 } -
trunk/Source/JavaScriptCore/runtime/Identifier.h
r127191 r127958 53 53 Identifier(JSGlobalData* globalData, const String& s) : m_string(add(globalData, s.impl())) { } 54 54 55 // FIXME: fix this name. 56 const String& ustring() const { return m_string; } 55 const String& string() const { return m_string; } 57 56 StringImpl* impl() const { return m_string.impl(); } 58 57 -
trunk/Source/JavaScriptCore/runtime/JSFunction.cpp
r127505 r127958 151 151 return actualName; 152 152 153 return jsExecutable()->inferredName(). ustring();153 return jsExecutable()->inferredName().string(); 154 154 } 155 155 -
trunk/Source/JavaScriptCore/runtime/JSGlobalObject.cpp
r127505 r127958 305 305 putDirectWithoutTransition(exec->globalData(), Identifier(exec, "URIError"), m_URIErrorConstructor.get(), DontEnum); 306 306 307 m_evalFunction.set(exec->globalData(), this, JSFunction::create(exec, this, 1, exec->propertyNames().eval. ustring(), globalFuncEval));307 m_evalFunction.set(exec->globalData(), this, JSFunction::create(exec, this, 1, exec->propertyNames().eval.string(), globalFuncEval)); 308 308 putDirectWithoutTransition(exec->globalData(), exec->propertyNames().eval, m_evalFunction.get(), DontEnum); 309 309 -
trunk/Source/JavaScriptCore/runtime/JSONObject.cpp
r127505 r127958 194 194 if (!m_value) { 195 195 if (m_identifier) 196 m_value = jsString(exec, m_identifier-> ustring());196 m_value = jsString(exec, m_identifier->string()); 197 197 else 198 198 m_value = jsNumber(m_number); … … 558 558 559 559 // Append the property name. 560 appendQuotedString(builder, propertyName. ustring());560 appendQuotedString(builder, propertyName.string()); 561 561 builder.append(':'); 562 562 if (stringifier.willIndent()) … … 770 770 Identifier prop = propertyStack.last()[indexStack.last()]; 771 771 PutPropertySlot slot; 772 JSValue filteredValue = callReviver(object, jsString(m_exec, prop. ustring()), outValue);772 JSValue filteredValue = callReviver(object, jsString(m_exec, prop.string()), outValue); 773 773 if (filteredValue.isUndefined()) 774 774 object->methodTable()->deleteProperty(object, m_exec, prop); -
trunk/Source/JavaScriptCore/runtime/JSPropertyNameIterator.h
r121925 r127958 88 88 PropertyNameArrayData::PropertyNameVector& propertyNameVector = propertyNameArrayData->propertyNameVector(); 89 89 for (size_t i = 0; i < m_jsStringsSize; ++i) 90 m_jsStrings[i].set(exec->globalData(), this, jsOwnedString(exec, propertyNameVector[i]. ustring()));90 m_jsStrings[i].set(exec->globalData(), this, jsOwnedString(exec, propertyNameVector[i].string())); 91 91 m_offsetBase = object->structure()->firstValidOffset(); 92 92 } -
trunk/Source/JavaScriptCore/runtime/JSScope.cpp
r127363 r127958 211 211 return callFrame->lexicalGlobalObject(); 212 212 213 return throwError(callFrame, createErrorForInvalidGlobalAssignment(callFrame, identifier. ustring()));213 return throwError(callFrame, createErrorForInvalidGlobalAssignment(callFrame, identifier.string())); 214 214 } 215 215 -
trunk/Source/JavaScriptCore/runtime/JSString.h
r127505 r127958 532 532 return globalData.numericStrings.add(value.asDouble()); 533 533 if (value.isTrue()) 534 return globalData.propertyNames->trueKeyword. ustring();534 return globalData.propertyNames->trueKeyword.string(); 535 535 if (value.isFalse()) 536 return globalData.propertyNames->falseKeyword. ustring();536 return globalData.propertyNames->falseKeyword.string(); 537 537 if (value.isNull()) 538 return globalData.propertyNames->nullKeyword. ustring();538 return globalData.propertyNames->nullKeyword.string(); 539 539 if (value.isUndefined()) 540 return globalData.propertyNames->undefinedKeyword. ustring();540 return globalData.propertyNames->undefinedKeyword.string(); 541 541 return value.toString(exec)->value(exec); 542 542 } -
trunk/Source/JavaScriptCore/runtime/LiteralParser.cpp
r127505 r127958 665 665 m_lexer.next(); 666 666 if (stringToken.stringIs8Bit) 667 lastValue = jsString(m_exec, makeIdentifier(stringToken.stringToken8, stringToken.stringLength). ustring());667 lastValue = jsString(m_exec, makeIdentifier(stringToken.stringToken8, stringToken.stringLength).string()); 668 668 else 669 lastValue = jsString(m_exec, makeIdentifier(stringToken.stringToken16, stringToken.stringLength). ustring());669 lastValue = jsString(m_exec, makeIdentifier(stringToken.stringToken16, stringToken.stringLength).string()); 670 670 break; 671 671 } -
trunk/Source/JavaScriptCore/runtime/ObjectConstructor.cpp
r127505 r127958 85 85 void ObjectConstructor::finishCreation(ExecState* exec, ObjectPrototype* objectPrototype) 86 86 { 87 Base::finishCreation(exec->globalData(), Identifier(exec, "Object"). ustring());87 Base::finishCreation(exec->globalData(), Identifier(exec, "Object").string()); 88 88 // ECMA 15.2.3.1 89 89 putDirectWithoutTransition(exec->globalData(), exec->propertyNames().prototype, objectPrototype, DontEnum | DontDelete | ReadOnly); … … 186 186 size_t numProperties = properties.size(); 187 187 for (size_t i = 0; i < numProperties; i++) 188 names->push(exec, jsOwnedString(exec, properties[i]. ustring()));188 names->push(exec, jsOwnedString(exec, properties[i].string())); 189 189 return JSValue::encode(names); 190 190 } … … 200 200 size_t numProperties = properties.size(); 201 201 for (size_t i = 0; i < numProperties; i++) 202 keys->push(exec, jsOwnedString(exec, properties[i]. ustring()));202 keys->push(exec, jsOwnedString(exec, properties[i].string())); 203 203 return JSValue::encode(keys); 204 204 } -
trunk/Source/JavaScriptCore/runtime/RegExpConstructor.cpp
r127505 r127958 93 93 void RegExpConstructor::finishCreation(ExecState* exec, RegExpPrototype* regExpPrototype) 94 94 { 95 Base::finishCreation(exec->globalData(), Identifier(exec, "RegExp"). ustring());95 Base::finishCreation(exec->globalData(), Identifier(exec, "RegExp").string()); 96 96 ASSERT(inherits(&s_info)); 97 97
Note:
See TracChangeset
for help on using the changeset viewer.