Changeset 43122 in webkit for trunk/JavaScriptCore/runtime


Ignore:
Timestamp:
May 1, 2009, 3:43:39 PM (16 years ago)
Author:
[email protected]
Message:

JavaScriptCore:

2009-05-01 Geoffrey Garen <[email protected]>

Rubber Stamped by Sam Weinig.


Renamed JSValuePtr => JSValue.

  • API/APICast.h: (toJS): (toRef):
  • API/JSCallbackConstructor.h: (JSC::JSCallbackConstructor::createStructure):
  • API/JSCallbackFunction.cpp: (JSC::JSCallbackFunction::call):
  • API/JSCallbackFunction.h: (JSC::JSCallbackFunction::createStructure):
  • API/JSCallbackObject.h: (JSC::JSCallbackObject::createStructure):
  • API/JSCallbackObjectFunctions.h: (JSC::::asCallbackObject): (JSC::::put): (JSC::::hasInstance): (JSC::::call): (JSC::::staticValueGetter): (JSC::::staticFunctionGetter): (JSC::::callbackGetter):
  • API/JSContextRef.cpp:
  • API/JSObjectRef.cpp: (JSObjectMakeConstructor): (JSObjectSetPrototype): (JSObjectGetProperty): (JSObjectSetProperty): (JSObjectGetPropertyAtIndex): (JSObjectSetPropertyAtIndex):
  • API/JSValueRef.cpp: (JSValueGetType): (JSValueIsUndefined): (JSValueIsNull): (JSValueIsBoolean): (JSValueIsNumber): (JSValueIsString): (JSValueIsObject): (JSValueIsObjectOfClass): (JSValueIsEqual): (JSValueIsStrictEqual): (JSValueIsInstanceOfConstructor): (JSValueToBoolean): (JSValueToNumber): (JSValueToStringCopy): (JSValueToObject): (JSValueProtect): (JSValueUnprotect):
  • JavaScriptCore.exp:
  • bytecode/CodeBlock.cpp: (JSC::valueToSourceString): (JSC::constantName): (JSC::CodeBlock::dump):
  • bytecode/CodeBlock.h: (JSC::CodeBlock::getConstant): (JSC::CodeBlock::addUnexpectedConstant): (JSC::CodeBlock::unexpectedConstant):
  • bytecode/EvalCodeCache.h: (JSC::EvalCodeCache::get):
  • bytecompiler/BytecodeGenerator.cpp: (JSC::BytecodeGenerator::addConstant): (JSC::BytecodeGenerator::addUnexpectedConstant): (JSC::BytecodeGenerator::emitLoad): (JSC::BytecodeGenerator::emitGetScopedVar): (JSC::BytecodeGenerator::emitPutScopedVar): (JSC::BytecodeGenerator::emitNewError): (JSC::keyForImmediateSwitch):
  • bytecompiler/BytecodeGenerator.h: (JSC::BytecodeGenerator::JSValueHashTraits::constructDeletedValue): (JSC::BytecodeGenerator::JSValueHashTraits::isDeletedValue):
  • debugger/Debugger.cpp: (JSC::evaluateInGlobalCallFrame):
  • debugger/Debugger.h:
  • debugger/DebuggerActivation.cpp: (JSC::DebuggerActivation::put): (JSC::DebuggerActivation::putWithAttributes): (JSC::DebuggerActivation::lookupGetter): (JSC::DebuggerActivation::lookupSetter):
  • debugger/DebuggerActivation.h: (JSC::DebuggerActivation::createStructure):
  • debugger/DebuggerCallFrame.cpp: (JSC::DebuggerCallFrame::evaluate):
  • debugger/DebuggerCallFrame.h: (JSC::DebuggerCallFrame::DebuggerCallFrame): (JSC::DebuggerCallFrame::exception):
  • interpreter/CachedCall.h: (JSC::CachedCall::CachedCall): (JSC::CachedCall::call): (JSC::CachedCall::setThis): (JSC::CachedCall::setArgument):
  • interpreter/CallFrame.cpp: (JSC::CallFrame::thisValue): (JSC::CallFrame::dumpCaller):
  • interpreter/CallFrame.h: (JSC::ExecState::setException): (JSC::ExecState::exception): (JSC::ExecState::exceptionSlot):
  • interpreter/CallFrameClosure.h: (JSC::CallFrameClosure::setArgument):
  • interpreter/Interpreter.cpp: (JSC::Interpreter::resolve): (JSC::Interpreter::resolveSkip): (JSC::Interpreter::resolveGlobal): (JSC::Interpreter::resolveBase): (JSC::Interpreter::resolveBaseAndProperty): (JSC::Interpreter::resolveBaseAndFunc): (JSC::isNotObject): (JSC::Interpreter::callEval): (JSC::Interpreter::unwindCallFrame): (JSC::Interpreter::throwException): (JSC::Interpreter::execute): (JSC::Interpreter::prepareForRepeatCall): (JSC::Interpreter::createExceptionScope): (JSC::Interpreter::tryCachePutByID): (JSC::Interpreter::tryCacheGetByID): (JSC::Interpreter::privateExecute): (JSC::Interpreter::retrieveArguments): (JSC::Interpreter::retrieveCaller): (JSC::Interpreter::retrieveLastCaller):
  • interpreter/Interpreter.h:
  • interpreter/Register.h: (JSC::Register::): (JSC::Register::Register): (JSC::Register::jsValue):
  • jit/JIT.cpp: (JSC::): (JSC::JIT::privateCompileMainPass):
  • jit/JIT.h:
  • jit/JITArithmetic.cpp: (JSC::JIT::compileFastArith_op_mod):
  • jit/JITCall.cpp: (JSC::JIT::unlinkCall): (JSC::JIT::compileOpCallInitializeCallFrame): (JSC::JIT::compileOpCall):
  • jit/JITCode.h: (JSC::): (JSC::JITCode::execute):
  • jit/JITInlineMethods.h: (JSC::JIT::emitGetVirtualRegister): (JSC::JIT::getConstantOperand): (JSC::JIT::emitPutJITStubArgFromVirtualRegister): (JSC::JIT::emitInitRegister):
  • jit/JITPropertyAccess.cpp: (JSC::JIT::privateCompilePutByIdTransition): (JSC::JIT::patchGetByIdSelf): (JSC::JIT::patchPutByIdReplace): (JSC::JIT::privateCompileGetByIdSelf): (JSC::JIT::privateCompileGetByIdProto): (JSC::JIT::privateCompileGetByIdSelfList): (JSC::JIT::privateCompileGetByIdProtoList): (JSC::JIT::privateCompileGetByIdChainList): (JSC::JIT::privateCompileGetByIdChain): (JSC::JIT::privateCompilePutByIdReplace):
  • jit/JITStubs.cpp: (JSC::JITStubs::tryCachePutByID): (JSC::JITStubs::tryCacheGetByID): (JSC::JITStubs::cti_op_convert_this): (JSC::JITStubs::cti_op_add): (JSC::JITStubs::cti_op_pre_inc): (JSC::JITStubs::cti_op_loop_if_less): (JSC::JITStubs::cti_op_loop_if_lesseq): (JSC::JITStubs::cti_op_get_by_id_generic): (JSC::JITStubs::cti_op_get_by_id): (JSC::JITStubs::cti_op_get_by_id_second): (JSC::JITStubs::cti_op_get_by_id_self_fail): (JSC::JITStubs::cti_op_get_by_id_proto_list): (JSC::JITStubs::cti_op_get_by_id_proto_list_full): (JSC::JITStubs::cti_op_get_by_id_proto_fail): (JSC::JITStubs::cti_op_get_by_id_array_fail): (JSC::JITStubs::cti_op_get_by_id_string_fail): (JSC::JITStubs::cti_op_instanceof): (JSC::JITStubs::cti_op_del_by_id): (JSC::JITStubs::cti_op_mul): (JSC::JITStubs::cti_op_call_NotJSFunction): (JSC::JITStubs::cti_op_resolve): (JSC::JITStubs::cti_op_construct_NotJSConstruct): (JSC::JITStubs::cti_op_get_by_val): (JSC::JITStubs::cti_op_get_by_val_string): (JSC::JITStubs::cti_op_get_by_val_byte_array): (JSC::JITStubs::cti_op_resolve_func): (JSC::JITStubs::cti_op_sub): (JSC::JITStubs::cti_op_put_by_val): (JSC::JITStubs::cti_op_put_by_val_array): (JSC::JITStubs::cti_op_put_by_val_byte_array): (JSC::JITStubs::cti_op_lesseq): (JSC::JITStubs::cti_op_loop_if_true): (JSC::JITStubs::cti_op_load_varargs): (JSC::JITStubs::cti_op_negate): (JSC::JITStubs::cti_op_resolve_base): (JSC::JITStubs::cti_op_resolve_skip): (JSC::JITStubs::cti_op_resolve_global): (JSC::JITStubs::cti_op_div): (JSC::JITStubs::cti_op_pre_dec): (JSC::JITStubs::cti_op_jless): (JSC::JITStubs::cti_op_not): (JSC::JITStubs::cti_op_jtrue): (JSC::JITStubs::cti_op_post_inc): (JSC::JITStubs::cti_op_eq): (JSC::JITStubs::cti_op_lshift): (JSC::JITStubs::cti_op_bitand): (JSC::JITStubs::cti_op_rshift): (JSC::JITStubs::cti_op_bitnot): (JSC::JITStubs::cti_op_resolve_with_base): (JSC::JITStubs::cti_op_mod): (JSC::JITStubs::cti_op_less): (JSC::JITStubs::cti_op_neq): (JSC::JITStubs::cti_op_post_dec): (JSC::JITStubs::cti_op_urshift): (JSC::JITStubs::cti_op_bitxor): (JSC::JITStubs::cti_op_bitor): (JSC::JITStubs::cti_op_call_eval): (JSC::JITStubs::cti_op_throw): (JSC::JITStubs::cti_op_next_pname): (JSC::JITStubs::cti_op_typeof): (JSC::JITStubs::cti_op_is_undefined): (JSC::JITStubs::cti_op_is_boolean): (JSC::JITStubs::cti_op_is_number): (JSC::JITStubs::cti_op_is_string): (JSC::JITStubs::cti_op_is_object): (JSC::JITStubs::cti_op_is_function): (JSC::JITStubs::cti_op_stricteq): (JSC::JITStubs::cti_op_nstricteq): (JSC::JITStubs::cti_op_to_jsnumber): (JSC::JITStubs::cti_op_in): (JSC::JITStubs::cti_op_switch_imm): (JSC::JITStubs::cti_op_switch_char): (JSC::JITStubs::cti_op_switch_string): (JSC::JITStubs::cti_op_del_by_val): (JSC::JITStubs::cti_op_new_error): (JSC::JITStubs::cti_vm_throw):
  • jit/JITStubs.h:
  • jsc.cpp: (functionPrint): (functionDebug): (functionGC): (functionVersion): (functionRun): (functionLoad): (functionSetSamplingFlag): (functionClearSamplingFlag): (functionReadline): (functionQuit):
  • parser/Nodes.cpp: (JSC::processClauseList):
  • profiler/ProfileGenerator.cpp: (JSC::ProfileGenerator::addParentForConsoleStart):
  • profiler/Profiler.cpp: (JSC::Profiler::willExecute): (JSC::Profiler::didExecute): (JSC::Profiler::createCallIdentifier):
  • profiler/Profiler.h:
  • runtime/ArgList.cpp: (JSC::MarkedArgumentBuffer::slowAppend):
  • runtime/ArgList.h: (JSC::MarkedArgumentBuffer::at): (JSC::MarkedArgumentBuffer::append): (JSC::ArgList::ArgList): (JSC::ArgList::at):
  • runtime/Arguments.cpp: (JSC::Arguments::put):
  • runtime/Arguments.h: (JSC::Arguments::createStructure): (JSC::asArguments):
  • runtime/ArrayConstructor.cpp: (JSC::callArrayConstructor):
  • runtime/ArrayPrototype.cpp: (JSC::getProperty): (JSC::putProperty): (JSC::arrayProtoFuncToString): (JSC::arrayProtoFuncToLocaleString): (JSC::arrayProtoFuncJoin): (JSC::arrayProtoFuncConcat): (JSC::arrayProtoFuncPop): (JSC::arrayProtoFuncPush): (JSC::arrayProtoFuncReverse): (JSC::arrayProtoFuncShift): (JSC::arrayProtoFuncSlice): (JSC::arrayProtoFuncSort): (JSC::arrayProtoFuncSplice): (JSC::arrayProtoFuncUnShift): (JSC::arrayProtoFuncFilter): (JSC::arrayProtoFuncMap): (JSC::arrayProtoFuncEvery): (JSC::arrayProtoFuncForEach): (JSC::arrayProtoFuncSome): (JSC::arrayProtoFuncReduce): (JSC::arrayProtoFuncReduceRight): (JSC::arrayProtoFuncIndexOf): (JSC::arrayProtoFuncLastIndexOf):
  • runtime/BooleanConstructor.cpp: (JSC::callBooleanConstructor): (JSC::constructBooleanFromImmediateBoolean):
  • runtime/BooleanConstructor.h:
  • runtime/BooleanObject.h: (JSC::asBooleanObject):
  • runtime/BooleanPrototype.cpp: (JSC::booleanProtoFuncToString): (JSC::booleanProtoFuncValueOf):
  • runtime/CallData.cpp: (JSC::call):
  • runtime/CallData.h:
  • runtime/Collector.cpp: (JSC::Heap::protect): (JSC::Heap::unprotect): (JSC::Heap::heap):
  • runtime/Collector.h:
  • runtime/Completion.cpp: (JSC::evaluate):
  • runtime/Completion.h: (JSC::Completion::Completion): (JSC::Completion::value): (JSC::Completion::setValue):
  • runtime/ConstructData.cpp: (JSC::construct):
  • runtime/ConstructData.h:
  • runtime/DateConstructor.cpp: (JSC::constructDate): (JSC::callDate): (JSC::dateParse): (JSC::dateNow): (JSC::dateUTC):
  • runtime/DateInstance.h: (JSC::asDateInstance):
  • runtime/DatePrototype.cpp: (JSC::dateProtoFuncToString): (JSC::dateProtoFuncToUTCString): (JSC::dateProtoFuncToDateString): (JSC::dateProtoFuncToTimeString): (JSC::dateProtoFuncToLocaleString): (JSC::dateProtoFuncToLocaleDateString): (JSC::dateProtoFuncToLocaleTimeString): (JSC::dateProtoFuncGetTime): (JSC::dateProtoFuncGetFullYear): (JSC::dateProtoFuncGetUTCFullYear): (JSC::dateProtoFuncToGMTString): (JSC::dateProtoFuncGetMonth): (JSC::dateProtoFuncGetUTCMonth): (JSC::dateProtoFuncGetDate): (JSC::dateProtoFuncGetUTCDate): (JSC::dateProtoFuncGetDay): (JSC::dateProtoFuncGetUTCDay): (JSC::dateProtoFuncGetHours): (JSC::dateProtoFuncGetUTCHours): (JSC::dateProtoFuncGetMinutes): (JSC::dateProtoFuncGetUTCMinutes): (JSC::dateProtoFuncGetSeconds): (JSC::dateProtoFuncGetUTCSeconds): (JSC::dateProtoFuncGetMilliSeconds): (JSC::dateProtoFuncGetUTCMilliseconds): (JSC::dateProtoFuncGetTimezoneOffset): (JSC::dateProtoFuncSetTime): (JSC::setNewValueFromTimeArgs): (JSC::setNewValueFromDateArgs): (JSC::dateProtoFuncSetMilliSeconds): (JSC::dateProtoFuncSetUTCMilliseconds): (JSC::dateProtoFuncSetSeconds): (JSC::dateProtoFuncSetUTCSeconds): (JSC::dateProtoFuncSetMinutes): (JSC::dateProtoFuncSetUTCMinutes): (JSC::dateProtoFuncSetHours): (JSC::dateProtoFuncSetUTCHours): (JSC::dateProtoFuncSetDate): (JSC::dateProtoFuncSetUTCDate): (JSC::dateProtoFuncSetMonth): (JSC::dateProtoFuncSetUTCMonth): (JSC::dateProtoFuncSetFullYear): (JSC::dateProtoFuncSetUTCFullYear): (JSC::dateProtoFuncSetYear): (JSC::dateProtoFuncGetYear):
  • runtime/DatePrototype.h: (JSC::DatePrototype::createStructure):
  • runtime/ErrorConstructor.cpp: (JSC::callErrorConstructor):
  • runtime/ErrorPrototype.cpp: (JSC::errorProtoFuncToString):
  • runtime/ExceptionHelpers.cpp: (JSC::createInterruptedExecutionException): (JSC::createError): (JSC::createStackOverflowError): (JSC::createUndefinedVariableError): (JSC::createErrorMessage): (JSC::createInvalidParamError): (JSC::createNotAConstructorError): (JSC::createNotAFunctionError):
  • runtime/ExceptionHelpers.h:
  • runtime/FunctionConstructor.cpp: (JSC::callFunctionConstructor):
  • runtime/FunctionPrototype.cpp: (JSC::callFunctionPrototype): (JSC::functionProtoFuncToString): (JSC::functionProtoFuncApply): (JSC::functionProtoFuncCall):
  • runtime/FunctionPrototype.h: (JSC::FunctionPrototype::createStructure):
  • runtime/GetterSetter.cpp: (JSC::GetterSetter::toPrimitive): (JSC::GetterSetter::getPrimitiveNumber):
  • runtime/GetterSetter.h: (JSC::asGetterSetter):
  • runtime/InternalFunction.cpp: (JSC::InternalFunction::displayName):
  • runtime/InternalFunction.h: (JSC::InternalFunction::createStructure): (JSC::asInternalFunction):
  • runtime/JSActivation.cpp: (JSC::JSActivation::getOwnPropertySlot): (JSC::JSActivation::put): (JSC::JSActivation::putWithAttributes): (JSC::JSActivation::argumentsGetter):
  • runtime/JSActivation.h: (JSC::JSActivation::createStructure): (JSC::asActivation):
  • runtime/JSArray.cpp: (JSC::storageSize): (JSC::JSArray::JSArray): (JSC::JSArray::getOwnPropertySlot): (JSC::JSArray::put): (JSC::JSArray::putSlowCase): (JSC::JSArray::deleteProperty): (JSC::JSArray::setLength): (JSC::JSArray::pop): (JSC::JSArray::push): (JSC::JSArray::mark): (JSC::compareNumbersForQSort): (JSC::JSArray::sortNumeric): (JSC::JSArray::sort): (JSC::JSArray::compactForSorting): (JSC::JSArray::checkConsistency): (JSC::constructArray):
  • runtime/JSArray.h: (JSC::JSArray::getIndex): (JSC::JSArray::setIndex): (JSC::JSArray::createStructure): (JSC::asArray): (JSC::isJSArray):
  • runtime/JSByteArray.cpp: (JSC::JSByteArray::createStructure): (JSC::JSByteArray::put):
  • runtime/JSByteArray.h: (JSC::JSByteArray::getIndex): (JSC::JSByteArray::setIndex): (JSC::asByteArray): (JSC::isJSByteArray):
  • runtime/JSCell.cpp: (JSC::JSCell::put): (JSC::JSCell::getJSNumber):
  • runtime/JSCell.h: (JSC::asCell): (JSC::JSValue::asCell): (JSC::JSValue::isString): (JSC::JSValue::isGetterSetter): (JSC::JSValue::isObject): (JSC::JSValue::getString): (JSC::JSValue::getObject): (JSC::JSValue::getCallData): (JSC::JSValue::getConstructData): (JSC::JSValue::getUInt32): (JSC::JSValue::getTruncatedInt32): (JSC::JSValue::getTruncatedUInt32): (JSC::JSValue::mark): (JSC::JSValue::marked): (JSC::JSValue::toPrimitive): (JSC::JSValue::getPrimitiveNumber): (JSC::JSValue::toBoolean): (JSC::JSValue::toNumber): (JSC::JSValue::toString): (JSC::JSValue::toObject): (JSC::JSValue::toThisObject): (JSC::JSValue::needsThisConversion): (JSC::JSValue::toThisString): (JSC::JSValue::getJSNumber):
  • runtime/JSFunction.cpp: (JSC::JSFunction::call): (JSC::JSFunction::argumentsGetter): (JSC::JSFunction::callerGetter): (JSC::JSFunction::lengthGetter): (JSC::JSFunction::getOwnPropertySlot): (JSC::JSFunction::put): (JSC::JSFunction::construct):
  • runtime/JSFunction.h: (JSC::JSFunction::createStructure): (JSC::asFunction):
  • runtime/JSGlobalData.h:
  • runtime/JSGlobalObject.cpp: (JSC::markIfNeeded): (JSC::JSGlobalObject::put): (JSC::JSGlobalObject::putWithAttributes): (JSC::JSGlobalObject::reset): (JSC::JSGlobalObject::resetPrototype):
  • runtime/JSGlobalObject.h: (JSC::JSGlobalObject::createStructure): (JSC::JSGlobalObject::GlobalPropertyInfo::GlobalPropertyInfo): (JSC::asGlobalObject): (JSC::Structure::prototypeForLookup): (JSC::Structure::prototypeChain): (JSC::Structure::isValid):
  • runtime/JSGlobalObjectFunctions.cpp: (JSC::encode): (JSC::decode): (JSC::globalFuncEval): (JSC::globalFuncParseInt): (JSC::globalFuncParseFloat): (JSC::globalFuncIsNaN): (JSC::globalFuncIsFinite): (JSC::globalFuncDecodeURI): (JSC::globalFuncDecodeURIComponent): (JSC::globalFuncEncodeURI): (JSC::globalFuncEncodeURIComponent): (JSC::globalFuncEscape): (JSC::globalFuncUnescape): (JSC::globalFuncJSCPrint):
  • runtime/JSGlobalObjectFunctions.h:
  • runtime/JSImmediate.cpp: (JSC::JSImmediate::toThisObject): (JSC::JSImmediate::toObject): (JSC::JSImmediate::prototype): (JSC::JSImmediate::toString):
  • runtime/JSImmediate.h: (JSC::JSImmediate::isImmediate): (JSC::JSImmediate::isNumber): (JSC::JSImmediate::isIntegerNumber): (JSC::JSImmediate::isDoubleNumber): (JSC::JSImmediate::isPositiveIntegerNumber): (JSC::JSImmediate::isBoolean): (JSC::JSImmediate::isUndefinedOrNull): (JSC::JSImmediate::isEitherImmediate): (JSC::JSImmediate::areBothImmediate): (JSC::JSImmediate::areBothImmediateIntegerNumbers): (JSC::JSImmediate::makeValue): (JSC::JSImmediate::makeInt): (JSC::JSImmediate::makeDouble): (JSC::JSImmediate::makeBool): (JSC::JSImmediate::makeUndefined): (JSC::JSImmediate::makeNull): (JSC::JSImmediate::doubleValue): (JSC::JSImmediate::intValue): (JSC::JSImmediate::uintValue): (JSC::JSImmediate::boolValue): (JSC::JSImmediate::rawValue): (JSC::JSImmediate::trueImmediate): (JSC::JSImmediate::falseImmediate): (JSC::JSImmediate::undefinedImmediate): (JSC::JSImmediate::nullImmediate): (JSC::JSImmediate::zeroImmediate): (JSC::JSImmediate::oneImmediate): (JSC::JSImmediate::impossibleValue): (JSC::JSImmediate::toBoolean): (JSC::JSImmediate::getTruncatedUInt32): (JSC::JSImmediate::fromNumberOutsideIntegerRange): (JSC::JSImmediate::from): (JSC::JSImmediate::getTruncatedInt32): (JSC::JSImmediate::toDouble): (JSC::JSImmediate::getUInt32): (JSC::JSValue::JSValue): (JSC::JSValue::isUndefinedOrNull): (JSC::JSValue::isBoolean): (JSC::JSValue::getBoolean): (JSC::JSValue::toInt32): (JSC::JSValue::toUInt32): (JSC::JSValue::isCell): (JSC::JSValue::isInt32Fast): (JSC::JSValue::getInt32Fast): (JSC::JSValue::isUInt32Fast): (JSC::JSValue::getUInt32Fast): (JSC::JSValue::makeInt32Fast): (JSC::JSValue::areBothInt32Fast): (JSC::JSFastMath::canDoFastBitwiseOperations): (JSC::JSFastMath::equal): (JSC::JSFastMath::notEqual): (JSC::JSFastMath::andImmediateNumbers): (JSC::JSFastMath::xorImmediateNumbers): (JSC::JSFastMath::orImmediateNumbers): (JSC::JSFastMath::canDoFastRshift): (JSC::JSFastMath::canDoFastUrshift): (JSC::JSFastMath::rightShiftImmediateNumbers): (JSC::JSFastMath::canDoFastAdditiveOperations): (JSC::JSFastMath::addImmediateNumbers): (JSC::JSFastMath::subImmediateNumbers): (JSC::JSFastMath::incImmediateNumber): (JSC::JSFastMath::decImmediateNumber):
  • runtime/JSNotAnObject.cpp: (JSC::JSNotAnObject::toPrimitive): (JSC::JSNotAnObject::getPrimitiveNumber): (JSC::JSNotAnObject::put):
  • runtime/JSNotAnObject.h: (JSC::JSNotAnObject::createStructure):
  • runtime/JSNumberCell.cpp: (JSC::JSNumberCell::toPrimitive): (JSC::JSNumberCell::getPrimitiveNumber): (JSC::JSNumberCell::getJSNumber): (JSC::jsNumberCell):
  • runtime/JSNumberCell.h: (JSC::JSNumberCell::createStructure): (JSC::isNumberCell): (JSC::asNumberCell): (JSC::jsNumber): (JSC::JSValue::isDoubleNumber): (JSC::JSValue::getDoubleNumber): (JSC::JSValue::isNumber): (JSC::JSValue::uncheckedGetNumber): (JSC::jsNaN): (JSC::JSValue::toJSNumber): (JSC::JSValue::getNumber): (JSC::JSValue::numberToInt32): (JSC::JSValue::numberToUInt32):
  • runtime/JSObject.cpp: (JSC::JSObject::mark): (JSC::JSObject::put): (JSC::JSObject::putWithAttributes): (JSC::callDefaultValueFunction): (JSC::JSObject::getPrimitiveNumber): (JSC::JSObject::defaultValue): (JSC::JSObject::defineGetter): (JSC::JSObject::defineSetter): (JSC::JSObject::lookupGetter): (JSC::JSObject::lookupSetter): (JSC::JSObject::hasInstance): (JSC::JSObject::toNumber): (JSC::JSObject::toString): (JSC::JSObject::fillGetterPropertySlot):
  • runtime/JSObject.h: (JSC::JSObject::getDirect): (JSC::JSObject::getDirectLocation): (JSC::JSObject::offsetForLocation): (JSC::JSObject::locationForOffset): (JSC::JSObject::getDirectOffset): (JSC::JSObject::putDirectOffset): (JSC::JSObject::createStructure): (JSC::asObject): (JSC::JSObject::prototype): (JSC::JSObject::setPrototype): (JSC::JSValue::isObject): (JSC::JSObject::inlineGetOwnPropertySlot): (JSC::JSObject::getOwnPropertySlotForWrite): (JSC::JSObject::getPropertySlot): (JSC::JSObject::get): (JSC::JSObject::putDirect): (JSC::JSObject::putDirectWithoutTransition): (JSC::JSObject::toPrimitive): (JSC::JSValue::get): (JSC::JSValue::put): (JSC::JSObject::allocatePropertyStorageInline):
  • runtime/JSPropertyNameIterator.cpp: (JSC::JSPropertyNameIterator::toPrimitive): (JSC::JSPropertyNameIterator::getPrimitiveNumber):
  • runtime/JSPropertyNameIterator.h: (JSC::JSPropertyNameIterator::create): (JSC::JSPropertyNameIterator::next):
  • runtime/JSStaticScopeObject.cpp: (JSC::JSStaticScopeObject::put): (JSC::JSStaticScopeObject::putWithAttributes):
  • runtime/JSStaticScopeObject.h: (JSC::JSStaticScopeObject::JSStaticScopeObject): (JSC::JSStaticScopeObject::createStructure):
  • runtime/JSString.cpp: (JSC::JSString::toPrimitive): (JSC::JSString::getPrimitiveNumber): (JSC::JSString::getOwnPropertySlot):
  • runtime/JSString.h: (JSC::JSString::createStructure): (JSC::asString): (JSC::isJSString): (JSC::JSValue::toThisJSString):
  • runtime/JSValue.cpp: (JSC::JSValue::toInteger): (JSC::JSValue::toIntegerPreserveNaN):
  • runtime/JSValue.h: (JSC::JSValue::makeImmediate): (JSC::JSValue::asValue): (JSC::noValue): (JSC::jsImpossibleValue): (JSC::jsNull): (JSC::jsUndefined): (JSC::jsBoolean): (JSC::operator==): (JSC::operator!=): (JSC::JSValue::encode): (JSC::JSValue::decode): (JSC::JSValue::JSValue): (JSC::JSValue::operator bool): (JSC::JSValue::operator==): (JSC::JSValue::operator!=): (JSC::JSValue::isUndefined): (JSC::JSValue::isNull):
  • runtime/JSVariableObject.h: (JSC::JSVariableObject::symbolTablePut): (JSC::JSVariableObject::symbolTablePutWithAttributes):
  • runtime/JSWrapperObject.h: (JSC::JSWrapperObject::internalValue): (JSC::JSWrapperObject::setInternalValue):
  • runtime/Lookup.cpp: (JSC::setUpStaticFunctionSlot):
  • runtime/Lookup.h: (JSC::lookupPut):
  • runtime/MathObject.cpp: (JSC::mathProtoFuncAbs): (JSC::mathProtoFuncACos): (JSC::mathProtoFuncASin): (JSC::mathProtoFuncATan): (JSC::mathProtoFuncATan2): (JSC::mathProtoFuncCeil): (JSC::mathProtoFuncCos): (JSC::mathProtoFuncExp): (JSC::mathProtoFuncFloor): (JSC::mathProtoFuncLog): (JSC::mathProtoFuncMax): (JSC::mathProtoFuncMin): (JSC::mathProtoFuncPow): (JSC::mathProtoFuncRandom): (JSC::mathProtoFuncRound): (JSC::mathProtoFuncSin): (JSC::mathProtoFuncSqrt): (JSC::mathProtoFuncTan):
  • runtime/MathObject.h: (JSC::MathObject::createStructure):
  • runtime/NativeErrorConstructor.cpp: (JSC::callNativeErrorConstructor):
  • runtime/NumberConstructor.cpp: (JSC::numberConstructorNaNValue): (JSC::numberConstructorNegInfinity): (JSC::numberConstructorPosInfinity): (JSC::numberConstructorMaxValue): (JSC::numberConstructorMinValue): (JSC::callNumberConstructor):
  • runtime/NumberConstructor.h: (JSC::NumberConstructor::createStructure):
  • runtime/NumberObject.cpp: (JSC::NumberObject::getJSNumber): (JSC::constructNumber):
  • runtime/NumberObject.h:
  • runtime/NumberPrototype.cpp: (JSC::numberProtoFuncToString): (JSC::numberProtoFuncToLocaleString): (JSC::numberProtoFuncValueOf): (JSC::numberProtoFuncToFixed): (JSC::numberProtoFuncToExponential): (JSC::numberProtoFuncToPrecision):
  • runtime/ObjectConstructor.cpp: (JSC::constructObject): (JSC::callObjectConstructor):
  • runtime/ObjectPrototype.cpp: (JSC::objectProtoFuncValueOf): (JSC::objectProtoFuncHasOwnProperty): (JSC::objectProtoFuncIsPrototypeOf): (JSC::objectProtoFuncDefineGetter): (JSC::objectProtoFuncDefineSetter): (JSC::objectProtoFuncLookupGetter): (JSC::objectProtoFuncLookupSetter): (JSC::objectProtoFuncPropertyIsEnumerable): (JSC::objectProtoFuncToLocaleString): (JSC::objectProtoFuncToString):
  • runtime/ObjectPrototype.h:
  • runtime/Operations.cpp: (JSC::JSValue::equalSlowCase): (JSC::JSValue::strictEqualSlowCase): (JSC::throwOutOfMemoryError): (JSC::jsAddSlowCase): (JSC::jsTypeStringForValue): (JSC::jsIsObjectType): (JSC::jsIsFunctionType):
  • runtime/Operations.h: (JSC::JSValue::equal): (JSC::JSValue::equalSlowCaseInline): (JSC::JSValue::strictEqual): (JSC::JSValue::strictEqualSlowCaseInline): (JSC::jsLess): (JSC::jsLessEq): (JSC::jsAdd): (JSC::countPrototypeChainEntriesAndCheckForProxies): (JSC::resolveBase):
  • runtime/PropertySlot.cpp: (JSC::PropertySlot::functionGetter):
  • runtime/PropertySlot.h: (JSC::PropertySlot::PropertySlot): (JSC::PropertySlot::getValue): (JSC::PropertySlot::putValue): (JSC::PropertySlot::setValueSlot): (JSC::PropertySlot::setValue): (JSC::PropertySlot::setCustom): (JSC::PropertySlot::setCustomIndex): (JSC::PropertySlot::slotBase): (JSC::PropertySlot::setBase): (JSC::PropertySlot::):
  • runtime/Protect.h: (JSC::gcProtect): (JSC::gcUnprotect): (JSC::ProtectedPtr::operator JSValue): (JSC::ProtectedJSValue::ProtectedJSValue): (JSC::ProtectedJSValue::get): (JSC::ProtectedJSValue::operator JSValue): (JSC::ProtectedJSValue::operator->): (JSC::ProtectedJSValue::~ProtectedJSValue): (JSC::ProtectedJSValue::operator=): (JSC::operator==): (JSC::operator!=):
  • runtime/RegExpConstructor.cpp: (JSC::RegExpConstructor::getBackref): (JSC::RegExpConstructor::getLastParen): (JSC::RegExpConstructor::getLeftContext): (JSC::RegExpConstructor::getRightContext): (JSC::regExpConstructorDollar1): (JSC::regExpConstructorDollar2): (JSC::regExpConstructorDollar3): (JSC::regExpConstructorDollar4): (JSC::regExpConstructorDollar5): (JSC::regExpConstructorDollar6): (JSC::regExpConstructorDollar7): (JSC::regExpConstructorDollar8): (JSC::regExpConstructorDollar9): (JSC::regExpConstructorInput): (JSC::regExpConstructorMultiline): (JSC::regExpConstructorLastMatch): (JSC::regExpConstructorLastParen): (JSC::regExpConstructorLeftContext): (JSC::regExpConstructorRightContext): (JSC::RegExpConstructor::put): (JSC::setRegExpConstructorInput): (JSC::setRegExpConstructorMultiline): (JSC::constructRegExp): (JSC::callRegExpConstructor):
  • runtime/RegExpConstructor.h: (JSC::RegExpConstructor::createStructure): (JSC::asRegExpConstructor):
  • runtime/RegExpMatchesArray.h: (JSC::RegExpMatchesArray::put):
  • runtime/RegExpObject.cpp: (JSC::regExpObjectGlobal): (JSC::regExpObjectIgnoreCase): (JSC::regExpObjectMultiline): (JSC::regExpObjectSource): (JSC::regExpObjectLastIndex): (JSC::RegExpObject::put): (JSC::setRegExpObjectLastIndex): (JSC::RegExpObject::test): (JSC::RegExpObject::exec): (JSC::callRegExpObject):
  • runtime/RegExpObject.h: (JSC::RegExpObject::createStructure): (JSC::asRegExpObject):
  • runtime/RegExpPrototype.cpp: (JSC::regExpProtoFuncTest): (JSC::regExpProtoFuncExec): (JSC::regExpProtoFuncCompile): (JSC::regExpProtoFuncToString):
  • runtime/StringConstructor.cpp: (JSC::stringFromCharCodeSlowCase): (JSC::stringFromCharCode): (JSC::callStringConstructor):
  • runtime/StringObject.cpp: (JSC::StringObject::put):
  • runtime/StringObject.h: (JSC::StringObject::createStructure): (JSC::asStringObject):
  • runtime/StringObjectThatMasqueradesAsUndefined.h: (JSC::StringObjectThatMasqueradesAsUndefined::createStructure):
  • runtime/StringPrototype.cpp: (JSC::stringProtoFuncReplace): (JSC::stringProtoFuncToString): (JSC::stringProtoFuncCharAt): (JSC::stringProtoFuncCharCodeAt): (JSC::stringProtoFuncConcat): (JSC::stringProtoFuncIndexOf): (JSC::stringProtoFuncLastIndexOf): (JSC::stringProtoFuncMatch): (JSC::stringProtoFuncSearch): (JSC::stringProtoFuncSlice): (JSC::stringProtoFuncSplit): (JSC::stringProtoFuncSubstr): (JSC::stringProtoFuncSubstring): (JSC::stringProtoFuncToLowerCase): (JSC::stringProtoFuncToUpperCase): (JSC::stringProtoFuncLocaleCompare): (JSC::stringProtoFuncBig): (JSC::stringProtoFuncSmall): (JSC::stringProtoFuncBlink): (JSC::stringProtoFuncBold): (JSC::stringProtoFuncFixed): (JSC::stringProtoFuncItalics): (JSC::stringProtoFuncStrike): (JSC::stringProtoFuncSub): (JSC::stringProtoFuncSup): (JSC::stringProtoFuncFontcolor): (JSC::stringProtoFuncFontsize): (JSC::stringProtoFuncAnchor): (JSC::stringProtoFuncLink):
  • runtime/Structure.cpp: (JSC::Structure::Structure): (JSC::Structure::changePrototypeTransition):
  • runtime/Structure.h: (JSC::Structure::create): (JSC::Structure::setPrototypeWithoutTransition): (JSC::Structure::storedPrototype):

JavaScriptGlue:

2009-05-01 Geoffrey Garen <[email protected]>

Rubber Stamped by Sam Weinig.


Renamed JSValuePtr => JSValue.

  • JSObject.cpp: (nativeCallFunction):
  • JSUtils.cpp: (KJSValueToJSObject): (JSObjectKJSValue): (KJSValueToCFTypeInternal): (KJSValueToCFType):
  • JSUtils.h:
  • JSValueWrapper.cpp: (JSValueWrapper::JSValueWrapper): (JSValueWrapper::GetValue): (JSValueWrapper::JSObjectCopyProperty): (JSValueWrapper::JSObjectSetProperty): (JSValueWrapper::JSObjectCallFunction):
  • JSValueWrapper.h:
  • UserObjectImp.cpp: (UserObjectImp::callAsFunction): (UserObjectImp::userObjectGetter): (UserObjectImp::getOwnPropertySlot): (UserObjectImp::put): (UserObjectImp::toPrimitive):
  • UserObjectImp.h: (UserObjectImp::createStructure):

WebCore:

2009-05-01 Geoffrey Garen <[email protected]>

Rubber Stamped by Sam Weinig.


Renamed JSValuePtr => JSValue.

  • bindings/js/JSAttrCustom.cpp: (WebCore::JSAttr::setValue):
  • bindings/js/JSCDATASectionCustom.cpp: (WebCore::toJSNewlyCreated):
  • bindings/js/JSCSSRuleCustom.cpp: (WebCore::toJS):
  • bindings/js/JSCSSStyleDeclarationCustom.cpp: (WebCore::JSCSSStyleDeclaration::nameGetter): (WebCore::JSCSSStyleDeclaration::customPut):
  • bindings/js/JSCSSValueCustom.cpp: (WebCore::toJS):
  • bindings/js/JSCanvasRenderingContext2DCustom.cpp: (WebCore::toJS): (WebCore::toHTMLCanvasStyle): (WebCore::JSCanvasRenderingContext2D::strokeStyle): (WebCore::JSCanvasRenderingContext2D::setStrokeStyle): (WebCore::JSCanvasRenderingContext2D::fillStyle): (WebCore::JSCanvasRenderingContext2D::setFillStyle): (WebCore::JSCanvasRenderingContext2D::setFillColor): (WebCore::JSCanvasRenderingContext2D::setStrokeColor): (WebCore::JSCanvasRenderingContext2D::strokeRect): (WebCore::JSCanvasRenderingContext2D::drawImage): (WebCore::JSCanvasRenderingContext2D::drawImageFromRect): (WebCore::JSCanvasRenderingContext2D::setShadow): (WebCore::JSCanvasRenderingContext2D::createPattern): (WebCore::JSCanvasRenderingContext2D::putImageData): (WebCore::JSCanvasRenderingContext2D::fillText): (WebCore::JSCanvasRenderingContext2D::strokeText):
  • bindings/js/JSClipboardCustom.cpp: (WebCore::JSClipboard::types): (WebCore::JSClipboard::clearData): (WebCore::JSClipboard::getData): (WebCore::JSClipboard::setData): (WebCore::JSClipboard::setDragImage):
  • bindings/js/JSConsoleCustom.cpp: (WebCore::JSConsole::profiles):
  • bindings/js/JSCoordinatesCustom.cpp: (WebCore::JSCoordinates::altitude): (WebCore::JSCoordinates::altitudeAccuracy): (WebCore::JSCoordinates::heading): (WebCore::JSCoordinates::speed):
  • bindings/js/JSCustomPositionCallback.cpp: (WebCore::JSCustomPositionCallback::handleEvent):
  • bindings/js/JSCustomPositionErrorCallback.cpp: (WebCore::JSCustomPositionErrorCallback::handleEvent):
  • bindings/js/JSCustomSQLStatementCallback.cpp: (WebCore::JSCustomSQLStatementCallback::handleEvent):
  • bindings/js/JSCustomSQLStatementErrorCallback.cpp: (WebCore::JSCustomSQLStatementErrorCallback::handleEvent):
  • bindings/js/JSCustomSQLTransactionCallback.cpp: (WebCore::JSCustomSQLTransactionCallback::handleEvent):
  • bindings/js/JSCustomSQLTransactionErrorCallback.cpp: (WebCore::JSCustomSQLTransactionErrorCallback::handleEvent):
  • bindings/js/JSCustomVoidCallback.cpp: (WebCore::JSCustomVoidCallback::handleEvent): (WebCore::toVoidCallback):
  • bindings/js/JSCustomVoidCallback.h:
  • bindings/js/JSCustomXPathNSResolver.cpp: (WebCore::JSCustomXPathNSResolver::create): (WebCore::JSCustomXPathNSResolver::lookupNamespaceURI):
  • bindings/js/JSCustomXPathNSResolver.h:
  • bindings/js/JSDOMApplicationCacheCustom.cpp: (WebCore::JSDOMApplicationCache::hasItem): (WebCore::JSDOMApplicationCache::add): (WebCore::JSDOMApplicationCache::remove): (WebCore::JSDOMApplicationCache::addEventListener): (WebCore::JSDOMApplicationCache::removeEventListener):
  • bindings/js/JSDOMBinding.cpp: (WebCore::jsStringOrNull): (WebCore::jsOwnedStringOrNull): (WebCore::jsStringOrUndefined): (WebCore::jsStringOrFalse): (WebCore::valueToStringWithNullCheck): (WebCore::valueToStringWithUndefinedOrNullCheck): (WebCore::reportException): (WebCore::reportCurrentException): (WebCore::setDOMException): (WebCore::objectToStringFunctionGetter):
  • bindings/js/JSDOMBinding.h: (WebCore::getDOMObjectWrapper): (WebCore::getDOMNodeWrapper): (WebCore::toJS):
  • bindings/js/JSDOMGlobalObject.cpp: (WebCore::JSDOMGlobalObject::findJSEventListener): (WebCore::JSDOMGlobalObject::findOrCreateJSEventListener): (WebCore::JSDOMGlobalObject::createJSAttributeEventListener):
  • bindings/js/JSDOMGlobalObject.h:
  • bindings/js/JSDOMStringListCustom.cpp: (WebCore::JSDOMStringList::getByIndex): (WebCore::JSDOMStringList::item):
  • bindings/js/JSDOMWindowBase.cpp: (WebCore::JSDOMWindowBase::childFrameGetter): (WebCore::JSDOMWindowBase::indexGetter): (WebCore::JSDOMWindowBase::namedItemGetter): (WebCore::JSDOMWindowBase::getOwnPropertySlot): (WebCore::JSDOMWindowBase::put): (WebCore::JSDOMWindowBase::setReturnValueSlot): (WebCore::toJS): (WebCore::toJSDOMWindow):
  • bindings/js/JSDOMWindowBase.h:
  • bindings/js/JSDOMWindowCustom.cpp: (WebCore::JSDOMWindow::lookupGetter): (WebCore::JSDOMWindow::lookupSetter): (WebCore::JSDOMWindow::history): (WebCore::JSDOMWindow::location): (WebCore::JSDOMWindow::setLocation): (WebCore::JSDOMWindow::crypto): (WebCore::JSDOMWindow::event): (WebCore::JSDOMWindow::image): (WebCore::JSDOMWindow::option): (WebCore::JSDOMWindow::audio): (WebCore::JSDOMWindow::webKitPoint): (WebCore::JSDOMWindow::webKitCSSMatrix): (WebCore::JSDOMWindow::xmlHttpRequest): (WebCore::JSDOMWindow::xsltProcessor): (WebCore::JSDOMWindow::messageChannel): (WebCore::JSDOMWindow::worker): (WebCore::createWindow): (WebCore::JSDOMWindow::open): (WebCore::JSDOMWindow::showModalDialog): (WebCore::JSDOMWindow::postMessage): (WebCore::JSDOMWindow::setTimeout): (WebCore::JSDOMWindow::setInterval): (WebCore::JSDOMWindow::atob): (WebCore::JSDOMWindow::btoa): (WebCore::JSDOMWindow::addEventListener): (WebCore::JSDOMWindow::removeEventListener): (WebCore::toDOMWindow):
  • bindings/js/JSDOMWindowCustom.h: (WebCore::nonCachingStaticFunctionGetter): (WebCore::JSDOMWindow::customPut):
  • bindings/js/JSDOMWindowShell.cpp: (WebCore::JSDOMWindowShell::put): (WebCore::JSDOMWindowShell::putWithAttributes): (WebCore::JSDOMWindowShell::lookupGetter): (WebCore::JSDOMWindowShell::lookupSetter): (WebCore::toJS):
  • bindings/js/JSDOMWindowShell.h: (WebCore::JSDOMWindowShell::createStructure):
  • bindings/js/JSDatabaseCustom.cpp: (WebCore::JSDatabase::changeVersion): (WebCore::JSDatabase::transaction):
  • bindings/js/JSDocumentCustom.cpp: (WebCore::JSDocument::location): (WebCore::JSDocument::setLocation): (WebCore::toJS):
  • bindings/js/JSElementCustom.cpp: (WebCore::JSElement::setAttribute): (WebCore::JSElement::setAttributeNode): (WebCore::JSElement::setAttributeNS): (WebCore::JSElement::setAttributeNodeNS): (WebCore::toJSNewlyCreated):
  • bindings/js/JSEventCustom.cpp: (WebCore::JSEvent::clipboardData): (WebCore::toJS):
  • bindings/js/JSEventListener.cpp: (WebCore::JSEventListener::handleEvent):
  • bindings/js/JSEventTarget.cpp: (WebCore::toJS): (WebCore::toEventTarget):
  • bindings/js/JSEventTarget.h:
  • bindings/js/JSEventTargetBase.h:
  • bindings/js/JSGeolocationCustom.cpp: (WebCore::createPositionOptions): (WebCore::JSGeolocation::getCurrentPosition): (WebCore::JSGeolocation::watchPosition):
  • bindings/js/JSHTMLAllCollection.h: (WebCore::JSHTMLAllCollection::createStructure):
  • bindings/js/JSHTMLAppletElementCustom.cpp: (WebCore::JSHTMLAppletElement::customPut): (WebCore::JSHTMLAppletElement::nameGetter):
  • bindings/js/JSHTMLCollectionCustom.cpp: (WebCore::getNamedItems): (WebCore::callHTMLCollection): (WebCore::JSHTMLCollection::nameGetter): (WebCore::JSHTMLCollection::item): (WebCore::JSHTMLCollection::namedItem): (WebCore::toJS):
  • bindings/js/JSHTMLDocumentCustom.cpp: (WebCore::JSHTMLDocument::nameGetter): (WebCore::JSHTMLDocument::all): (WebCore::JSHTMLDocument::setAll): (WebCore::JSHTMLDocument::open): (WebCore::JSHTMLDocument::write): (WebCore::JSHTMLDocument::writeln):
  • bindings/js/JSHTMLEmbedElementCustom.cpp: (WebCore::JSHTMLEmbedElement::customPut): (WebCore::JSHTMLEmbedElement::nameGetter):
  • bindings/js/JSHTMLFormElementCustom.cpp: (WebCore::JSHTMLFormElement::nameGetter): (WebCore::JSHTMLFormElement::submit):
  • bindings/js/JSHTMLFrameElementCustom.cpp: (WebCore::JSHTMLFrameElement::setSrc): (WebCore::JSHTMLFrameElement::setLocation):
  • bindings/js/JSHTMLFrameSetElementCustom.cpp: (WebCore::JSHTMLFrameSetElement::nameGetter):
  • bindings/js/JSHTMLIFrameElementCustom.cpp: (WebCore::JSHTMLIFrameElement::setSrc):
  • bindings/js/JSHTMLInputElementCustom.cpp: (WebCore::JSHTMLInputElement::selectionStart): (WebCore::JSHTMLInputElement::setSelectionStart): (WebCore::JSHTMLInputElement::selectionEnd): (WebCore::JSHTMLInputElement::setSelectionEnd): (WebCore::JSHTMLInputElement::setSelectionRange):
  • bindings/js/JSHTMLObjectElementCustom.cpp: (WebCore::JSHTMLObjectElement::customPut): (WebCore::JSHTMLObjectElement::nameGetter):
  • bindings/js/JSHTMLOptionsCollectionCustom.cpp: (WebCore::JSHTMLOptionsCollection::length): (WebCore::JSHTMLOptionsCollection::setLength): (WebCore::JSHTMLOptionsCollection::indexSetter): (WebCore::JSHTMLOptionsCollection::add): (WebCore::JSHTMLOptionsCollection::remove):
  • bindings/js/JSHTMLSelectElementCustom.cpp: (WebCore::JSHTMLSelectElement::remove): (WebCore::selectIndexSetter): (WebCore::JSHTMLSelectElement::indexSetter):
  • bindings/js/JSHTMLSelectElementCustom.h:
  • bindings/js/JSHistoryCustom.cpp: (WebCore::nonCachingStaticBackFunctionGetter): (WebCore::nonCachingStaticForwardFunctionGetter): (WebCore::nonCachingStaticGoFunctionGetter): (WebCore::JSHistory::customPut):
  • bindings/js/JSImageDataCustom.cpp: (WebCore::toJS):
  • bindings/js/JSInspectedObjectWrapper.cpp: (WebCore::JSInspectedObjectWrapper::wrap): (WebCore::JSInspectedObjectWrapper::prepareIncomingValue):
  • bindings/js/JSInspectedObjectWrapper.h: (WebCore::JSInspectedObjectWrapper::wrapOutgoingValue):
  • bindings/js/JSInspectorCallbackWrapper.cpp: (WebCore::JSInspectorCallbackWrapper::wrap): (WebCore::JSInspectorCallbackWrapper::prepareIncomingValue):
  • bindings/js/JSInspectorCallbackWrapper.h: (WebCore::JSInspectorCallbackWrapper::wrapOutgoingValue):
  • bindings/js/JSInspectorControllerCustom.cpp: (WebCore::JSInspectorController::highlightDOMNode): (WebCore::JSInspectorController::addResourceSourceToFrame): (WebCore::JSInspectorController::addSourceToFrame): (WebCore::JSInspectorController::getResourceDocumentNode): (WebCore::JSInspectorController::search): (WebCore::JSInspectorController::databaseTableNames): (WebCore::JSInspectorController::inspectedWindow): (WebCore::JSInspectorController::setting): (WebCore::JSInspectorController::setSetting): (WebCore::JSInspectorController::wrapCallback): (WebCore::JSInspectorController::currentCallFrame): (WebCore::JSInspectorController::profiles):
  • bindings/js/JSJavaScriptCallFrameCustom.cpp: (WebCore::JSJavaScriptCallFrame::evaluate): (WebCore::JSJavaScriptCallFrame::thisObject): (WebCore::JSJavaScriptCallFrame::type): (WebCore::JSJavaScriptCallFrame::scopeChain):
  • bindings/js/JSLazyEventListener.cpp: (WebCore::JSLazyEventListener::parseCode):
  • bindings/js/JSLocationCustom.cpp: (WebCore::nonCachingStaticReplaceFunctionGetter): (WebCore::nonCachingStaticReloadFunctionGetter): (WebCore::nonCachingStaticAssignFunctionGetter): (WebCore::JSLocation::customPut): (WebCore::JSLocation::setHref): (WebCore::JSLocation::setProtocol): (WebCore::JSLocation::setHost): (WebCore::JSLocation::setHostname): (WebCore::JSLocation::setPort): (WebCore::JSLocation::setPathname): (WebCore::JSLocation::setSearch): (WebCore::JSLocation::setHash): (WebCore::JSLocation::replace): (WebCore::JSLocation::reload): (WebCore::JSLocation::assign): (WebCore::JSLocation::toString): (WebCore::JSLocationPrototype::customPut):
  • bindings/js/JSMessagePortCustom.cpp: (WebCore::JSMessagePort::startConversation): (WebCore::JSMessagePort::addEventListener): (WebCore::JSMessagePort::removeEventListener):
  • bindings/js/JSMimeTypeArrayCustom.cpp: (WebCore::JSMimeTypeArray::nameGetter):
  • bindings/js/JSNamedNodeMapCustom.cpp: (WebCore::JSNamedNodeMap::nameGetter):
  • bindings/js/JSNamedNodesCollection.cpp: (WebCore::JSNamedNodesCollection::lengthGetter): (WebCore::JSNamedNodesCollection::indexGetter):
  • bindings/js/JSNamedNodesCollection.h: (WebCore::JSNamedNodesCollection::createStructure):
  • bindings/js/JSNavigatorCustom.cpp: (WebCore::needsYouTubeQuirk): (WebCore::JSNavigator::appVersion):
  • bindings/js/JSNodeCustom.cpp: (WebCore::JSNode::insertBefore): (WebCore::JSNode::replaceChild): (WebCore::JSNode::removeChild): (WebCore::JSNode::appendChild): (WebCore::JSNode::addEventListener): (WebCore::JSNode::removeEventListener): (WebCore::createWrapper): (WebCore::toJSNewlyCreated): (WebCore::toJS):
  • bindings/js/JSNodeFilterCondition.cpp: (WebCore::JSNodeFilterCondition::JSNodeFilterCondition): (WebCore::JSNodeFilterCondition::acceptNode):
  • bindings/js/JSNodeFilterCondition.h: (WebCore::JSNodeFilterCondition::create):
  • bindings/js/JSNodeFilterCustom.cpp: (WebCore::JSNodeFilter::acceptNode): (WebCore::toNodeFilter):
  • bindings/js/JSNodeIteratorCustom.cpp: (WebCore::JSNodeIterator::nextNode): (WebCore::JSNodeIterator::previousNode):
  • bindings/js/JSNodeListCustom.cpp: (WebCore::callNodeList): (WebCore::JSNodeList::nameGetter):
  • bindings/js/JSPluginArrayCustom.cpp: (WebCore::JSPluginArray::nameGetter):
  • bindings/js/JSPluginCustom.cpp: (WebCore::JSPlugin::nameGetter):
  • bindings/js/JSPluginElementFunctions.cpp: (WebCore::runtimeObjectGetter): (WebCore::runtimeObjectPropertyGetter): (WebCore::runtimeObjectCustomPut): (WebCore::callPlugin):
  • bindings/js/JSPluginElementFunctions.h:
  • bindings/js/JSQuarantinedObjectWrapper.cpp: (WebCore::JSQuarantinedObjectWrapper::asWrapper): (WebCore::JSQuarantinedObjectWrapper::cachedValueGetter): (WebCore::JSQuarantinedObjectWrapper::transferExceptionToExecState): (WebCore::JSQuarantinedObjectWrapper::getOwnPropertySlot): (WebCore::JSQuarantinedObjectWrapper::put): (WebCore::JSQuarantinedObjectWrapper::construct): (WebCore::JSQuarantinedObjectWrapper::hasInstance): (WebCore::JSQuarantinedObjectWrapper::call):
  • bindings/js/JSQuarantinedObjectWrapper.h: (WebCore::JSQuarantinedObjectWrapper::createStructure):
  • bindings/js/JSRGBColor.cpp: (WebCore::getJSRGBColor): (jsRGBColorRed): (jsRGBColorGreen): (jsRGBColorBlue):
  • bindings/js/JSRGBColor.h: (WebCore::JSRGBColor::createStructure):
  • bindings/js/JSSQLResultSetRowListCustom.cpp: (WebCore::JSSQLResultSetRowList::item):
  • bindings/js/JSSQLTransactionCustom.cpp: (WebCore::JSSQLTransaction::executeSql):
  • bindings/js/JSSVGElementInstanceCustom.cpp: (WebCore::JSSVGElementInstance::addEventListener): (WebCore::JSSVGElementInstance::removeEventListener): (WebCore::toJS):
  • bindings/js/JSSVGLengthCustom.cpp: (WebCore::JSSVGLength::value): (WebCore::JSSVGLength::convertToSpecifiedUnits):
  • bindings/js/JSSVGMatrixCustom.cpp: (WebCore::JSSVGMatrix::inverse): (WebCore::JSSVGMatrix::rotateFromVector):
  • bindings/js/JSSVGPathSegCustom.cpp: (WebCore::toJS):
  • bindings/js/JSSVGPathSegListCustom.cpp: (WebCore::JSSVGPathSegList::clear): (WebCore::JSSVGPathSegList::initialize): (WebCore::JSSVGPathSegList::getItem): (WebCore::JSSVGPathSegList::insertItemBefore): (WebCore::JSSVGPathSegList::replaceItem): (WebCore::JSSVGPathSegList::removeItem): (WebCore::JSSVGPathSegList::appendItem):
  • bindings/js/JSSVGPointListCustom.cpp: (WebCore::finishGetter): (WebCore::finishSetter): (WebCore::finishSetterReadOnlyResult): (WebCore::JSSVGPointList::clear): (WebCore::JSSVGPointList::initialize): (WebCore::JSSVGPointList::getItem): (WebCore::JSSVGPointList::insertItemBefore): (WebCore::JSSVGPointList::replaceItem): (WebCore::JSSVGPointList::removeItem): (WebCore::JSSVGPointList::appendItem):
  • bindings/js/JSSVGTransformListCustom.cpp: (WebCore::finishGetter): (WebCore::finishSetter): (WebCore::finishSetterReadOnlyResult): (WebCore::JSSVGTransformList::clear): (WebCore::JSSVGTransformList::initialize): (WebCore::JSSVGTransformList::getItem): (WebCore::JSSVGTransformList::insertItemBefore): (WebCore::JSSVGTransformList::replaceItem): (WebCore::JSSVGTransformList::removeItem): (WebCore::JSSVGTransformList::appendItem):
  • bindings/js/JSStorageCustom.cpp: (WebCore::JSStorage::nameGetter): (WebCore::JSStorage::deleteProperty): (WebCore::JSStorage::customPut):
  • bindings/js/JSStyleSheetCustom.cpp: (WebCore::toJS):
  • bindings/js/JSStyleSheetListCustom.cpp: (WebCore::JSStyleSheetList::nameGetter):
  • bindings/js/JSTextCustom.cpp: (WebCore::toJSNewlyCreated):
  • bindings/js/JSTreeWalkerCustom.cpp: (WebCore::JSTreeWalker::parentNode): (WebCore::JSTreeWalker::firstChild): (WebCore::JSTreeWalker::lastChild): (WebCore::JSTreeWalker::nextSibling): (WebCore::JSTreeWalker::previousSibling): (WebCore::JSTreeWalker::previousNode): (WebCore::JSTreeWalker::nextNode):
  • bindings/js/JSWorkerContextCustom.cpp: (WebCore::JSWorkerContext::self): (WebCore::JSWorkerContext::setSelf): (WebCore::JSWorkerContext::xmlHttpRequest): (WebCore::JSWorkerContext::importScripts): (WebCore::JSWorkerContext::addEventListener): (WebCore::JSWorkerContext::removeEventListener): (WebCore::JSWorkerContext::setTimeout): (WebCore::JSWorkerContext::setInterval):
  • bindings/js/JSWorkerCustom.cpp: (WebCore::JSWorker::addEventListener): (WebCore::JSWorker::removeEventListener):
  • bindings/js/JSXMLHttpRequestCustom.cpp: (WebCore::JSXMLHttpRequest::open): (WebCore::JSXMLHttpRequest::setRequestHeader): (WebCore::JSXMLHttpRequest::send): (WebCore::JSXMLHttpRequest::getResponseHeader): (WebCore::JSXMLHttpRequest::overrideMimeType): (WebCore::JSXMLHttpRequest::addEventListener): (WebCore::JSXMLHttpRequest::removeEventListener): (WebCore::JSXMLHttpRequest::responseText):
  • bindings/js/JSXMLHttpRequestUploadCustom.cpp: (WebCore::JSXMLHttpRequestUpload::addEventListener): (WebCore::JSXMLHttpRequestUpload::removeEventListener):
  • bindings/js/JSXSLTProcessorCustom.cpp: (WebCore::JSXSLTProcessor::importStylesheet): (WebCore::JSXSLTProcessor::transformToFragment): (WebCore::JSXSLTProcessor::transformToDocument): (WebCore::JSXSLTProcessor::setParameter): (WebCore::JSXSLTProcessor::getParameter): (WebCore::JSXSLTProcessor::removeParameter):
  • bindings/js/ScheduledAction.cpp: (WebCore::ScheduledAction::create): (WebCore::ScheduledAction::ScheduledAction): (WebCore::ScheduledAction::executeFunctionInContext):
  • bindings/js/ScheduledAction.h:
  • bindings/js/ScriptCallStack.cpp: (WebCore::ScriptCallStack::ScriptCallStack): (WebCore::ScriptCallStack::initialize):
  • bindings/js/ScriptCallStack.h:
  • bindings/js/ScriptController.cpp: (WebCore::ScriptController::jsObjectForPluginElement):
  • bindings/js/ScriptFunctionCall.cpp: (WebCore::ScriptFunctionCall::appendArgument): (WebCore::ScriptFunctionCall::call): (WebCore::ScriptFunctionCall::construct):
  • bindings/js/ScriptFunctionCall.h:
  • bindings/js/ScriptObject.cpp: (WebCore::ScriptGlobalObject::get):
  • bindings/js/ScriptValue.h: (WebCore::ScriptValue::ScriptValue): (WebCore::ScriptValue::jsValue):
  • bindings/objc/WebScriptObject.mm: (-[WebScriptObject callWebScriptMethod:withArguments:]): (-[WebScriptObject evaluateWebScript:]): (-[WebScriptObject valueForKey:]): (-[WebScriptObject webScriptValueAtIndex:]): (+[WebScriptObject _convertValueToObjcValue:originRootObject:rootObject:]):
  • bindings/objc/WebScriptObjectPrivate.h:
  • bridge/NP_jsobject.cpp: (_NPN_InvokeDefault): (_NPN_Invoke): (_NPN_Evaluate): (_NPN_GetProperty): (_NPN_HasMethod): (_NPN_Construct):
  • bridge/c/c_instance.cpp: (JSC::Bindings::CInstance::invokeMethod): (JSC::Bindings::CInstance::invokeDefaultMethod): (JSC::Bindings::CInstance::invokeConstruct): (JSC::Bindings::CInstance::defaultValue): (JSC::Bindings::CInstance::stringValue): (JSC::Bindings::CInstance::numberValue): (JSC::Bindings::CInstance::booleanValue): (JSC::Bindings::CInstance::valueOf):
  • bridge/c/c_instance.h:
  • bridge/c/c_runtime.cpp: (JSC::Bindings::CField::valueFromInstance): (JSC::Bindings::CField::setValueToInstance):
  • bridge/c/c_runtime.h:
  • bridge/c/c_utility.cpp: (JSC::Bindings::convertValueToNPVariant): (JSC::Bindings::convertNPVariantToValue):
  • bridge/c/c_utility.h:
  • bridge/jni/jni_instance.cpp: (JavaInstance::stringValue): (JavaInstance::numberValue): (JavaInstance::booleanValue): (JavaInstance::invokeMethod): (JavaInstance::defaultValue): (JavaInstance::valueOf):
  • bridge/jni/jni_instance.h:
  • bridge/jni/jni_jsobject.h:
  • bridge/jni/jni_jsobject.mm: (JavaJSObject::call): (JavaJSObject::eval): (JavaJSObject::getMember): (JavaJSObject::getSlot): (JavaJSObject::convertValueToJObject): (JavaJSObject::convertJObjectToValue):
  • bridge/jni/jni_objc.mm: (JSC::Bindings::dispatchJNICall):
  • bridge/jni/jni_runtime.cpp: (JavaArray::convertJObjectToArray): (JavaField::dispatchValueFromInstance): (JavaField::valueFromInstance): (JavaField::dispatchSetValueToInstance): (JavaField::setValueToInstance): (JavaArray::setValueAt): (JavaArray::valueAt):
  • bridge/jni/jni_runtime.h:
  • bridge/jni/jni_utility.cpp: (JSC::Bindings::convertArrayInstanceToJavaArray): (JSC::Bindings::convertValueToJValue):
  • bridge/jni/jni_utility.h:
  • bridge/objc/WebScriptObject.h:
  • bridge/objc/objc_class.h:
  • bridge/objc/objc_class.mm: (JSC::Bindings::ObjcClass::fallbackObject):
  • bridge/objc/objc_instance.h:
  • bridge/objc/objc_instance.mm: (ObjcInstance::invokeMethod): (ObjcInstance::invokeDefaultMethod): (ObjcInstance::setValueOfUndefinedField): (ObjcInstance::getValueOfUndefinedField): (ObjcInstance::defaultValue): (ObjcInstance::stringValue): (ObjcInstance::numberValue): (ObjcInstance::booleanValue): (ObjcInstance::valueOf):
  • bridge/objc/objc_runtime.h: (JSC::Bindings::ObjcFallbackObjectImp::createStructure):
  • bridge/objc/objc_runtime.mm: (JSC::Bindings::ObjcField::valueFromInstance): (JSC::Bindings::convertValueToObjcObject): (JSC::Bindings::ObjcField::setValueToInstance): (JSC::Bindings::ObjcArray::setValueAt): (JSC::Bindings::ObjcArray::valueAt): (JSC::Bindings::ObjcFallbackObjectImp::put): (JSC::Bindings::callObjCFallbackObject): (JSC::Bindings::ObjcFallbackObjectImp::defaultValue):
  • bridge/objc/objc_utility.h:
  • bridge/objc/objc_utility.mm: (JSC::Bindings::convertValueToObjcValue): (JSC::Bindings::convertNSStringToString): (JSC::Bindings::convertObjcValueToValue):
  • bridge/runtime.h: (JSC::Bindings::Class::fallbackObject): (JSC::Bindings::Instance::setValueOfUndefinedField): (JSC::Bindings::Instance::invokeDefaultMethod): (JSC::Bindings::Instance::invokeConstruct): (JSC::Bindings::Instance::put):
  • bridge/runtime_array.cpp: (JSC::RuntimeArray::lengthGetter): (JSC::RuntimeArray::indexGetter): (JSC::RuntimeArray::put):
  • bridge/runtime_array.h: (JSC::RuntimeArray::createStructure):
  • bridge/runtime_method.cpp: (JSC::RuntimeMethod::lengthGetter): (JSC::callRuntimeMethod):
  • bridge/runtime_method.h: (JSC::RuntimeMethod::createStructure):
  • bridge/runtime_object.cpp: (JSC::RuntimeObjectImp::fallbackObjectGetter): (JSC::RuntimeObjectImp::fieldGetter): (JSC::RuntimeObjectImp::methodGetter): (JSC::RuntimeObjectImp::put): (JSC::RuntimeObjectImp::defaultValue): (JSC::callRuntimeObject): (JSC::callRuntimeConstructor):
  • bridge/runtime_object.h: (JSC::RuntimeObjectImp::createStructure):
  • inspector/JavaScriptCallFrame.cpp: (WebCore::JavaScriptCallFrame::evaluate):
  • inspector/JavaScriptCallFrame.h:
  • inspector/JavaScriptProfile.cpp: (WebCore::toJS):
  • inspector/JavaScriptProfile.h:
  • inspector/JavaScriptProfileNode.cpp: (WebCore::toJS):
  • inspector/JavaScriptProfileNode.h:

WebKit/mac:

2009-05-01 Geoffrey Garen <[email protected]>

Rubber Stamped by Sam Weinig.


Renamed JSValuePtr => JSValue.

  • Plugins/Hosted/NetscapePluginInstanceProxy.h:
  • Plugins/Hosted/NetscapePluginInstanceProxy.mm: (WebKit::NetscapePluginInstanceProxy::evaluate): (WebKit::NetscapePluginInstanceProxy::invoke): (WebKit::NetscapePluginInstanceProxy::invokeDefault): (WebKit::NetscapePluginInstanceProxy::construct): (WebKit::NetscapePluginInstanceProxy::getProperty): (WebKit::NetscapePluginInstanceProxy::setProperty): (WebKit::NetscapePluginInstanceProxy::hasMethod): (WebKit::NetscapePluginInstanceProxy::addValueToArray): (WebKit::NetscapePluginInstanceProxy::marshalValue): (WebKit::NetscapePluginInstanceProxy::demarshalValueFromArray): (WebKit::NetscapePluginInstanceProxy::demarshalValue): (WebKit::NetscapePluginInstanceProxy::demarshalValues):
  • Plugins/Hosted/ProxyInstance.h:
  • Plugins/Hosted/ProxyInstance.mm: (WebKit::ProxyField::valueFromInstance): (WebKit::ProxyField::setValueToInstance): (WebKit::ProxyInstance::invoke): (WebKit::ProxyInstance::invokeMethod): (WebKit::ProxyInstance::invokeDefaultMethod): (WebKit::ProxyInstance::invokeConstruct): (WebKit::ProxyInstance::defaultValue): (WebKit::ProxyInstance::stringValue): (WebKit::ProxyInstance::numberValue): (WebKit::ProxyInstance::booleanValue): (WebKit::ProxyInstance::valueOf): (WebKit::ProxyInstance::fieldValue): (WebKit::ProxyInstance::setFieldValue):
  • WebView/WebFrame.mm: (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
  • WebView/WebScriptDebugDelegate.mm: (-[WebScriptCallFrame _convertValueToObjcValue:]): (-[WebScriptCallFrame exception]): (-[WebScriptCallFrame evaluateWebScript:]):
  • WebView/WebView.mm: (aeDescFromJSValue): (-[WebView aeDescByEvaluatingJavaScriptFromString:]):

WebKit/qt:

2009-05-01 Geoffrey Garen <[email protected]>

Rubber Stamped by Sam Weinig.


Renamed JSValuePtr => JSValue.

  • Api/qwebelement.cpp: (setupScriptContext): (setupScriptObject): (QWebElement::evaluateScript): (QWebElement::functions): (QWebElement::scriptableProperty): (QWebElement::setScriptableProperty): (QWebElement::scriptableProperties):

WebKit/win:

2009-05-01 Geoffrey Garen <[email protected]>

Rubber Stamped by Sam Weinig.


Renamed JSValuePtr => JSValue.

  • WebView.cpp: (WebView::stringByEvaluatingJavaScriptFromString):

WebKit/wx:

2009-05-01 Geoffrey Garen <[email protected]>

Rubber Stamped by Sam Weinig.


Renamed JSValuePtr => JSValue.

  • WebFrame.cpp: (wxWebFrame::RunScript):
Location:
trunk/JavaScriptCore/runtime
Files:
97 edited

Legend:

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

    r43037 r43122  
    5151}
    5252
    53 void MarkedArgumentBuffer::slowAppend(JSValuePtr v)
     53void MarkedArgumentBuffer::slowAppend(JSValue v)
    5454{
    5555    // As long as our size stays within our Vector's inline
  • trunk/JavaScriptCore/runtime/ArgList.h

    r43037 r43122  
    8686        bool isEmpty() const { return !m_size; }
    8787
    88         JSValuePtr at(size_t i) const
     88        JSValue at(size_t i) const
    8989        {
    9090            if (i < m_size)
     
    100100        }
    101101
    102         void append(JSValuePtr v)
     102        void append(JSValue v)
    103103        {
    104104            ASSERT(!m_isReadOnly);
     
    124124
    125125    private:
    126         void slowAppend(JSValuePtr);
     126        void slowAppend(JSValue);
    127127       
    128128        Register* m_buffer;
     
    157157    class ArgList {
    158158    public:
    159         typedef JSValuePtr* iterator;
    160         typedef const JSValuePtr* const_iterator;
     159        typedef JSValue* iterator;
     160        typedef const JSValue* const_iterator;
    161161
    162162        ArgList()
     
    166166        }
    167167       
    168         ArgList(JSValuePtr* args, unsigned argCount)
     168        ArgList(JSValue* args, unsigned argCount)
    169169            : m_args(args)
    170170            , m_argCount(argCount)
     
    173173       
    174174        ArgList(Register* args, int argCount)
    175             : m_args(reinterpret_cast<JSValuePtr*>(args))
     175            : m_args(reinterpret_cast<JSValue*>(args))
    176176            , m_argCount(argCount)
    177177        {
     
    180180
    181181        ArgList(const MarkedArgumentBuffer& args)
    182             : m_args(reinterpret_cast<JSValuePtr*>(const_cast<Register*>(args.begin())))
     182            : m_args(reinterpret_cast<JSValue*>(const_cast<Register*>(args.begin())))
    183183            , m_argCount(args.size())
    184184        {
    185185        }
    186186
    187         JSValuePtr at(size_t idx) const
     187        JSValue at(size_t idx) const
    188188        {
    189189            if (idx < m_argCount)
     
    204204        void getSlice(int startIndex, ArgList& result) const;
    205205    private:
    206         JSValuePtr* m_args;
     206        JSValue* m_args;
    207207        size_t m_argCount;
    208208    };
  • trunk/JavaScriptCore/runtime/Arguments.cpp

    r43037 r43122  
    188188}
    189189
    190 void Arguments::put(ExecState* exec, unsigned i, JSValuePtr value, PutPropertySlot& slot)
     190void Arguments::put(ExecState* exec, unsigned i, JSValue value, PutPropertySlot& slot)
    191191{
    192192    if (i < d->numArguments && (!d->deletedArguments || !d->deletedArguments[i])) {
    193193        if (i < d->numParameters)
    194             d->registers[d->firstParameterIndex + i] = JSValuePtr(value);
    195         else
    196             d->extraArguments[i - d->numParameters] = JSValuePtr(value);
     194            d->registers[d->firstParameterIndex + i] = JSValue(value);
     195        else
     196            d->extraArguments[i - d->numParameters] = JSValue(value);
    197197        return;
    198198    }
     
    201201}
    202202
    203 void Arguments::put(ExecState* exec, const Identifier& propertyName, JSValuePtr value, PutPropertySlot& slot)
     203void Arguments::put(ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot)
    204204{
    205205    bool isArrayIndex;
     
    207207    if (isArrayIndex && i < d->numArguments && (!d->deletedArguments || !d->deletedArguments[i])) {
    208208        if (i < d->numParameters)
    209             d->registers[d->firstParameterIndex + i] = JSValuePtr(value);
    210         else
    211             d->extraArguments[i - d->numParameters] = JSValuePtr(value);
     209            d->registers[d->firstParameterIndex + i] = JSValue(value);
     210        else
     211            d->extraArguments[i - d->numParameters] = JSValue(value);
    212212        return;
    213213    }
  • trunk/JavaScriptCore/runtime/Arguments.h

    r43037 r43122  
    8282        }
    8383
    84         static PassRefPtr<Structure> createStructure(JSValuePtr prototype)
     84        static PassRefPtr<Structure> createStructure(JSValue prototype)
    8585        {
    8686            return Structure::create(prototype, TypeInfo(ObjectType));
     
    9191        virtual bool getOwnPropertySlot(ExecState*, const Identifier& propertyName, PropertySlot&);
    9292        virtual bool getOwnPropertySlot(ExecState*, unsigned propertyName, PropertySlot&);
    93         virtual void put(ExecState*, const Identifier& propertyName, JSValuePtr, PutPropertySlot&);
    94         virtual void put(ExecState*, unsigned propertyName, JSValuePtr, PutPropertySlot&);
     93        virtual void put(ExecState*, const Identifier& propertyName, JSValue, PutPropertySlot&);
     94        virtual void put(ExecState*, unsigned propertyName, JSValue, PutPropertySlot&);
    9595        virtual bool deleteProperty(ExecState*, const Identifier& propertyName);
    9696        virtual bool deleteProperty(ExecState*, unsigned propertyName);
     
    103103    };
    104104
    105     Arguments* asArguments(JSValuePtr);
    106 
    107     inline Arguments* asArguments(JSValuePtr value)
     105    Arguments* asArguments(JSValue);
     106
     107    inline Arguments* asArguments(JSValue value)
    108108    {
    109109        ASSERT(asObject(value)->inherits(&Arguments::info));
  • trunk/JavaScriptCore/runtime/ArrayConstructor.cpp

    r42989 r43122  
    6969}
    7070
    71 static JSValuePtr callArrayConstructor(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args)
     71static JSValue callArrayConstructor(ExecState* exec, JSObject*, JSValue, const ArgList& args)
    7272{
    7373    return constructArrayWithSizeQuirk(exec, args);
  • trunk/JavaScriptCore/runtime/ArrayPrototype.cpp

    r43037 r43122  
    4040ASSERT_CLASS_FITS_IN_CELL(ArrayPrototype);
    4141
    42 static JSValuePtr arrayProtoFuncToString(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    43 static JSValuePtr arrayProtoFuncToLocaleString(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    44 static JSValuePtr arrayProtoFuncConcat(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    45 static JSValuePtr arrayProtoFuncJoin(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    46 static JSValuePtr arrayProtoFuncPop(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    47 static JSValuePtr arrayProtoFuncPush(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    48 static JSValuePtr arrayProtoFuncReverse(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    49 static JSValuePtr arrayProtoFuncShift(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    50 static JSValuePtr arrayProtoFuncSlice(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    51 static JSValuePtr arrayProtoFuncSort(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    52 static JSValuePtr arrayProtoFuncSplice(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    53 static JSValuePtr arrayProtoFuncUnShift(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    54 static JSValuePtr arrayProtoFuncEvery(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    55 static JSValuePtr arrayProtoFuncForEach(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    56 static JSValuePtr arrayProtoFuncSome(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    57 static JSValuePtr arrayProtoFuncIndexOf(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    58 static JSValuePtr arrayProtoFuncFilter(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    59 static JSValuePtr arrayProtoFuncMap(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    60 static JSValuePtr arrayProtoFuncReduce(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    61 static JSValuePtr arrayProtoFuncReduceRight(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    62 static JSValuePtr arrayProtoFuncLastIndexOf(ExecState*, JSObject*, JSValuePtr, const ArgList&);
     42static JSValue arrayProtoFuncToString(ExecState*, JSObject*, JSValue, const ArgList&);
     43static JSValue arrayProtoFuncToLocaleString(ExecState*, JSObject*, JSValue, const ArgList&);
     44static JSValue arrayProtoFuncConcat(ExecState*, JSObject*, JSValue, const ArgList&);
     45static JSValue arrayProtoFuncJoin(ExecState*, JSObject*, JSValue, const ArgList&);
     46static JSValue arrayProtoFuncPop(ExecState*, JSObject*, JSValue, const ArgList&);
     47static JSValue arrayProtoFuncPush(ExecState*, JSObject*, JSValue, const ArgList&);
     48static JSValue arrayProtoFuncReverse(ExecState*, JSObject*, JSValue, const ArgList&);
     49static JSValue arrayProtoFuncShift(ExecState*, JSObject*, JSValue, const ArgList&);
     50static JSValue arrayProtoFuncSlice(ExecState*, JSObject*, JSValue, const ArgList&);
     51static JSValue arrayProtoFuncSort(ExecState*, JSObject*, JSValue, const ArgList&);
     52static JSValue arrayProtoFuncSplice(ExecState*, JSObject*, JSValue, const ArgList&);
     53static JSValue arrayProtoFuncUnShift(ExecState*, JSObject*, JSValue, const ArgList&);
     54static JSValue arrayProtoFuncEvery(ExecState*, JSObject*, JSValue, const ArgList&);
     55static JSValue arrayProtoFuncForEach(ExecState*, JSObject*, JSValue, const ArgList&);
     56static JSValue arrayProtoFuncSome(ExecState*, JSObject*, JSValue, const ArgList&);
     57static JSValue arrayProtoFuncIndexOf(ExecState*, JSObject*, JSValue, const ArgList&);
     58static JSValue arrayProtoFuncFilter(ExecState*, JSObject*, JSValue, const ArgList&);
     59static JSValue arrayProtoFuncMap(ExecState*, JSObject*, JSValue, const ArgList&);
     60static JSValue arrayProtoFuncReduce(ExecState*, JSObject*, JSValue, const ArgList&);
     61static JSValue arrayProtoFuncReduceRight(ExecState*, JSObject*, JSValue, const ArgList&);
     62static JSValue arrayProtoFuncLastIndexOf(ExecState*, JSObject*, JSValue, const ArgList&);
    6363
    6464}
     
    128128
    129129// Helper function
    130 static JSValuePtr getProperty(ExecState* exec, JSObject* obj, unsigned index)
     130static JSValue getProperty(ExecState* exec, JSObject* obj, unsigned index)
    131131{
    132132    PropertySlot slot(obj);
     
    136136}
    137137
    138 static void putProperty(ExecState* exec, JSObject* obj, const Identifier& propertyName, JSValuePtr value)
     138static void putProperty(ExecState* exec, JSObject* obj, const Identifier& propertyName, JSValue value)
    139139{
    140140    PutPropertySlot slot;
     
    142142}
    143143
    144 JSValuePtr arrayProtoFuncToString(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList&)
     144JSValue arrayProtoFuncToString(ExecState* exec, JSObject*, JSValue thisValue, const ArgList&)
    145145{
    146146    if (!thisValue.isObject(&JSArray::info))
     
    167167        }
    168168
    169         JSValuePtr element = thisObj->get(exec, k);
     169        JSValue element = thisObj->get(exec, k);
    170170        if (element.isUndefinedOrNull())
    171171            continue;
     
    186186}
    187187
    188 JSValuePtr arrayProtoFuncToLocaleString(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList&)
     188JSValue arrayProtoFuncToLocaleString(ExecState* exec, JSObject*, JSValue thisValue, const ArgList&)
    189189{
    190190    if (!thisValue.isObject(&JSArray::info))
     
    211211        }
    212212
    213         JSValuePtr element = thisObj->get(exec, k);
     213        JSValue element = thisObj->get(exec, k);
    214214        if (element.isUndefinedOrNull())
    215215            continue;
    216216
    217217        JSObject* o = element.toObject(exec);
    218         JSValuePtr conversionFunction = o->get(exec, exec->propertyNames().toLocaleString);
     218        JSValue conversionFunction = o->get(exec, exec->propertyNames().toLocaleString);
    219219        UString str;
    220220        CallData callData;
     
    238238}
    239239
    240 JSValuePtr arrayProtoFuncJoin(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
     240JSValue arrayProtoFuncJoin(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
    241241{
    242242    JSObject* thisObj = thisValue.toThisObject(exec);
     
    265265        }
    266266
    267         JSValuePtr element = thisObj->get(exec, k);
     267        JSValue element = thisObj->get(exec, k);
    268268        if (element.isUndefinedOrNull())
    269269            continue;
     
    284284}
    285285
    286 JSValuePtr arrayProtoFuncConcat(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
     286JSValue arrayProtoFuncConcat(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
    287287{
    288288    JSArray* arr = constructEmptyArray(exec);
    289289    int n = 0;
    290     JSValuePtr curArg = thisValue.toThisObject(exec);
     290    JSValue curArg = thisValue.toThisObject(exec);
    291291    ArgList::const_iterator it = args.begin();
    292292    ArgList::const_iterator end = args.end();
     
    296296            JSObject* curObject = curArg.toObject(exec);
    297297            for (unsigned k = 0; k < length; ++k) {
    298                 if (JSValuePtr v = getProperty(exec, curObject, k))
     298                if (JSValue v = getProperty(exec, curObject, k))
    299299                    arr->put(exec, n, v);
    300300                n++;
     
    313313}
    314314
    315 JSValuePtr arrayProtoFuncPop(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList&)
     315JSValue arrayProtoFuncPop(ExecState* exec, JSObject*, JSValue thisValue, const ArgList&)
    316316{
    317317    if (isJSArray(&exec->globalData(), thisValue))
     
    319319
    320320    JSObject* thisObj = thisValue.toThisObject(exec);
    321     JSValuePtr result;
     321    JSValue result;
    322322    unsigned length = thisObj->get(exec, exec->propertyNames().length).toUInt32(exec);
    323323    if (length == 0) {
     
    332332}
    333333
    334 JSValuePtr arrayProtoFuncPush(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
     334JSValue arrayProtoFuncPush(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
    335335{
    336336    if (isJSArray(&exec->globalData(), thisValue) && args.size() == 1) {
     
    349349}
    350350
    351 JSValuePtr arrayProtoFuncReverse(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList&)
     351JSValue arrayProtoFuncReverse(ExecState* exec, JSObject*, JSValue thisValue, const ArgList&)
    352352{
    353353    JSObject* thisObj = thisValue.toThisObject(exec);
     
    357357    for (unsigned k = 0; k < middle; k++) {
    358358        unsigned lk1 = length - k - 1;
    359         JSValuePtr obj2 = getProperty(exec, thisObj, lk1);
    360         JSValuePtr obj = getProperty(exec, thisObj, k);
     359        JSValue obj2 = getProperty(exec, thisObj, lk1);
     360        JSValue obj = getProperty(exec, thisObj, k);
    361361
    362362        if (obj2)
     
    373373}
    374374
    375 JSValuePtr arrayProtoFuncShift(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList&)
    376 {
    377     JSObject* thisObj = thisValue.toThisObject(exec);
    378     JSValuePtr result;
     375JSValue arrayProtoFuncShift(ExecState* exec, JSObject*, JSValue thisValue, const ArgList&)
     376{
     377    JSObject* thisObj = thisValue.toThisObject(exec);
     378    JSValue result;
    379379
    380380    unsigned length = thisObj->get(exec, exec->propertyNames().length).toUInt32(exec);
     
    385385        result = thisObj->get(exec, 0);
    386386        for (unsigned k = 1; k < length; k++) {
    387             if (JSValuePtr obj = getProperty(exec, thisObj, k))
     387            if (JSValue obj = getProperty(exec, thisObj, k))
    388388                thisObj->put(exec, k - 1, obj);
    389389            else
     
    396396}
    397397
    398 JSValuePtr arrayProtoFuncSlice(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
     398JSValue arrayProtoFuncSlice(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
    399399{
    400400    // http://developer.netscape.com/docs/manuals/js/client/jsref/array.htm#1193713 or 15.4.4.10
     
    404404    // We return a new array
    405405    JSArray* resObj = constructEmptyArray(exec);
    406     JSValuePtr result = resObj;
     406    JSValue result = resObj;
    407407    double begin = args.at(0).toInteger(exec);
    408408    unsigned length = thisObj->get(exec, exec->propertyNames().length).toUInt32(exec);
     
    434434    int e = static_cast<int>(end);
    435435    for (int k = b; k < e; k++, n++) {
    436         if (JSValuePtr v = getProperty(exec, thisObj, k))
     436        if (JSValue v = getProperty(exec, thisObj, k))
    437437            resObj->put(exec, n, v);
    438438    }
     
    441441}
    442442
    443 JSValuePtr arrayProtoFuncSort(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
    444 {
    445     JSObject* thisObj = thisValue.toThisObject(exec);
    446 
    447     JSValuePtr function = args.at(0);
     443JSValue arrayProtoFuncSort(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
     444{
     445    JSObject* thisObj = thisValue.toThisObject(exec);
     446
     447    JSValue function = args.at(0);
    448448    CallData callData;
    449449    CallType callType = function.getCallData(callData);
     
    467467    // or quicksort, and much less swapping than bubblesort/insertionsort.
    468468    for (unsigned i = 0; i < length - 1; ++i) {
    469         JSValuePtr iObj = thisObj->get(exec, i);
     469        JSValue iObj = thisObj->get(exec, i);
    470470        unsigned themin = i;
    471         JSValuePtr minObj = iObj;
     471        JSValue minObj = iObj;
    472472        for (unsigned j = i + 1; j < length; ++j) {
    473             JSValuePtr jObj = thisObj->get(exec, j);
     473            JSValue jObj = thisObj->get(exec, j);
    474474            double compareResult;
    475475            if (jObj.isUndefined())
     
    499499}
    500500
    501 JSValuePtr arrayProtoFuncSplice(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
     501JSValue arrayProtoFuncSplice(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
    502502{
    503503    JSObject* thisObj = thisValue.toThisObject(exec);
     
    505505    // 15.4.4.12
    506506    JSArray* resObj = constructEmptyArray(exec);
    507     JSValuePtr result = resObj;
     507    JSValue result = resObj;
    508508    unsigned length = thisObj->get(exec, exec->propertyNames().length).toUInt32(exec);
    509509    if (!args.size())
     
    522522
    523523    for (unsigned k = 0; k < deleteCount; k++) {
    524         if (JSValuePtr v = getProperty(exec, thisObj, k + begin))
     524        if (JSValue v = getProperty(exec, thisObj, k + begin))
    525525            resObj->put(exec, k, v);
    526526    }
     
    531531        if (additionalArgs < deleteCount) {
    532532            for (unsigned k = begin; k < length - deleteCount; ++k) {
    533                 if (JSValuePtr v = getProperty(exec, thisObj, k + deleteCount))
     533                if (JSValue v = getProperty(exec, thisObj, k + deleteCount))
    534534                    thisObj->put(exec, k + additionalArgs, v);
    535535                else
     
    540540        } else {
    541541            for (unsigned k = length - deleteCount; (int)k > begin; --k) {
    542                 if (JSValuePtr obj = getProperty(exec, thisObj, k + deleteCount - 1))
     542                if (JSValue obj = getProperty(exec, thisObj, k + deleteCount - 1))
    543543                    thisObj->put(exec, k + additionalArgs - 1, obj);
    544544                else
     
    554554}
    555555
    556 JSValuePtr arrayProtoFuncUnShift(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
     556JSValue arrayProtoFuncUnShift(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
    557557{
    558558    JSObject* thisObj = thisValue.toThisObject(exec);
     
    563563    if (nrArgs) {
    564564        for (unsigned k = length; k > 0; --k) {
    565             if (JSValuePtr v = getProperty(exec, thisObj, k - 1))
     565            if (JSValue v = getProperty(exec, thisObj, k - 1))
    566566                thisObj->put(exec, k + nrArgs - 1, v);
    567567            else
     
    571571    for (unsigned k = 0; k < nrArgs; ++k)
    572572        thisObj->put(exec, k, args.at(k));
    573     JSValuePtr result = jsNumber(exec, length + nrArgs);
     573    JSValue result = jsNumber(exec, length + nrArgs);
    574574    putProperty(exec, thisObj, exec->propertyNames().length, result);
    575575    return result;
    576576}
    577577
    578 JSValuePtr arrayProtoFuncFilter(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
    579 {
    580     JSObject* thisObj = thisValue.toThisObject(exec);
    581 
    582     JSValuePtr function = args.at(0);
     578JSValue arrayProtoFuncFilter(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
     579{
     580    JSObject* thisObj = thisValue.toThisObject(exec);
     581
     582    JSValue function = args.at(0);
    583583    CallData callData;
    584584    CallType callType = function.getCallData(callData);
     
    599599            if (!array->canGetIndex(k))
    600600                break;
    601             JSValuePtr v = array->getIndex(k);
     601            JSValue v = array->getIndex(k);
    602602            cachedCall.setThis(applyThis);
    603603            cachedCall.setArgument(0, v);
     
    605605            cachedCall.setArgument(2, thisObj);
    606606           
    607             JSValuePtr result = cachedCall.call();
     607            JSValue result = cachedCall.call();
    608608            if (result.toBoolean(exec))
    609609                resultArray->put(exec, filterIndex++, v);
     
    618618            continue;
    619619
    620         JSValuePtr v = slot.getValue(exec, k);
     620        JSValue v = slot.getValue(exec, k);
    621621
    622622        MarkedArgumentBuffer eachArguments;
     
    626626        eachArguments.append(thisObj);
    627627
    628         JSValuePtr result = call(exec, function, callType, callData, applyThis, eachArguments);
     628        JSValue result = call(exec, function, callType, callData, applyThis, eachArguments);
    629629
    630630        if (result.toBoolean(exec))
     
    634634}
    635635
    636 JSValuePtr arrayProtoFuncMap(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
    637 {
    638     JSObject* thisObj = thisValue.toThisObject(exec);
    639 
    640     JSValuePtr function = args.at(0);
     636JSValue arrayProtoFuncMap(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
     637{
     638    JSObject* thisObj = thisValue.toThisObject(exec);
     639
     640    JSValue function = args.at(0);
    641641    CallData callData;
    642642    CallType callType = function.getCallData(callData);
     
    671671            continue;
    672672
    673         JSValuePtr v = slot.getValue(exec, k);
     673        JSValue v = slot.getValue(exec, k);
    674674
    675675        MarkedArgumentBuffer eachArguments;
     
    679679        eachArguments.append(thisObj);
    680680
    681         JSValuePtr result = call(exec, function, callType, callData, applyThis, eachArguments);
     681        JSValue result = call(exec, function, callType, callData, applyThis, eachArguments);
    682682        resultArray->put(exec, k, result);
    683683    }
     
    691691// http://developer-test.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Objects:Array:some
    692692
    693 JSValuePtr arrayProtoFuncEvery(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
    694 {
    695     JSObject* thisObj = thisValue.toThisObject(exec);
    696 
    697     JSValuePtr function = args.at(0);
     693JSValue arrayProtoFuncEvery(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
     694{
     695    JSObject* thisObj = thisValue.toThisObject(exec);
     696
     697    JSValue function = args.at(0);
    698698    CallData callData;
    699699    CallType callType = function.getCallData(callData);
     
    703703    JSObject* applyThis = args.at(1).isUndefinedOrNull() ? exec->globalThisValue() : args.at(1).toObject(exec);
    704704
    705     JSValuePtr result = jsBoolean(true);
     705    JSValue result = jsBoolean(true);
    706706
    707707    unsigned length = thisObj->get(exec, exec->propertyNames().length).toUInt32(exec);
     
    747747}
    748748
    749 JSValuePtr arrayProtoFuncForEach(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
    750 {
    751     JSObject* thisObj = thisValue.toThisObject(exec);
    752 
    753     JSValuePtr function = args.at(0);
     749JSValue arrayProtoFuncForEach(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
     750{
     751    JSObject* thisObj = thisValue.toThisObject(exec);
     752
     753    JSValue function = args.at(0);
    754754    CallData callData;
    755755    CallType callType = function.getCallData(callData);
     
    792792}
    793793
    794 JSValuePtr arrayProtoFuncSome(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
    795 {
    796     JSObject* thisObj = thisValue.toThisObject(exec);
    797 
    798     JSValuePtr function = args.at(0);
     794JSValue arrayProtoFuncSome(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
     795{
     796    JSObject* thisObj = thisValue.toThisObject(exec);
     797
     798    JSValue function = args.at(0);
    799799    CallData callData;
    800800    CallType callType = function.getCallData(callData);
     
    804804    JSObject* applyThis = args.at(1).isUndefinedOrNull() ? exec->globalThisValue() : args.at(1).toObject(exec);
    805805
    806     JSValuePtr result = jsBoolean(false);
     806    JSValue result = jsBoolean(false);
    807807
    808808    unsigned length = thisObj->get(exec, exec->propertyNames().length).toUInt32(exec);
     
    845845}
    846846
    847 JSValuePtr arrayProtoFuncReduce(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
     847JSValue arrayProtoFuncReduce(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
    848848{
    849849    JSObject* thisObj = thisValue.toThisObject(exec);
    850850   
    851     JSValuePtr function = args.at(0);
     851    JSValue function = args.at(0);
    852852    CallData callData;
    853853    CallType callType = function.getCallData(callData);
     
    856856
    857857    unsigned i = 0;
    858     JSValuePtr rv;
     858    JSValue rv;
    859859    unsigned length = thisObj->get(exec, exec->propertyNames().length).toUInt32(exec);
    860860    if (!length && args.size() == 1)
     
    885885            cachedCall.setThis(jsNull());
    886886            cachedCall.setArgument(0, rv);
    887             JSValuePtr v;
     887            JSValue v;
    888888            if (LIKELY(array->canGetIndex(i)))
    889889                v = array->getIndex(i);
     
    900900
    901901    for (; i < length && !exec->hadException(); ++i) {
    902         JSValuePtr prop = getProperty(exec, thisObj, i);
     902        JSValue prop = getProperty(exec, thisObj, i);
    903903        if (!prop)
    904904            continue;
     
    915915}
    916916
    917 JSValuePtr arrayProtoFuncReduceRight(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
     917JSValue arrayProtoFuncReduceRight(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
    918918{
    919919    JSObject* thisObj = thisValue.toThisObject(exec);
    920920   
    921     JSValuePtr function = args.at(0);
     921    JSValue function = args.at(0);
    922922    CallData callData;
    923923    CallType callType = function.getCallData(callData);
     
    926926   
    927927    unsigned i = 0;
    928     JSValuePtr rv;
     928    JSValue rv;
    929929    unsigned length = thisObj->get(exec, exec->propertyNames().length).toUInt32(exec);
    930930    if (!length && args.size() == 1)
     
    969969    for (; i < length && !exec->hadException(); ++i) {
    970970        unsigned idx = length - i - 1;
    971         JSValuePtr prop = getProperty(exec, thisObj, idx);
     971        JSValue prop = getProperty(exec, thisObj, idx);
    972972        if (!prop)
    973973            continue;
     
    984984}
    985985
    986 JSValuePtr arrayProtoFuncIndexOf(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
     986JSValue arrayProtoFuncIndexOf(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
    987987{
    988988    // JavaScript 1.5 Extension by Mozilla
     
    10031003    }
    10041004
    1005     JSValuePtr searchElement = args.at(0);
     1005    JSValue searchElement = args.at(0);
    10061006    for (; index < length; ++index) {
    1007         JSValuePtr e = getProperty(exec, thisObj, index);
     1007        JSValue e = getProperty(exec, thisObj, index);
    10081008        if (!e)
    10091009            continue;
    1010         if (JSValuePtr::strictEqual(searchElement, e))
     1010        if (JSValue::strictEqual(searchElement, e))
    10111011            return jsNumber(exec, index);
    10121012    }
     
    10151015}
    10161016
    1017 JSValuePtr arrayProtoFuncLastIndexOf(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
     1017JSValue arrayProtoFuncLastIndexOf(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
    10181018{
    10191019    // JavaScript 1.6 Extension by Mozilla
     
    10341034        index = static_cast<int>(d);
    10351035
    1036     JSValuePtr searchElement = args.at(0);
     1036    JSValue searchElement = args.at(0);
    10371037    for (; index >= 0; --index) {
    1038         JSValuePtr e = getProperty(exec, thisObj, index);
     1038        JSValue e = getProperty(exec, thisObj, index);
    10391039        if (!e)
    10401040            continue;
    1041         if (JSValuePtr::strictEqual(searchElement, e))
     1041        if (JSValue::strictEqual(searchElement, e))
    10421042            return jsNumber(exec, index);
    10431043    }
  • trunk/JavaScriptCore/runtime/BooleanConstructor.cpp

    r42989 r43122  
    5858
    5959// ECMA 15.6.1
    60 static JSValuePtr callBooleanConstructor(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args)
     60static JSValue callBooleanConstructor(ExecState* exec, JSObject*, JSValue, const ArgList& args)
    6161{
    6262    return jsBoolean(args.at(0).toBoolean(exec));
     
    6969}
    7070
    71 JSObject* constructBooleanFromImmediateBoolean(ExecState* exec, JSValuePtr immediateBooleanValue)
     71JSObject* constructBooleanFromImmediateBoolean(ExecState* exec, JSValue immediateBooleanValue)
    7272{
    7373    BooleanObject* obj = new (exec) BooleanObject(exec->lexicalGlobalObject()->booleanObjectStructure());
  • trunk/JavaScriptCore/runtime/BooleanConstructor.h

    r39670 r43122  
    3737    };
    3838
    39     JSObject* constructBooleanFromImmediateBoolean(ExecState*, JSValuePtr);
     39    JSObject* constructBooleanFromImmediateBoolean(ExecState*, JSValue);
    4040    JSObject* constructBoolean(ExecState*, const ArgList&);
    4141
  • trunk/JavaScriptCore/runtime/BooleanObject.h

    r39670 r43122  
    3434    };
    3535
    36     BooleanObject* asBooleanObject(JSValuePtr);
     36    BooleanObject* asBooleanObject(JSValue);
    3737
    38     inline BooleanObject* asBooleanObject(JSValuePtr value)
     38    inline BooleanObject* asBooleanObject(JSValue value)
    3939    {
    4040        ASSERT(asObject(value)->inherits(&BooleanObject::info));
  • trunk/JavaScriptCore/runtime/BooleanPrototype.cpp

    r40046 r43122  
    3232
    3333// Functions
    34 static JSValuePtr booleanProtoFuncToString(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    35 static JSValuePtr booleanProtoFuncValueOf(ExecState*, JSObject*, JSValuePtr, const ArgList&);
     34static JSValue booleanProtoFuncToString(ExecState*, JSObject*, JSValue, const ArgList&);
     35static JSValue booleanProtoFuncValueOf(ExecState*, JSObject*, JSValue, const ArgList&);
    3636
    3737// ECMA 15.6.4
     
    5151// ECMA 15.6.4.2 + 15.6.4.3
    5252
    53 JSValuePtr booleanProtoFuncToString(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList&)
     53JSValue booleanProtoFuncToString(ExecState* exec, JSObject*, JSValue thisValue, const ArgList&)
    5454{
    5555    if (thisValue == jsBoolean(false))
     
    6969}
    7070
    71 JSValuePtr booleanProtoFuncValueOf(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList&)
     71JSValue booleanProtoFuncValueOf(ExecState* exec, JSObject*, JSValue thisValue, const ArgList&)
    7272{
    7373    if (thisValue.isBoolean())
  • trunk/JavaScriptCore/runtime/CallData.cpp

    r39670 r43122  
    3131namespace JSC {
    3232
    33 JSValuePtr call(ExecState* exec, JSValuePtr functionObject, CallType callType, const CallData& callData, JSValuePtr thisValue, const ArgList& args)
     33JSValue call(ExecState* exec, JSValue functionObject, CallType callType, const CallData& callData, JSValue thisValue, const ArgList& args)
    3434{
    3535    if (callType == CallTypeHost)
  • trunk/JavaScriptCore/runtime/CallData.h

    r39670 r43122  
    3636    class FunctionBodyNode;
    3737    class JSObject;
    38     class JSValuePtr;
     38    class JSValue;
    3939    class ScopeChainNode;
    4040
     
    4545    };
    4646
    47     typedef JSValuePtr (*NativeFunction)(ExecState*, JSObject*, JSValuePtr thisValue, const ArgList&);
     47    typedef JSValue (*NativeFunction)(ExecState*, JSObject*, JSValue thisValue, const ArgList&);
    4848
    4949    union CallData {
     
    5757    };
    5858
    59     JSValuePtr call(ExecState*, JSValuePtr functionObject, CallType, const CallData&, JSValuePtr thisValue, const ArgList&);
     59    JSValue call(ExecState*, JSValue functionObject, CallType, const CallData&, JSValue thisValue, const ArgList&);
    6060
    6161} // namespace JSC
  • trunk/JavaScriptCore/runtime/Collector.cpp

    r43037 r43122  
    809809}
    810810
    811 void Heap::protect(JSValuePtr k)
     811void Heap::protect(JSValue k)
    812812{
    813813    ASSERT(k);
     
    826826}
    827827
    828 void Heap::unprotect(JSValuePtr k)
     828void Heap::unprotect(JSValue k)
    829829{
    830830    ASSERT(k);
     
    843843}
    844844
    845 Heap* Heap::heap(JSValuePtr v)
     845Heap* Heap::heap(JSValue v)
    846846{
    847847    if (!v.isCell())
  • trunk/JavaScriptCore/runtime/Collector.h

    r43037 r43122  
    4444    class JSCell;
    4545    class JSGlobalData;
    46     class JSValuePtr;
     46    class JSValue;
    4747
    4848    enum OperationInProgress { NoOperation, Allocation, Collection };
     
    9797
    9898        void setGCProtectNeedsLocking();
    99         void protect(JSValuePtr);
    100         void unprotect(JSValuePtr);
    101 
    102         static Heap* heap(JSValuePtr); // 0 for immediate values
     99        void protect(JSValue);
     100        void unprotect(JSValue);
     101
     102        static Heap* heap(JSValue); // 0 for immediate values
    103103
    104104        size_t globalObjectCount();
  • trunk/JavaScriptCore/runtime/Completion.cpp

    r41912 r43122  
    5151}
    5252
    53 Completion evaluate(ExecState* exec, ScopeChain& scopeChain, const SourceCode& source, JSValuePtr thisValue)
     53Completion evaluate(ExecState* exec, ScopeChain& scopeChain, const SourceCode& source, JSValue thisValue)
    5454{
    5555    JSLock lock(exec);
     
    6464    JSObject* thisObj = (!thisValue || thisValue.isUndefinedOrNull()) ? exec->dynamicGlobalObject() : thisValue.toObject(exec);
    6565
    66     JSValuePtr exception = noValue();
    67     JSValuePtr result = exec->interpreter()->execute(programNode.get(), exec, scopeChain.node(), thisObj, &exception);
     66    JSValue exception = noValue();
     67    JSValue result = exec->interpreter()->execute(programNode.get(), exec, scopeChain.node(), thisObj, &exception);
    6868
    6969    if (exception) {
  • trunk/JavaScriptCore/runtime/Completion.h

    r39670 r43122  
    4040    class Completion {
    4141    public:
    42         Completion(ComplType type = Normal, JSValuePtr value = noValue())
     42        Completion(ComplType type = Normal, JSValue value = noValue())
    4343            : m_type(type)
    4444            , m_value(value)
     
    4747
    4848        ComplType complType() const { return m_type; }
    49         JSValuePtr value() const { return m_value; }
    50         void setValue(JSValuePtr v) { m_value = v; }
     49        JSValue value() const { return m_value; }
     50        void setValue(JSValue v) { m_value = v; }
    5151        bool isValueCompletion() const { return m_value; }
    5252
    5353    private:
    5454        ComplType m_type;
    55         JSValuePtr m_value;
     55        JSValue m_value;
    5656    };
    5757
    5858    Completion checkSyntax(ExecState*, const SourceCode&);
    59     Completion evaluate(ExecState*, ScopeChain&, const SourceCode&, JSValuePtr thisValue = noValue());
     59    Completion evaluate(ExecState*, ScopeChain&, const SourceCode&, JSValue thisValue = noValue());
    6060
    6161} // namespace JSC
  • trunk/JavaScriptCore/runtime/ConstructData.cpp

    r39670 r43122  
    3131namespace JSC {
    3232
    33 JSObject* construct(ExecState* exec, JSValuePtr object, ConstructType constructType, const ConstructData& constructData, const ArgList& args)
     33JSObject* construct(ExecState* exec, JSValue object, ConstructType constructType, const ConstructData& constructData, const ArgList& args)
    3434{
    3535    if (constructType == ConstructTypeHost)
  • trunk/JavaScriptCore/runtime/ConstructData.h

    r39670 r43122  
    3636    class FunctionBodyNode;
    3737    class JSObject;
    38     class JSValuePtr;
     38    class JSValue;
    3939    class ScopeChainNode;
    4040
     
    5757    };
    5858
    59     JSObject* construct(ExecState*, JSValuePtr constructor, ConstructType, const ConstructData&, const ArgList&);
     59    JSObject* construct(ExecState*, JSValue constructor, ConstructType, const ConstructData&, const ArgList&);
    6060
    6161} // namespace JSC
  • trunk/JavaScriptCore/runtime/DateConstructor.cpp

    r42989 r43122  
    4848ASSERT_CLASS_FITS_IN_CELL(DateConstructor);
    4949
    50 static JSValuePtr dateParse(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    51 static JSValuePtr dateNow(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    52 static JSValuePtr dateUTC(ExecState*, JSObject*, JSValuePtr, const ArgList&);
     50static JSValue dateParse(ExecState*, JSObject*, JSValue, const ArgList&);
     51static JSValue dateNow(ExecState*, JSObject*, JSValue, const ArgList&);
     52static JSValue dateUTC(ExecState*, JSObject*, JSValue, const ArgList&);
    5353
    5454DateConstructor::DateConstructor(ExecState* exec, PassRefPtr<Structure> structure, Structure* prototypeFunctionStructure, DatePrototype* datePrototype)
     
    7777            value = asDateInstance(args.at(0))->internalNumber();
    7878        else {
    79             JSValuePtr primitive = args.at(0).toPrimitive(exec);
     79            JSValue primitive = args.at(0).toPrimitive(exec);
    8080            if (primitive.isString())
    8181                value = parseDate(primitive.getString());
     
    124124
    125125// ECMA 15.9.2
    126 static JSValuePtr callDate(ExecState* exec, JSObject*, JSValuePtr, const ArgList&)
     126static JSValue callDate(ExecState* exec, JSObject*, JSValue, const ArgList&)
    127127{
    128128    time_t localTime = time(0);
     
    139139}
    140140
    141 static JSValuePtr dateParse(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args)
     141static JSValue dateParse(ExecState* exec, JSObject*, JSValue, const ArgList& args)
    142142{
    143143    return jsNumber(exec, parseDate(args.at(0).toString(exec)));
    144144}
    145145
    146 static JSValuePtr dateNow(ExecState* exec, JSObject*, JSValuePtr, const ArgList&)
     146static JSValue dateNow(ExecState* exec, JSObject*, JSValue, const ArgList&)
    147147{
    148148    return jsNumber(exec, getCurrentUTCTime());
    149149}
    150150
    151 static JSValuePtr dateUTC(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args)
     151static JSValue dateUTC(ExecState* exec, JSObject*, JSValue, const ArgList& args)
    152152{
    153153    int n = args.size();
  • trunk/JavaScriptCore/runtime/DateInstance.h

    r40046 r43122  
    5353    };
    5454
    55     DateInstance* asDateInstance(JSValuePtr);
     55    DateInstance* asDateInstance(JSValue);
    5656
    57     inline DateInstance* asDateInstance(JSValuePtr value)
     57    inline DateInstance* asDateInstance(JSValue value)
    5858    {
    5959        ASSERT(asObject(value)->inherits(&DateInstance::info));
  • trunk/JavaScriptCore/runtime/DatePrototype.cpp

    r42989 r43122  
    6464ASSERT_CLASS_FITS_IN_CELL(DatePrototype);
    6565
    66 static JSValuePtr dateProtoFuncGetDate(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    67 static JSValuePtr dateProtoFuncGetDay(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    68 static JSValuePtr dateProtoFuncGetFullYear(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    69 static JSValuePtr dateProtoFuncGetHours(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    70 static JSValuePtr dateProtoFuncGetMilliSeconds(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    71 static JSValuePtr dateProtoFuncGetMinutes(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    72 static JSValuePtr dateProtoFuncGetMonth(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    73 static JSValuePtr dateProtoFuncGetSeconds(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    74 static JSValuePtr dateProtoFuncGetTime(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    75 static JSValuePtr dateProtoFuncGetTimezoneOffset(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    76 static JSValuePtr dateProtoFuncGetUTCDate(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    77 static JSValuePtr dateProtoFuncGetUTCDay(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    78 static JSValuePtr dateProtoFuncGetUTCFullYear(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    79 static JSValuePtr dateProtoFuncGetUTCHours(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    80 static JSValuePtr dateProtoFuncGetUTCMilliseconds(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    81 static JSValuePtr dateProtoFuncGetUTCMinutes(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    82 static JSValuePtr dateProtoFuncGetUTCMonth(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    83 static JSValuePtr dateProtoFuncGetUTCSeconds(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    84 static JSValuePtr dateProtoFuncGetYear(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    85 static JSValuePtr dateProtoFuncSetDate(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    86 static JSValuePtr dateProtoFuncSetFullYear(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    87 static JSValuePtr dateProtoFuncSetHours(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    88 static JSValuePtr dateProtoFuncSetMilliSeconds(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    89 static JSValuePtr dateProtoFuncSetMinutes(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    90 static JSValuePtr dateProtoFuncSetMonth(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    91 static JSValuePtr dateProtoFuncSetSeconds(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    92 static JSValuePtr dateProtoFuncSetTime(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    93 static JSValuePtr dateProtoFuncSetUTCDate(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    94 static JSValuePtr dateProtoFuncSetUTCFullYear(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    95 static JSValuePtr dateProtoFuncSetUTCHours(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    96 static JSValuePtr dateProtoFuncSetUTCMilliseconds(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    97 static JSValuePtr dateProtoFuncSetUTCMinutes(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    98 static JSValuePtr dateProtoFuncSetUTCMonth(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    99 static JSValuePtr dateProtoFuncSetUTCSeconds(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    100 static JSValuePtr dateProtoFuncSetYear(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    101 static JSValuePtr dateProtoFuncToDateString(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    102 static JSValuePtr dateProtoFuncToGMTString(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    103 static JSValuePtr dateProtoFuncToLocaleDateString(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    104 static JSValuePtr dateProtoFuncToLocaleString(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    105 static JSValuePtr dateProtoFuncToLocaleTimeString(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    106 static JSValuePtr dateProtoFuncToString(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    107 static JSValuePtr dateProtoFuncToTimeString(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    108 static JSValuePtr dateProtoFuncToUTCString(ExecState*, JSObject*, JSValuePtr, const ArgList&);
     66static JSValue dateProtoFuncGetDate(ExecState*, JSObject*, JSValue, const ArgList&);
     67static JSValue dateProtoFuncGetDay(ExecState*, JSObject*, JSValue, const ArgList&);
     68static JSValue dateProtoFuncGetFullYear(ExecState*, JSObject*, JSValue, const ArgList&);
     69static JSValue dateProtoFuncGetHours(ExecState*, JSObject*, JSValue, const ArgList&);
     70static JSValue dateProtoFuncGetMilliSeconds(ExecState*, JSObject*, JSValue, const ArgList&);
     71static JSValue dateProtoFuncGetMinutes(ExecState*, JSObject*, JSValue, const ArgList&);
     72static JSValue dateProtoFuncGetMonth(ExecState*, JSObject*, JSValue, const ArgList&);
     73static JSValue dateProtoFuncGetSeconds(ExecState*, JSObject*, JSValue, const ArgList&);
     74static JSValue dateProtoFuncGetTime(ExecState*, JSObject*, JSValue, const ArgList&);
     75static JSValue dateProtoFuncGetTimezoneOffset(ExecState*, JSObject*, JSValue, const ArgList&);
     76static JSValue dateProtoFuncGetUTCDate(ExecState*, JSObject*, JSValue, const ArgList&);
     77static JSValue dateProtoFuncGetUTCDay(ExecState*, JSObject*, JSValue, const ArgList&);
     78static JSValue dateProtoFuncGetUTCFullYear(ExecState*, JSObject*, JSValue, const ArgList&);
     79static JSValue dateProtoFuncGetUTCHours(ExecState*, JSObject*, JSValue, const ArgList&);
     80static JSValue dateProtoFuncGetUTCMilliseconds(ExecState*, JSObject*, JSValue, const ArgList&);
     81static JSValue dateProtoFuncGetUTCMinutes(ExecState*, JSObject*, JSValue, const ArgList&);
     82static JSValue dateProtoFuncGetUTCMonth(ExecState*, JSObject*, JSValue, const ArgList&);
     83static JSValue dateProtoFuncGetUTCSeconds(ExecState*, JSObject*, JSValue, const ArgList&);
     84static JSValue dateProtoFuncGetYear(ExecState*, JSObject*, JSValue, const ArgList&);
     85static JSValue dateProtoFuncSetDate(ExecState*, JSObject*, JSValue, const ArgList&);
     86static JSValue dateProtoFuncSetFullYear(ExecState*, JSObject*, JSValue, const ArgList&);
     87static JSValue dateProtoFuncSetHours(ExecState*, JSObject*, JSValue, const ArgList&);
     88static JSValue dateProtoFuncSetMilliSeconds(ExecState*, JSObject*, JSValue, const ArgList&);
     89static JSValue dateProtoFuncSetMinutes(ExecState*, JSObject*, JSValue, const ArgList&);
     90static JSValue dateProtoFuncSetMonth(ExecState*, JSObject*, JSValue, const ArgList&);
     91static JSValue dateProtoFuncSetSeconds(ExecState*, JSObject*, JSValue, const ArgList&);
     92static JSValue dateProtoFuncSetTime(ExecState*, JSObject*, JSValue, const ArgList&);
     93static JSValue dateProtoFuncSetUTCDate(ExecState*, JSObject*, JSValue, const ArgList&);
     94static JSValue dateProtoFuncSetUTCFullYear(ExecState*, JSObject*, JSValue, const ArgList&);
     95static JSValue dateProtoFuncSetUTCHours(ExecState*, JSObject*, JSValue, const ArgList&);
     96static JSValue dateProtoFuncSetUTCMilliseconds(ExecState*, JSObject*, JSValue, const ArgList&);
     97static JSValue dateProtoFuncSetUTCMinutes(ExecState*, JSObject*, JSValue, const ArgList&);
     98static JSValue dateProtoFuncSetUTCMonth(ExecState*, JSObject*, JSValue, const ArgList&);
     99static JSValue dateProtoFuncSetUTCSeconds(ExecState*, JSObject*, JSValue, const ArgList&);
     100static JSValue dateProtoFuncSetYear(ExecState*, JSObject*, JSValue, const ArgList&);
     101static JSValue dateProtoFuncToDateString(ExecState*, JSObject*, JSValue, const ArgList&);
     102static JSValue dateProtoFuncToGMTString(ExecState*, JSObject*, JSValue, const ArgList&);
     103static JSValue dateProtoFuncToLocaleDateString(ExecState*, JSObject*, JSValue, const ArgList&);
     104static JSValue dateProtoFuncToLocaleString(ExecState*, JSObject*, JSValue, const ArgList&);
     105static JSValue dateProtoFuncToLocaleTimeString(ExecState*, JSObject*, JSValue, const ArgList&);
     106static JSValue dateProtoFuncToString(ExecState*, JSObject*, JSValue, const ArgList&);
     107static JSValue dateProtoFuncToTimeString(ExecState*, JSObject*, JSValue, const ArgList&);
     108static JSValue dateProtoFuncToUTCString(ExecState*, JSObject*, JSValue, const ArgList&);
    109109
    110110}
     
    395395// Functions
    396396
    397 JSValuePtr dateProtoFuncToString(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList&)
     397JSValue dateProtoFuncToString(ExecState* exec, JSObject*, JSValue thisValue, const ArgList&)
    398398{
    399399    if (!thisValue.isObject(&DateInstance::info))
     
    412412}
    413413
    414 JSValuePtr dateProtoFuncToUTCString(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList&)
     414JSValue dateProtoFuncToUTCString(ExecState* exec, JSObject*, JSValue thisValue, const ArgList&)
    415415{
    416416    if (!thisValue.isObject(&DateInstance::info))
     
    429429}
    430430
    431 JSValuePtr dateProtoFuncToDateString(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList&)
     431JSValue dateProtoFuncToDateString(ExecState* exec, JSObject*, JSValue thisValue, const ArgList&)
    432432{
    433433    if (!thisValue.isObject(&DateInstance::info))
     
    446446}
    447447
    448 JSValuePtr dateProtoFuncToTimeString(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList&)
     448JSValue dateProtoFuncToTimeString(ExecState* exec, JSObject*, JSValue thisValue, const ArgList&)
    449449{
    450450    if (!thisValue.isObject(&DateInstance::info))
     
    463463}
    464464
    465 JSValuePtr dateProtoFuncToLocaleString(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
     465JSValue dateProtoFuncToLocaleString(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
    466466{
    467467    if (!thisValue.isObject(&DateInstance::info))
     
    476476}
    477477
    478 JSValuePtr dateProtoFuncToLocaleDateString(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
     478JSValue dateProtoFuncToLocaleDateString(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
    479479{
    480480    if (!thisValue.isObject(&DateInstance::info))
     
    489489}
    490490
    491 JSValuePtr dateProtoFuncToLocaleTimeString(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
     491JSValue dateProtoFuncToLocaleTimeString(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
    492492{
    493493    if (!thisValue.isObject(&DateInstance::info))
     
    502502}
    503503
    504 JSValuePtr dateProtoFuncGetTime(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList&)
     504JSValue dateProtoFuncGetTime(ExecState* exec, JSObject*, JSValue thisValue, const ArgList&)
    505505{
    506506    if (!thisValue.isObject(&DateInstance::info))
     
    515515}
    516516
    517 JSValuePtr dateProtoFuncGetFullYear(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList&)
     517JSValue dateProtoFuncGetFullYear(ExecState* exec, JSObject*, JSValue thisValue, const ArgList&)
    518518{
    519519    if (!thisValue.isObject(&DateInstance::info))
     
    532532}
    533533
    534 JSValuePtr dateProtoFuncGetUTCFullYear(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList&)
     534JSValue dateProtoFuncGetUTCFullYear(ExecState* exec, JSObject*, JSValue thisValue, const ArgList&)
    535535{
    536536    if (!thisValue.isObject(&DateInstance::info))
     
    549549}
    550550
    551 JSValuePtr dateProtoFuncToGMTString(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList&)
     551JSValue dateProtoFuncToGMTString(ExecState* exec, JSObject*, JSValue thisValue, const ArgList&)
    552552{
    553553    if (!thisValue.isObject(&DateInstance::info))
     
    566566}
    567567
    568 JSValuePtr dateProtoFuncGetMonth(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList&)
     568JSValue dateProtoFuncGetMonth(ExecState* exec, JSObject*, JSValue thisValue, const ArgList&)
    569569{
    570570    if (!thisValue.isObject(&DateInstance::info))
     
    583583}
    584584
    585 JSValuePtr dateProtoFuncGetUTCMonth(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList&)
     585JSValue dateProtoFuncGetUTCMonth(ExecState* exec, JSObject*, JSValue thisValue, const ArgList&)
    586586{
    587587    if (!thisValue.isObject(&DateInstance::info))
     
    600600}
    601601
    602 JSValuePtr dateProtoFuncGetDate(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList&)
     602JSValue dateProtoFuncGetDate(ExecState* exec, JSObject*, JSValue thisValue, const ArgList&)
    603603{
    604604    if (!thisValue.isObject(&DateInstance::info))
     
    617617}
    618618
    619 JSValuePtr dateProtoFuncGetUTCDate(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList&)
     619JSValue dateProtoFuncGetUTCDate(ExecState* exec, JSObject*, JSValue thisValue, const ArgList&)
    620620{
    621621    if (!thisValue.isObject(&DateInstance::info))
     
    634634}
    635635
    636 JSValuePtr dateProtoFuncGetDay(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList&)
     636JSValue dateProtoFuncGetDay(ExecState* exec, JSObject*, JSValue thisValue, const ArgList&)
    637637{
    638638    if (!thisValue.isObject(&DateInstance::info))
     
    651651}
    652652
    653 JSValuePtr dateProtoFuncGetUTCDay(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList&)
     653JSValue dateProtoFuncGetUTCDay(ExecState* exec, JSObject*, JSValue thisValue, const ArgList&)
    654654{
    655655    if (!thisValue.isObject(&DateInstance::info))
     
    668668}
    669669
    670 JSValuePtr dateProtoFuncGetHours(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList&)
     670JSValue dateProtoFuncGetHours(ExecState* exec, JSObject*, JSValue thisValue, const ArgList&)
    671671{
    672672    if (!thisValue.isObject(&DateInstance::info))
     
    685685}
    686686
    687 JSValuePtr dateProtoFuncGetUTCHours(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList&)
     687JSValue dateProtoFuncGetUTCHours(ExecState* exec, JSObject*, JSValue thisValue, const ArgList&)
    688688{
    689689    if (!thisValue.isObject(&DateInstance::info))
     
    702702}
    703703
    704 JSValuePtr dateProtoFuncGetMinutes(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList&)
     704JSValue dateProtoFuncGetMinutes(ExecState* exec, JSObject*, JSValue thisValue, const ArgList&)
    705705{
    706706    if (!thisValue.isObject(&DateInstance::info))
     
    719719}
    720720
    721 JSValuePtr dateProtoFuncGetUTCMinutes(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList&)
     721JSValue dateProtoFuncGetUTCMinutes(ExecState* exec, JSObject*, JSValue thisValue, const ArgList&)
    722722{
    723723    if (!thisValue.isObject(&DateInstance::info))
     
    736736}
    737737
    738 JSValuePtr dateProtoFuncGetSeconds(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList&)
     738JSValue dateProtoFuncGetSeconds(ExecState* exec, JSObject*, JSValue thisValue, const ArgList&)
    739739{
    740740    if (!thisValue.isObject(&DateInstance::info))
     
    753753}
    754754
    755 JSValuePtr dateProtoFuncGetUTCSeconds(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList&)
     755JSValue dateProtoFuncGetUTCSeconds(ExecState* exec, JSObject*, JSValue thisValue, const ArgList&)
    756756{
    757757    if (!thisValue.isObject(&DateInstance::info))
     
    770770}
    771771
    772 JSValuePtr dateProtoFuncGetMilliSeconds(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList&)
     772JSValue dateProtoFuncGetMilliSeconds(ExecState* exec, JSObject*, JSValue thisValue, const ArgList&)
    773773{
    774774    if (!thisValue.isObject(&DateInstance::info))
     
    785785}
    786786
    787 JSValuePtr dateProtoFuncGetUTCMilliseconds(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList&)
     787JSValue dateProtoFuncGetUTCMilliseconds(ExecState* exec, JSObject*, JSValue thisValue, const ArgList&)
    788788{
    789789    if (!thisValue.isObject(&DateInstance::info))
     
    800800}
    801801
    802 JSValuePtr dateProtoFuncGetTimezoneOffset(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList&)
     802JSValue dateProtoFuncGetTimezoneOffset(ExecState* exec, JSObject*, JSValue thisValue, const ArgList&)
    803803{
    804804    if (!thisValue.isObject(&DateInstance::info))
     
    817817}
    818818
    819 JSValuePtr dateProtoFuncSetTime(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
     819JSValue dateProtoFuncSetTime(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
    820820{
    821821    if (!thisValue.isObject(&DateInstance::info))
     
    825825
    826826    double milli = timeClip(args.at(0).toNumber(exec));
    827     JSValuePtr result = jsNumber(exec, milli);
     827    JSValue result = jsNumber(exec, milli);
    828828    thisDateObj->setInternalValue(result);
    829829    return result;
    830830}
    831831
    832 static JSValuePtr setNewValueFromTimeArgs(ExecState* exec, JSValuePtr thisValue, const ArgList& args, int numArgsToUse, bool inputIsUTC)
     832static JSValue setNewValueFromTimeArgs(ExecState* exec, JSValue thisValue, const ArgList& args, int numArgsToUse, bool inputIsUTC)
    833833{
    834834    if (!thisValue.isObject(&DateInstance::info))
     
    839839   
    840840    if (args.isEmpty() || isnan(milli)) {
    841         JSValuePtr result = jsNaN(exec);
     841        JSValue result = jsNaN(exec);
    842842        thisDateObj->setInternalValue(result);
    843843        return result;
     
    851851
    852852    if (!fillStructuresUsingTimeArgs(exec, args, numArgsToUse, &ms, &t)) {
    853         JSValuePtr result = jsNaN(exec);
     853        JSValue result = jsNaN(exec);
    854854        thisDateObj->setInternalValue(result);
    855855        return result;
    856856    }
    857857   
    858     JSValuePtr result = jsNumber(exec, gregorianDateTimeToMS(t, ms, inputIsUTC));
     858    JSValue result = jsNumber(exec, gregorianDateTimeToMS(t, ms, inputIsUTC));
    859859    thisDateObj->setInternalValue(result);
    860860    return result;
    861861}
    862862
    863 static JSValuePtr setNewValueFromDateArgs(ExecState* exec, JSValuePtr thisValue, const ArgList& args, int numArgsToUse, bool inputIsUTC)
     863static JSValue setNewValueFromDateArgs(ExecState* exec, JSValue thisValue, const ArgList& args, int numArgsToUse, bool inputIsUTC)
    864864{
    865865    if (!thisValue.isObject(&DateInstance::info))
     
    868868    DateInstance* thisDateObj = asDateInstance(thisValue);
    869869    if (args.isEmpty()) {
    870         JSValuePtr result = jsNaN(exec);
     870        JSValue result = jsNaN(exec);
    871871        thisDateObj->setInternalValue(result);
    872872        return result;
     
    888888   
    889889    if (!fillStructuresUsingDateArgs(exec, args, numArgsToUse, &ms, &t)) {
    890         JSValuePtr result = jsNaN(exec);
     890        JSValue result = jsNaN(exec);
    891891        thisDateObj->setInternalValue(result);
    892892        return result;
    893893    }
    894894           
    895     JSValuePtr result = jsNumber(exec, gregorianDateTimeToMS(t, ms, inputIsUTC));
     895    JSValue result = jsNumber(exec, gregorianDateTimeToMS(t, ms, inputIsUTC));
    896896    thisDateObj->setInternalValue(result);
    897897    return result;
    898898}
    899899
    900 JSValuePtr dateProtoFuncSetMilliSeconds(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
     900JSValue dateProtoFuncSetMilliSeconds(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
    901901{
    902902    const bool inputIsUTC = false;
     
    904904}
    905905
    906 JSValuePtr dateProtoFuncSetUTCMilliseconds(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
     906JSValue dateProtoFuncSetUTCMilliseconds(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
    907907{
    908908    const bool inputIsUTC = true;
     
    910910}
    911911
    912 JSValuePtr dateProtoFuncSetSeconds(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
     912JSValue dateProtoFuncSetSeconds(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
    913913{
    914914    const bool inputIsUTC = false;
     
    916916}
    917917
    918 JSValuePtr dateProtoFuncSetUTCSeconds(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
     918JSValue dateProtoFuncSetUTCSeconds(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
    919919{
    920920    const bool inputIsUTC = true;
     
    922922}
    923923
    924 JSValuePtr dateProtoFuncSetMinutes(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
     924JSValue dateProtoFuncSetMinutes(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
    925925{
    926926    const bool inputIsUTC = false;
     
    928928}
    929929
    930 JSValuePtr dateProtoFuncSetUTCMinutes(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
     930JSValue dateProtoFuncSetUTCMinutes(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
    931931{
    932932    const bool inputIsUTC = true;
     
    934934}
    935935
    936 JSValuePtr dateProtoFuncSetHours(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
     936JSValue dateProtoFuncSetHours(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
    937937{
    938938    const bool inputIsUTC = false;
     
    940940}
    941941
    942 JSValuePtr dateProtoFuncSetUTCHours(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
     942JSValue dateProtoFuncSetUTCHours(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
    943943{
    944944    const bool inputIsUTC = true;
     
    946946}
    947947
    948 JSValuePtr dateProtoFuncSetDate(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
     948JSValue dateProtoFuncSetDate(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
    949949{
    950950    const bool inputIsUTC = false;
     
    952952}
    953953
    954 JSValuePtr dateProtoFuncSetUTCDate(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
     954JSValue dateProtoFuncSetUTCDate(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
    955955{
    956956    const bool inputIsUTC = true;
     
    958958}
    959959
    960 JSValuePtr dateProtoFuncSetMonth(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
     960JSValue dateProtoFuncSetMonth(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
    961961{
    962962    const bool inputIsUTC = false;
     
    964964}
    965965
    966 JSValuePtr dateProtoFuncSetUTCMonth(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
     966JSValue dateProtoFuncSetUTCMonth(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
    967967{
    968968    const bool inputIsUTC = true;
     
    970970}
    971971
    972 JSValuePtr dateProtoFuncSetFullYear(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
     972JSValue dateProtoFuncSetFullYear(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
    973973{
    974974    const bool inputIsUTC = false;
     
    976976}
    977977
    978 JSValuePtr dateProtoFuncSetUTCFullYear(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
     978JSValue dateProtoFuncSetUTCFullYear(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
    979979{
    980980    const bool inputIsUTC = true;
     
    982982}
    983983
    984 JSValuePtr dateProtoFuncSetYear(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
     984JSValue dateProtoFuncSetYear(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
    985985{
    986986    if (!thisValue.isObject(&DateInstance::info))
     
    991991    DateInstance* thisDateObj = asDateInstance(thisValue);     
    992992    if (args.isEmpty()) {
    993         JSValuePtr result = jsNaN(exec);
     993        JSValue result = jsNaN(exec);
    994994        thisDateObj->setInternalValue(result);
    995995        return result;
     
    10131013    int32_t year = args.at(0).toInt32(exec, ok);
    10141014    if (!ok) {
    1015         JSValuePtr result = jsNaN(exec);
     1015        JSValue result = jsNaN(exec);
    10161016        thisDateObj->setInternalValue(result);
    10171017        return result;
     
    10191019           
    10201020    t.year = (year > 99 || year < 0) ? year - 1900 : year;
    1021     JSValuePtr result = jsNumber(exec, gregorianDateTimeToMS(t, ms, utc));
     1021    JSValue result = jsNumber(exec, gregorianDateTimeToMS(t, ms, utc));
    10221022    thisDateObj->setInternalValue(result);
    10231023    return result;
    10241024}
    10251025
    1026 JSValuePtr dateProtoFuncGetYear(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList&)
     1026JSValue dateProtoFuncGetYear(ExecState* exec, JSObject*, JSValue thisValue, const ArgList&)
    10271027{
    10281028    if (!thisValue.isObject(&DateInstance::info))
  • trunk/JavaScriptCore/runtime/DatePrototype.h

    r39670 r43122  
    3737        static const ClassInfo info;
    3838
    39         static PassRefPtr<Structure> createStructure(JSValuePtr prototype)
     39        static PassRefPtr<Structure> createStructure(JSValue prototype)
    4040        {
    4141            return Structure::create(prototype, TypeInfo(ObjectType));
  • trunk/JavaScriptCore/runtime/ErrorConstructor.cpp

    r42989 r43122  
    5959
    6060// ECMA 15.9.2
    61 static JSValuePtr callErrorConstructor(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args)
     61static JSValue callErrorConstructor(ExecState* exec, JSObject*, JSValue, const ArgList& args)
    6262{
    6363    // "Error()" gives the sames result as "new Error()"
  • trunk/JavaScriptCore/runtime/ErrorPrototype.cpp

    r40046 r43122  
    3131ASSERT_CLASS_FITS_IN_CELL(ErrorPrototype);
    3232
    33 static JSValuePtr errorProtoFuncToString(ExecState*, JSObject*, JSValuePtr, const ArgList&);
     33static JSValue errorProtoFuncToString(ExecState*, JSObject*, JSValue, const ArgList&);
    3434
    3535// ECMA 15.9.4
     
    4545}
    4646
    47 JSValuePtr errorProtoFuncToString(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList&)
     47JSValue errorProtoFuncToString(ExecState* exec, JSObject*, JSValue thisValue, const ArgList&)
    4848{
    4949    JSObject* thisObj = thisValue.toThisObject(exec);
     
    5151    UString s = "Error";
    5252
    53     JSValuePtr v = thisObj->get(exec, exec->propertyNames().name);
     53    JSValue v = thisObj->get(exec, exec->propertyNames().name);
    5454    if (!v.isUndefined())
    5555        s = v.toString(exec);
  • trunk/JavaScriptCore/runtime/ExceptionHelpers.cpp

    r41912 r43122  
    5252};
    5353
    54 JSValuePtr createInterruptedExecutionException(JSGlobalData* globalData)
     54JSValue createInterruptedExecutionException(JSGlobalData* globalData)
    5555{
    5656    return new (globalData) InterruptedExecutionError(globalData);
    5757}
    5858
    59 static JSValuePtr createError(ExecState* exec, ErrorType e, const char* msg)
     59static JSValue createError(ExecState* exec, ErrorType e, const char* msg)
    6060{
    6161    return Error::create(exec, e, msg, -1, -1, 0);
    6262}
    6363
    64 JSValuePtr createStackOverflowError(ExecState* exec)
     64JSValue createStackOverflowError(ExecState* exec)
    6565{
    6666    return createError(exec, RangeError, "Maximum call stack size exceeded.");
    6767}
    6868
    69 JSValuePtr createUndefinedVariableError(ExecState* exec, const Identifier& ident, unsigned bytecodeOffset, CodeBlock* codeBlock)
     69JSValue createUndefinedVariableError(ExecState* exec, const Identifier& ident, unsigned bytecodeOffset, CodeBlock* codeBlock)
    7070{
    7171    int startOffset = 0;
     
    8282}
    8383   
    84 static UString createErrorMessage(ExecState* exec, CodeBlock* codeBlock, int, int expressionStart, int expressionStop, JSValuePtr value, UString error)
     84static UString createErrorMessage(ExecState* exec, CodeBlock* codeBlock, int, int expressionStart, int expressionStop, JSValue value, UString error)
    8585{
    8686    if (!expressionStop || expressionStart > codeBlock->source()->length()) {
     
    126126}
    127127
    128 JSObject* createInvalidParamError(ExecState* exec, const char* op, JSValuePtr value, unsigned bytecodeOffset, CodeBlock* codeBlock)
     128JSObject* createInvalidParamError(ExecState* exec, const char* op, JSValue value, unsigned bytecodeOffset, CodeBlock* codeBlock)
    129129{
    130130    UString message = "not a valid argument for '";
     
    144144}
    145145
    146 JSObject* createNotAConstructorError(ExecState* exec, JSValuePtr value, unsigned bytecodeOffset, CodeBlock* codeBlock)
     146JSObject* createNotAConstructorError(ExecState* exec, JSValue value, unsigned bytecodeOffset, CodeBlock* codeBlock)
    147147{
    148148    int startOffset = 0;
     
    165165}
    166166
    167 JSValuePtr createNotAFunctionError(ExecState* exec, JSValuePtr value, unsigned bytecodeOffset, CodeBlock* codeBlock)
     167JSValue createNotAFunctionError(ExecState* exec, JSValue value, unsigned bytecodeOffset, CodeBlock* codeBlock)
    168168{
    169169    int startOffset = 0;
  • trunk/JavaScriptCore/runtime/ExceptionHelpers.h

    r39670 r43122  
    4141    class JSNotAnObjectErrorStub;
    4242    class JSObject;
    43     class JSValuePtr;
     43    class JSValue;
    4444    class Node;
    4545
    46     JSValuePtr createInterruptedExecutionException(JSGlobalData*);
    47     JSValuePtr createStackOverflowError(ExecState*);
    48     JSValuePtr createUndefinedVariableError(ExecState*, const Identifier&, unsigned bytecodeOffset, CodeBlock*);
     46    JSValue createInterruptedExecutionException(JSGlobalData*);
     47    JSValue createStackOverflowError(ExecState*);
     48    JSValue createUndefinedVariableError(ExecState*, const Identifier&, unsigned bytecodeOffset, CodeBlock*);
    4949    JSNotAnObjectErrorStub* createNotAnObjectErrorStub(ExecState*, bool isNull);
    50     JSObject* createInvalidParamError(ExecState*, const char* op, JSValuePtr, unsigned bytecodeOffset, CodeBlock*);
    51     JSObject* createNotAConstructorError(ExecState*, JSValuePtr, unsigned bytecodeOffset, CodeBlock*);
    52     JSValuePtr createNotAFunctionError(ExecState*, JSValuePtr, unsigned bytecodeOffset, CodeBlock*);
     50    JSObject* createInvalidParamError(ExecState*, const char* op, JSValue, unsigned bytecodeOffset, CodeBlock*);
     51    JSObject* createNotAConstructorError(ExecState*, JSValue, unsigned bytecodeOffset, CodeBlock*);
     52    JSValue createNotAFunctionError(ExecState*, JSValue, unsigned bytecodeOffset, CodeBlock*);
    5353    JSObject* createNotAnObjectError(ExecState*, JSNotAnObjectErrorStub*, unsigned bytecodeOffset, CodeBlock*);
    5454
  • trunk/JavaScriptCore/runtime/FunctionConstructor.cpp

    r42989 r43122  
    5555}
    5656
    57 static JSValuePtr callFunctionConstructor(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args)
     57static JSValue callFunctionConstructor(ExecState* exec, JSObject*, JSValue, const ArgList& args)
    5858{
    5959    return constructFunction(exec, args);
  • trunk/JavaScriptCore/runtime/FunctionPrototype.cpp

    r43037 r43122  
    3434ASSERT_CLASS_FITS_IN_CELL(FunctionPrototype);
    3535
    36 static JSValuePtr functionProtoFuncToString(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    37 static JSValuePtr functionProtoFuncApply(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    38 static JSValuePtr functionProtoFuncCall(ExecState*, JSObject*, JSValuePtr, const ArgList&);
     36static JSValue functionProtoFuncToString(ExecState*, JSObject*, JSValue, const ArgList&);
     37static JSValue functionProtoFuncApply(ExecState*, JSObject*, JSValue, const ArgList&);
     38static JSValue functionProtoFuncCall(ExecState*, JSObject*, JSValue, const ArgList&);
    3939
    4040FunctionPrototype::FunctionPrototype(ExecState* exec, PassRefPtr<Structure> structure)
     
    5353}
    5454
    55 static JSValuePtr callFunctionPrototype(ExecState*, JSObject*, JSValuePtr, const ArgList&)
     55static JSValue callFunctionPrototype(ExecState*, JSObject*, JSValue, const ArgList&)
    5656{
    5757    return jsUndefined();
     
    8383}
    8484
    85 JSValuePtr functionProtoFuncToString(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList&)
     85JSValue functionProtoFuncToString(ExecState* exec, JSObject*, JSValue thisValue, const ArgList&)
    8686{
    8787    if (thisValue.isObject(&JSFunction::info)) {
     
    100100}
    101101
    102 JSValuePtr functionProtoFuncApply(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
     102JSValue functionProtoFuncApply(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
    103103{
    104104    CallData callData;
     
    107107        return throwError(exec, TypeError);
    108108
    109     JSValuePtr array = args.at(1);
     109    JSValue array = args.at(1);
    110110
    111111    MarkedArgumentBuffer applyArgs;
     
    128128}
    129129
    130 JSValuePtr functionProtoFuncCall(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
     130JSValue functionProtoFuncCall(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
    131131{
    132132    CallData callData;
  • trunk/JavaScriptCore/runtime/FunctionPrototype.h

    r42337 r43122  
    3333        void addFunctionProperties(ExecState*, Structure* prototypeFunctionStructure, PrototypeFunction** callFunction, PrototypeFunction** applyFunction);
    3434
    35         static PassRefPtr<Structure> createStructure(JSValuePtr proto)
     35        static PassRefPtr<Structure> createStructure(JSValue proto)
    3636        {
    3737            return Structure::create(proto, TypeInfo(ObjectType, HasStandardGetOwnPropertySlot));
  • trunk/JavaScriptCore/runtime/GetterSetter.cpp

    r40046 r43122  
    3939}
    4040
    41 JSValuePtr GetterSetter::toPrimitive(ExecState*, PreferredPrimitiveType) const
     41JSValue GetterSetter::toPrimitive(ExecState*, PreferredPrimitiveType) const
    4242{
    4343    ASSERT_NOT_REACHED();
     
    4545}
    4646
    47 bool GetterSetter::getPrimitiveNumber(ExecState*, double& number, JSValuePtr& value)
     47bool GetterSetter::getPrimitiveNumber(ExecState*, double& number, JSValue& value)
    4848{
    4949    ASSERT_NOT_REACHED();
  • trunk/JavaScriptCore/runtime/GetterSetter.h

    r39670 r43122  
    5151        virtual bool isGetterSetter() const;
    5252
    53         virtual JSValuePtr toPrimitive(ExecState*, PreferredPrimitiveType) const;
    54         virtual bool getPrimitiveNumber(ExecState*, double& number, JSValuePtr& value);
     53        virtual JSValue toPrimitive(ExecState*, PreferredPrimitiveType) const;
     54        virtual bool getPrimitiveNumber(ExecState*, double& number, JSValue& value);
    5555        virtual bool toBoolean(ExecState*) const;
    5656        virtual double toNumber(ExecState*) const;
     
    6262    };
    6363
    64     GetterSetter* asGetterSetter(JSValuePtr);
     64    GetterSetter* asGetterSetter(JSValue);
    6565
    66     inline GetterSetter* asGetterSetter(JSValuePtr value)
     66    inline GetterSetter* asGetterSetter(JSValue value)
    6767    {
    6868        ASSERT(asCell(value)->isGetterSetter());
  • trunk/JavaScriptCore/runtime/InternalFunction.cpp

    r43006 r43122  
    5151const UString InternalFunction::displayName(JSGlobalData* globalData)
    5252{
    53     JSValuePtr displayName = getDirect(globalData->propertyNames->displayName);
     53    JSValue displayName = getDirect(globalData->propertyNames->displayName);
    5454   
    5555    if (displayName && isJSString(globalData, displayName))
  • trunk/JavaScriptCore/runtime/InternalFunction.h

    r42680 r43122  
    4141        const UString calculatedDisplayName(JSGlobalData*);
    4242
    43         static PassRefPtr<Structure> createStructure(JSValuePtr proto)
     43        static PassRefPtr<Structure> createStructure(JSValue proto)
    4444        {
    4545            return Structure::create(proto, TypeInfo(ObjectType, ImplementsHasInstance | HasStandardGetOwnPropertySlot));
     
    5454    };
    5555
    56     InternalFunction* asInternalFunction(JSValuePtr);
     56    InternalFunction* asInternalFunction(JSValue);
    5757
    58     inline InternalFunction* asInternalFunction(JSValuePtr value)
     58    inline InternalFunction* asInternalFunction(JSValue value)
    5959    {
    6060        ASSERT(asObject(value)->inherits(&InternalFunction::info));
  • trunk/JavaScriptCore/runtime/JSActivation.cpp

    r40046 r43122  
    8686        return true;
    8787
    88     if (JSValuePtr* location = getDirectLocation(propertyName)) {
     88    if (JSValue* location = getDirectLocation(propertyName)) {
    8989        slot.setValueSlot(location);
    9090        return true;
     
    104104}
    105105
    106 void JSActivation::put(ExecState*, const Identifier& propertyName, JSValuePtr value, PutPropertySlot& slot)
     106void JSActivation::put(ExecState*, const Identifier& propertyName, JSValue value, PutPropertySlot& slot)
    107107{
    108108    ASSERT(!Heap::heap(value) || Heap::heap(value) == Heap::heap(this));
     
    119119
    120120// FIXME: Make this function honor ReadOnly (const) and DontEnum
    121 void JSActivation::putWithAttributes(ExecState*, const Identifier& propertyName, JSValuePtr value, unsigned attributes)
     121void JSActivation::putWithAttributes(ExecState*, const Identifier& propertyName, JSValue value, unsigned attributes)
    122122{
    123123    ASSERT(!Heap::heap(value) || Heap::heap(value) == Heap::heap(this));
     
    152152}
    153153
    154 JSValuePtr JSActivation::argumentsGetter(ExecState* exec, const Identifier&, const PropertySlot& slot)
     154JSValue JSActivation::argumentsGetter(ExecState* exec, const Identifier&, const PropertySlot& slot)
    155155{
    156156    JSActivation* activation = asActivation(slot.slotBase());
  • trunk/JavaScriptCore/runtime/JSActivation.h

    r40332 r43122  
    5555        virtual bool getOwnPropertySlot(ExecState*, const Identifier&, PropertySlot&);
    5656
    57         virtual void put(ExecState*, const Identifier&, JSValuePtr, PutPropertySlot&);
     57        virtual void put(ExecState*, const Identifier&, JSValue, PutPropertySlot&);
    5858
    59         virtual void putWithAttributes(ExecState*, const Identifier&, JSValuePtr, unsigned attributes);
     59        virtual void putWithAttributes(ExecState*, const Identifier&, JSValue, unsigned attributes);
    6060        virtual bool deleteProperty(ExecState*, const Identifier& propertyName);
    6161
     
    6767        static const ClassInfo info;
    6868
    69         static PassRefPtr<Structure> createStructure(JSValuePtr proto) { return Structure::create(proto, TypeInfo(ObjectType, NeedsThisConversion)); }
     69        static PassRefPtr<Structure> createStructure(JSValue proto) { return Structure::create(proto, TypeInfo(ObjectType, NeedsThisConversion)); }
    7070
    7171    private:
     
    8080        };
    8181       
    82         static JSValuePtr argumentsGetter(ExecState*, const Identifier&, const PropertySlot&);
     82        static JSValue argumentsGetter(ExecState*, const Identifier&, const PropertySlot&);
    8383        NEVER_INLINE PropertySlot::GetValueFunc getArgumentsGetter();
    8484
     
    8686    };
    8787
    88     JSActivation* asActivation(JSValuePtr);
     88    JSActivation* asActivation(JSValue);
    8989
    90     inline JSActivation* asActivation(JSValuePtr value)
     90    inline JSActivation* asActivation(JSValue value)
    9191    {
    9292        ASSERT(asObject(value)->inherits(&JSActivation::info));
  • trunk/JavaScriptCore/runtime/JSArray.cpp

    r43037 r43122  
    6868// The definition of MAX_STORAGE_VECTOR_LENGTH is dependant on the definition storageSize
    6969// function below - the MAX_STORAGE_VECTOR_LENGTH limit is defined such that the storage
    70 // size calculation cannot overflow.  (sizeof(ArrayStorage) - sizeof(JSValuePtr)) +
    71 // (vectorLength * sizeof(JSValuePtr)) must be <= 0xFFFFFFFFU (which is maximum value of size_t).
    72 #define MAX_STORAGE_VECTOR_LENGTH static_cast<unsigned>((0xFFFFFFFFU - (sizeof(ArrayStorage) - sizeof(JSValuePtr))) / sizeof(JSValuePtr))
     70// size calculation cannot overflow.  (sizeof(ArrayStorage) - sizeof(JSValue)) +
     71// (vectorLength * sizeof(JSValue)) must be <= 0xFFFFFFFFU (which is maximum value of size_t).
     72#define MAX_STORAGE_VECTOR_LENGTH static_cast<unsigned>((0xFFFFFFFFU - (sizeof(ArrayStorage) - sizeof(JSValue))) / sizeof(JSValue))
    7373
    7474// These values have to be macros to be used in max() and min() without introducing
     
    9393    // MAX_STORAGE_VECTOR_LENGTH is defined such that provided (vectorLength <= MAX_STORAGE_VECTOR_LENGTH)
    9494    // - as asserted above - the following calculation cannot overflow.
    95     size_t size = (sizeof(ArrayStorage) - sizeof(JSValuePtr)) + (vectorLength * sizeof(JSValuePtr));
     95    size_t size = (sizeof(ArrayStorage) - sizeof(JSValue)) + (vectorLength * sizeof(JSValue));
    9696    // Assertion to detect integer overflow in previous calculation (should not be possible, provided that
    9797    // MAX_STORAGE_VECTOR_LENGTH is correctly defined).
    98     ASSERT(((size - (sizeof(ArrayStorage) - sizeof(JSValuePtr))) / sizeof(JSValuePtr) == vectorLength) && (size >= (sizeof(ArrayStorage) - sizeof(JSValuePtr))));
     98    ASSERT(((size - (sizeof(ArrayStorage) - sizeof(JSValue))) / sizeof(JSValue) == vectorLength) && (size >= (sizeof(ArrayStorage) - sizeof(JSValue))));
    9999
    100100    return size;
     
    152152    m_storage->m_length = initialLength;
    153153
    154     Heap::heap(this)->reportExtraMemoryCost(initialCapacity * sizeof(JSValuePtr));
     154    Heap::heap(this)->reportExtraMemoryCost(initialCapacity * sizeof(JSValue));
    155155
    156156    checkConsistency();
     
    202202
    203203    if (i < storage->m_vectorLength) {
    204         JSValuePtr& valueSlot = storage->m_vector[i];
     204        JSValue& valueSlot = storage->m_vector[i];
    205205        if (valueSlot) {
    206206            slot.setValueSlot(&valueSlot);
     
    236236
    237237// ECMA 15.4.5.1
    238 void JSArray::put(ExecState* exec, const Identifier& propertyName, JSValuePtr value, PutPropertySlot& slot)
     238void JSArray::put(ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot)
    239239{
    240240    bool isArrayIndex;
     
    258258}
    259259
    260 void JSArray::put(ExecState* exec, unsigned i, JSValuePtr value)
     260void JSArray::put(ExecState* exec, unsigned i, JSValue value)
    261261{
    262262    checkConsistency();
     
    269269
    270270    if (i < m_storage->m_vectorLength) {
    271         JSValuePtr& valueSlot = m_storage->m_vector[i];
     271        JSValue& valueSlot = m_storage->m_vector[i];
    272272        if (valueSlot) {
    273273            valueSlot = value;
     
    285285}
    286286
    287 NEVER_INLINE void JSArray::putSlowCase(ExecState* exec, unsigned i, JSValuePtr value)
     287NEVER_INLINE void JSArray::putSlowCase(ExecState* exec, unsigned i, JSValue value)
    288288{
    289289    ArrayStorage* storage = m_storage;
     
    396396
    397397    if (i < storage->m_vectorLength) {
    398         JSValuePtr& valueSlot = storage->m_vector[i];
     398        JSValue& valueSlot = storage->m_vector[i];
    399399        if (!valueSlot) {
    400400            checkConsistency();
     
    491491        unsigned usedVectorLength = min(length, storage->m_vectorLength);
    492492        for (unsigned i = newLength; i < usedVectorLength; ++i) {
    493             JSValuePtr& valueSlot = storage->m_vector[i];
     493            JSValue& valueSlot = storage->m_vector[i];
    494494            bool hadValue = valueSlot;
    495495            valueSlot = noValue();
     
    516516}
    517517
    518 JSValuePtr JSArray::pop()
     518JSValue JSArray::pop()
    519519{
    520520    checkConsistency();
     
    526526    --length;
    527527
    528     JSValuePtr result;
     528    JSValue result;
    529529
    530530    if (m_fastAccessCutoff > length) {
    531         JSValuePtr& valueSlot = m_storage->m_vector[length];
     531        JSValue& valueSlot = m_storage->m_vector[length];
    532532        result = valueSlot;
    533533        ASSERT(result);
     
    536536        m_fastAccessCutoff = length;
    537537    } else if (length < m_storage->m_vectorLength) {
    538         JSValuePtr& valueSlot = m_storage->m_vector[length];
     538        JSValue& valueSlot = m_storage->m_vector[length];
    539539        result = valueSlot;
    540540        valueSlot = noValue();
     
    565565}
    566566
    567 void JSArray::push(ExecState* exec, JSValuePtr value)
     567void JSArray::push(ExecState* exec, JSValue value)
    568568{
    569569    checkConsistency();
     
    605605    unsigned usedVectorLength = min(storage->m_length, storage->m_vectorLength);
    606606    for (unsigned i = 0; i < usedVectorLength; ++i) {
    607         JSValuePtr value = storage->m_vector[i];
     607        JSValue value = storage->m_vector[i];
    608608        if (value && !value.marked())
    609609            value.mark();
     
    613613        SparseArrayValueMap::iterator end = map->end();
    614614        for (SparseArrayValueMap::iterator it = map->begin(); it != end; ++it) {
    615             JSValuePtr value = it->second;
     615            JSValue value = it->second;
    616616            if (!value.marked())
    617617                value.mark();
     
    622622static int compareNumbersForQSort(const void* a, const void* b)
    623623{
    624     double da = static_cast<const JSValuePtr*>(a)->uncheckedGetNumber();
    625     double db = static_cast<const JSValuePtr*>(b)->uncheckedGetNumber();
     624    double da = static_cast<const JSValue*>(a)->uncheckedGetNumber();
     625    double db = static_cast<const JSValue*>(b)->uncheckedGetNumber();
    626626    return (da > db) - (da < db);
    627627}
    628628
    629 typedef std::pair<JSValuePtr, UString> ValueStringPair;
     629typedef std::pair<JSValue, UString> ValueStringPair;
    630630
    631631static int compareByStringPairForQSort(const void* a, const void* b)
     
    636636}
    637637
    638 void JSArray::sortNumeric(ExecState* exec, JSValuePtr compareFunction, CallType callType, const CallData& callData)
     638void JSArray::sortNumeric(ExecState* exec, JSValue compareFunction, CallType callType, const CallData& callData)
    639639{
    640640    unsigned lengthNotIncludingUndefined = compactForSorting();
     
    662662    // also don't require mergesort's stability, since there's no user visible
    663663    // side-effect from swapping the order of equal primitive values.
    664     qsort(m_storage->m_vector, size, sizeof(JSValuePtr), compareNumbersForQSort);
     664    qsort(m_storage->m_vector, size, sizeof(JSValue), compareNumbersForQSort);
    665665
    666666    checkConsistency(SortConsistencyCheck);
     
    690690
    691691    for (size_t i = 0; i < lengthNotIncludingUndefined; i++) {
    692         JSValuePtr value = m_storage->m_vector[i];
     692        JSValue value = m_storage->m_vector[i];
    693693        ASSERT(!value.isUndefined());
    694694        values[i].first = value;
     
    728728
    729729struct AVLTreeNodeForArrayCompare {
    730     JSValuePtr value;
     730    JSValue value;
    731731
    732732    // Child pointers.  The high bit of gt is robbed and used as the
     
    739739struct AVLTreeAbstractorForArrayCompare {
    740740    typedef int32_t handle; // Handle is an index into m_nodes vector.
    741     typedef JSValuePtr key;
     741    typedef JSValue key;
    742742    typedef int32_t size;
    743743
    744744    Vector<AVLTreeNodeForArrayCompare> m_nodes;
    745745    ExecState* m_exec;
    746     JSValuePtr m_compareFunction;
     746    JSValue m_compareFunction;
    747747    CallType m_compareCallType;
    748748    const CallData* m_compareCallData;
    749     JSValuePtr m_globalThisValue;
     749    JSValue m_globalThisValue;
    750750    OwnPtr<CachedCall> m_cachedCall;
    751751
     
    805805};
    806806
    807 void JSArray::sort(ExecState* exec, JSValuePtr compareFunction, CallType callType, const CallData& callData)
     807void JSArray::sort(ExecState* exec, JSValue compareFunction, CallType callType, const CallData& callData)
    808808{
    809809    checkConsistency();
     
    846846    // Iterate over the array, ignoring missing values, counting undefined ones, and inserting all other ones into the tree.
    847847    for (; numDefined < usedVectorLength; ++numDefined) {
    848         JSValuePtr v = m_storage->m_vector[numDefined];
     848        JSValue v = m_storage->m_vector[numDefined];
    849849        if (!v || v.isUndefined())
    850850            break;
     
    853853    }
    854854    for (unsigned i = numDefined; i < usedVectorLength; ++i) {
    855         JSValuePtr v = m_storage->m_vector[i];
     855        JSValue v = m_storage->m_vector[i];
    856856        if (v) {
    857857            if (v.isUndefined())
     
    950950
    951951    for (; numDefined < usedVectorLength; ++numDefined) {
    952         JSValuePtr v = storage->m_vector[numDefined];
     952        JSValue v = storage->m_vector[numDefined];
    953953        if (!v || v.isUndefined())
    954954            break;
    955955    }
    956956    for (unsigned i = numDefined; i < usedVectorLength; ++i) {
    957         JSValuePtr v = storage->m_vector[i];
     957        JSValue v = storage->m_vector[i];
    958958        if (v) {
    959959            if (v.isUndefined())
     
    10201020    unsigned numValuesInVector = 0;
    10211021    for (unsigned i = 0; i < m_storage->m_vectorLength; ++i) {
    1022         if (JSValuePtr value = m_storage->m_vector[i]) {
     1022        if (JSValue value = m_storage->m_vector[i]) {
    10231023            ASSERT(i < m_storage->m_length);
    10241024            if (type != DestructorConsistencyCheck)
     
    10591059}
    10601060
    1061 JSArray* constructArray(ExecState* exec, JSValuePtr singleItemValue)
     1061JSArray* constructArray(ExecState* exec, JSValue singleItemValue)
    10621062{
    10631063    MarkedArgumentBuffer values;
  • trunk/JavaScriptCore/runtime/JSArray.h

    r43037 r43122  
    2626namespace JSC {
    2727
    28     typedef HashMap<unsigned, JSValuePtr> SparseArrayValueMap;
     28    typedef HashMap<unsigned, JSValue> SparseArrayValueMap;
    2929
    3030    struct ArrayStorage {
     
    3434        SparseArrayValueMap* m_sparseValueMap;
    3535        void* lazyCreationData; // A JSArray subclass can use this to fill the vector lazily.
    36         JSValuePtr m_vector[1];
     36        JSValue m_vector[1];
    3737    };
    3838
     
    4848        virtual bool getOwnPropertySlot(ExecState*, const Identifier& propertyName, PropertySlot&);
    4949        virtual bool getOwnPropertySlot(ExecState*, unsigned propertyName, PropertySlot&);
    50         virtual void put(ExecState*, unsigned propertyName, JSValuePtr); // FIXME: Make protected and add setItem.
     50        virtual void put(ExecState*, unsigned propertyName, JSValue); // FIXME: Make protected and add setItem.
    5151
    5252        static JS_EXPORTDATA const ClassInfo info;
     
    5656
    5757        void sort(ExecState*);
    58         void sort(ExecState*, JSValuePtr compareFunction, CallType, const CallData&);
    59         void sortNumeric(ExecState*, JSValuePtr compareFunction, CallType, const CallData&);
     58        void sort(ExecState*, JSValue compareFunction, CallType, const CallData&);
     59        void sortNumeric(ExecState*, JSValue compareFunction, CallType, const CallData&);
    6060
    61         void push(ExecState*, JSValuePtr);
    62         JSValuePtr pop();
     61        void push(ExecState*, JSValue);
     62        JSValue pop();
    6363
    6464        bool canGetIndex(unsigned i) { return i < m_fastAccessCutoff; }
    65         JSValuePtr getIndex(unsigned i)
     65        JSValue getIndex(unsigned i)
    6666        {
    6767            ASSERT(canGetIndex(i));
     
    7070
    7171        bool canSetIndex(unsigned i) { return i < m_fastAccessCutoff; }
    72         JSValuePtr setIndex(unsigned i, JSValuePtr v)
     72        JSValue setIndex(unsigned i, JSValue v)
    7373        {
    7474            ASSERT(canSetIndex(i));
     
    7979        void copyToRegisters(ExecState*, Register*, uint32_t);
    8080
    81         static PassRefPtr<Structure> createStructure(JSValuePtr prototype)
     81        static PassRefPtr<Structure> createStructure(JSValue prototype)
    8282        {
    8383            return Structure::create(prototype, TypeInfo(ObjectType));
     
    8585
    8686    protected:
    87         virtual void put(ExecState*, const Identifier& propertyName, JSValuePtr, PutPropertySlot&);
     87        virtual void put(ExecState*, const Identifier& propertyName, JSValue, PutPropertySlot&);
    8888        virtual bool deleteProperty(ExecState*, const Identifier& propertyName);
    8989        virtual bool deleteProperty(ExecState*, unsigned propertyName);
     
    9898
    9999        bool getOwnPropertySlotSlowCase(ExecState*, unsigned propertyName, PropertySlot&);
    100         void putSlowCase(ExecState*, unsigned propertyName, JSValuePtr);
     100        void putSlowCase(ExecState*, unsigned propertyName, JSValue);
    101101
    102102        bool increaseVectorLength(unsigned newLength);
     
    111111    };
    112112
    113     JSArray* asArray(JSValuePtr);
     113    JSArray* asArray(JSValue);
    114114
    115115    JSArray* constructEmptyArray(ExecState*);
    116116    JSArray* constructEmptyArray(ExecState*, unsigned initialLength);
    117     JSArray* constructArray(ExecState*, JSValuePtr singleItemValue);
     117    JSArray* constructArray(ExecState*, JSValue singleItemValue);
    118118    JSArray* constructArray(ExecState*, const ArgList& values);
    119119
    120     inline JSArray* asArray(JSValuePtr value)
     120    inline JSArray* asArray(JSValue value)
    121121    {
    122122        ASSERT(asObject(value)->inherits(&JSArray::info));
     
    124124    }
    125125
    126     inline bool isJSArray(JSGlobalData* globalData, JSValuePtr v) { return v.isCell() && v.asCell()->vptr() == globalData->jsArrayVPtr; }
     126    inline bool isJSArray(JSGlobalData* globalData, JSValue v) { return v.isCell() && v.asCell()->vptr() == globalData->jsArrayVPtr; }
    127127
    128128} // namespace JSC
  • trunk/JavaScriptCore/runtime/JSByteArray.cpp

    r40055 r43122  
    4444}
    4545   
    46 PassRefPtr<Structure> JSByteArray::createStructure(JSValuePtr prototype)
     46PassRefPtr<Structure> JSByteArray::createStructure(JSValue prototype)
    4747{
    4848    PassRefPtr<Structure> result = Structure::create(prototype, TypeInfo(ObjectType));
     
    7070}
    7171
    72 void JSByteArray::put(ExecState* exec, const Identifier& propertyName, JSValuePtr value, PutPropertySlot& slot)
     72void JSByteArray::put(ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot)
    7373{
    7474    bool ok;
     
    8181}
    8282
    83 void JSByteArray::put(ExecState* exec, unsigned propertyName, JSValuePtr value)
     83void JSByteArray::put(ExecState* exec, unsigned propertyName, JSValue value)
    8484{
    8585    setIndex(exec, propertyName, value);
  • trunk/JavaScriptCore/runtime/JSByteArray.h

    r41168 r43122  
    3737    public:
    3838        bool canAccessIndex(unsigned i) { return i < m_storage->length(); }
    39         JSValuePtr getIndex(ExecState* exec, unsigned i)
     39        JSValue getIndex(ExecState* exec, unsigned i)
    4040        {
    4141            ASSERT(canAccessIndex(i));
     
    6565        }
    6666       
    67         void setIndex(ExecState* exec, unsigned i, JSValuePtr value)
     67        void setIndex(ExecState* exec, unsigned i, JSValue value)
    6868        {
    6969            double byteValue = value.toNumber(exec);
     
    7575
    7676        JSByteArray(ExecState* exec, PassRefPtr<Structure>, WTF::ByteArray* storage, const JSC::ClassInfo* = &s_defaultInfo);
    77         static PassRefPtr<Structure> createStructure(JSValuePtr prototype);
     77        static PassRefPtr<Structure> createStructure(JSValue prototype);
    7878       
    7979        virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&);
    8080        virtual bool getOwnPropertySlot(JSC::ExecState*, unsigned propertyName, JSC::PropertySlot&);
    81         virtual void put(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::JSValuePtr, JSC::PutPropertySlot&);
    82         virtual void put(JSC::ExecState*, unsigned propertyName, JSC::JSValuePtr);
     81        virtual void put(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::JSValue, JSC::PutPropertySlot&);
     82        virtual void put(JSC::ExecState*, unsigned propertyName, JSC::JSValue);
    8383
    8484        virtual void getPropertyNames(JSC::ExecState*, JSC::PropertyNameArray&);
     
    103103    };
    104104   
    105     JSByteArray* asByteArray(JSValuePtr value);
    106     inline JSByteArray* asByteArray(JSValuePtr value)
     105    JSByteArray* asByteArray(JSValue value);
     106    inline JSByteArray* asByteArray(JSValue value)
    107107    {
    108108        return static_cast<JSByteArray*>(asCell(value));
    109109    }
    110110
    111     inline bool isJSByteArray(JSGlobalData* globalData, JSValuePtr v) { return v.isCell() && v.asCell()->vptr() == globalData->jsByteArrayVPtr; }
     111    inline bool isJSByteArray(JSGlobalData* globalData, JSValue v) { return v.isCell() && v.asCell()->vptr() == globalData->jsByteArrayVPtr; }
    112112
    113113} // namespace JSC
  • trunk/JavaScriptCore/runtime/JSCell.cpp

    r39851 r43122  
    158158}
    159159
    160 void JSCell::put(ExecState* exec, const Identifier& identifier, JSValuePtr value, PutPropertySlot& slot)
     160void JSCell::put(ExecState* exec, const Identifier& identifier, JSValue value, PutPropertySlot& slot)
    161161{
    162162    toObject(exec)->put(exec, identifier, value, slot);
    163163}
    164164
    165 void JSCell::put(ExecState* exec, unsigned identifier, JSValuePtr value)
     165void JSCell::put(ExecState* exec, unsigned identifier, JSValue value)
    166166{
    167167    toObject(exec)->put(exec, identifier, value);
     
    198198}
    199199
    200 JSValuePtr JSCell::getJSNumber()
     200JSValue JSCell::getJSNumber()
    201201{
    202202    return noValue();
  • trunk/JavaScriptCore/runtime/JSCell.h

    r41168 r43122  
    4040        friend class JSPropertyNameIterator;
    4141        friend class JSString;
    42         friend class JSValuePtr;
     42        friend class JSValue;
    4343        friend class VPtrSet;
    4444
     
    6767
    6868        // Extracting integer values.
    69         // FIXME: remove these methods, can check isNumberCell in JSValuePtr && then call asNumberCell::*.
     69        // FIXME: remove these methods, can check isNumberCell in JSValue && then call asNumberCell::*.
    7070        virtual bool getUInt32(uint32_t&) const;
    7171        virtual bool getTruncatedInt32(int32_t&) const;
     
    7373
    7474        // Basic conversions.
    75         virtual JSValuePtr toPrimitive(ExecState*, PreferredPrimitiveType) const = 0;
    76         virtual bool getPrimitiveNumber(ExecState*, double& number, JSValuePtr&) = 0;
     75        virtual JSValue toPrimitive(ExecState*, PreferredPrimitiveType) const = 0;
     76        virtual bool getPrimitiveNumber(ExecState*, double& number, JSValue&) = 0;
    7777        virtual bool toBoolean(ExecState*) const = 0;
    7878        virtual double toNumber(ExecState*) const = 0;
     
    8989        // Object operations, with the toObject operation included.
    9090        virtual const ClassInfo* classInfo() const;
    91         virtual void put(ExecState*, const Identifier& propertyName, JSValuePtr, PutPropertySlot&);
    92         virtual void put(ExecState*, unsigned propertyName, JSValuePtr);
     91        virtual void put(ExecState*, const Identifier& propertyName, JSValue, PutPropertySlot&);
     92        virtual void put(ExecState*, unsigned propertyName, JSValue);
    9393        virtual bool deleteProperty(ExecState*, const Identifier& propertyName);
    9494        virtual bool deleteProperty(ExecState*, unsigned propertyName);
     
    9797        virtual UString toThisString(ExecState*) const;
    9898        virtual JSString* toThisJSString(ExecState*);
    99         virtual JSValuePtr getJSNumber();
     99        virtual JSValue getJSNumber();
    100100        void* vptr() { return *reinterpret_cast<void**>(this); }
    101101
     
    109109    };
    110110
    111     JSCell* asCell(JSValuePtr);
    112 
    113     inline JSCell* asCell(JSValuePtr value)
     111    JSCell* asCell(JSValue);
     112
     113    inline JSCell* asCell(JSValue value)
    114114    {
    115115        return value.asCell();
     
    155155    }
    156156
    157     ALWAYS_INLINE JSCell* JSValuePtr::asCell() const
     157    ALWAYS_INLINE JSCell* JSValue::asCell() const
    158158    {
    159159        ASSERT(isCell());
     
    172172    // --- JSValue inlines ----------------------------
    173173
    174     inline bool JSValuePtr::isString() const
     174    inline bool JSValue::isString() const
    175175    {
    176176        return !JSImmediate::isImmediate(asValue()) && asCell()->isString();
    177177    }
    178178
    179     inline bool JSValuePtr::isGetterSetter() const
     179    inline bool JSValue::isGetterSetter() const
    180180    {
    181181        return !JSImmediate::isImmediate(asValue()) && asCell()->isGetterSetter();
    182182    }
    183183
    184     inline bool JSValuePtr::isObject() const
     184    inline bool JSValue::isObject() const
    185185    {
    186186        return !JSImmediate::isImmediate(asValue()) && asCell()->isObject();
    187187    }
    188188
    189     inline bool JSValuePtr::getString(UString& s) const
     189    inline bool JSValue::getString(UString& s) const
    190190    {
    191191        return !JSImmediate::isImmediate(asValue()) && asCell()->getString(s);
    192192    }
    193193
    194     inline UString JSValuePtr::getString() const
     194    inline UString JSValue::getString() const
    195195    {
    196196        return JSImmediate::isImmediate(asValue()) ? UString() : asCell()->getString();
    197197    }
    198198
    199     inline JSObject* JSValuePtr::getObject() const
     199    inline JSObject* JSValue::getObject() const
    200200    {
    201201        return JSImmediate::isImmediate(asValue()) ? 0 : asCell()->getObject();
    202202    }
    203203
    204     inline CallType JSValuePtr::getCallData(CallData& callData)
     204    inline CallType JSValue::getCallData(CallData& callData)
    205205    {
    206206        return JSImmediate::isImmediate(asValue()) ? CallTypeNone : asCell()->getCallData(callData);
    207207    }
    208208
    209     inline ConstructType JSValuePtr::getConstructData(ConstructData& constructData)
     209    inline ConstructType JSValue::getConstructData(ConstructData& constructData)
    210210    {
    211211        return JSImmediate::isImmediate(asValue()) ? ConstructTypeNone : asCell()->getConstructData(constructData);
    212212    }
    213213
    214     ALWAYS_INLINE bool JSValuePtr::getUInt32(uint32_t& v) const
     214    ALWAYS_INLINE bool JSValue::getUInt32(uint32_t& v) const
    215215    {
    216216        return JSImmediate::isImmediate(asValue()) ? JSImmediate::getUInt32(asValue(), v) : asCell()->getUInt32(v);
    217217    }
    218218
    219     ALWAYS_INLINE bool JSValuePtr::getTruncatedInt32(int32_t& v) const
     219    ALWAYS_INLINE bool JSValue::getTruncatedInt32(int32_t& v) const
    220220    {
    221221        return JSImmediate::isImmediate(asValue()) ? JSImmediate::getTruncatedInt32(asValue(), v) : asCell()->getTruncatedInt32(v);
    222222    }
    223223
    224     inline bool JSValuePtr::getTruncatedUInt32(uint32_t& v) const
     224    inline bool JSValue::getTruncatedUInt32(uint32_t& v) const
    225225    {
    226226        return JSImmediate::isImmediate(asValue()) ? JSImmediate::getTruncatedUInt32(asValue(), v) : asCell()->getTruncatedUInt32(v);
    227227    }
    228228
    229     inline void JSValuePtr::mark()
     229    inline void JSValue::mark()
    230230    {
    231231        asCell()->mark(); // callers should check !marked() before calling mark(), so this should only be called with cells
    232232    }
    233233
    234     inline bool JSValuePtr::marked() const
     234    inline bool JSValue::marked() const
    235235    {
    236236        return JSImmediate::isImmediate(asValue()) || asCell()->marked();
    237237    }
    238238
    239     inline JSValuePtr JSValuePtr::toPrimitive(ExecState* exec, PreferredPrimitiveType preferredType) const
     239    inline JSValue JSValue::toPrimitive(ExecState* exec, PreferredPrimitiveType preferredType) const
    240240    {
    241241        return JSImmediate::isImmediate(asValue()) ? asValue() : asCell()->toPrimitive(exec, preferredType);
    242242    }
    243243
    244     inline bool JSValuePtr::getPrimitiveNumber(ExecState* exec, double& number, JSValuePtr& value)
     244    inline bool JSValue::getPrimitiveNumber(ExecState* exec, double& number, JSValue& value)
    245245    {
    246246        if (JSImmediate::isImmediate(asValue())) {
     
    252252    }
    253253
    254     inline bool JSValuePtr::toBoolean(ExecState* exec) const
     254    inline bool JSValue::toBoolean(ExecState* exec) const
    255255    {
    256256        return JSImmediate::isImmediate(asValue()) ? JSImmediate::toBoolean(asValue()) : asCell()->toBoolean(exec);
    257257    }
    258258
    259     ALWAYS_INLINE double JSValuePtr::toNumber(ExecState* exec) const
     259    ALWAYS_INLINE double JSValue::toNumber(ExecState* exec) const
    260260    {
    261261        return JSImmediate::isImmediate(asValue()) ? JSImmediate::toDouble(asValue()) : asCell()->toNumber(exec);
    262262    }
    263263
    264     inline UString JSValuePtr::toString(ExecState* exec) const
     264    inline UString JSValue::toString(ExecState* exec) const
    265265    {
    266266        return JSImmediate::isImmediate(asValue()) ? JSImmediate::toString(asValue()) : asCell()->toString(exec);
    267267    }
    268268
    269     inline JSObject* JSValuePtr::toObject(ExecState* exec) const
     269    inline JSObject* JSValue::toObject(ExecState* exec) const
    270270    {
    271271        return JSImmediate::isImmediate(asValue()) ? JSImmediate::toObject(asValue(), exec) : asCell()->toObject(exec);
    272272    }
    273273
    274     inline JSObject* JSValuePtr::toThisObject(ExecState* exec) const
     274    inline JSObject* JSValue::toThisObject(ExecState* exec) const
    275275    {
    276276        if (UNLIKELY(JSImmediate::isImmediate(asValue())))
     
    279279    }
    280280
    281     inline bool JSValuePtr::needsThisConversion() const
     281    inline bool JSValue::needsThisConversion() const
    282282    {
    283283        if (UNLIKELY(JSImmediate::isImmediate(asValue())))
     
    286286    }
    287287
    288     inline UString JSValuePtr::toThisString(ExecState* exec) const
     288    inline UString JSValue::toThisString(ExecState* exec) const
    289289    {
    290290        return JSImmediate::isImmediate(asValue()) ? JSImmediate::toString(asValue()) : asCell()->toThisString(exec);
    291291    }
    292292
    293     inline JSValuePtr JSValuePtr::getJSNumber()
     293    inline JSValue JSValue::getJSNumber()
    294294    {
    295295        return JSImmediate::isNumber(asValue()) ? asValue() : JSImmediate::isImmediate(asValue()) ? noValue() : asCell()->getJSNumber();
  • trunk/JavaScriptCore/runtime/JSFunction.cpp

    r40046 r43122  
    7878}
    7979
    80 JSValuePtr JSFunction::call(ExecState* exec, JSValuePtr thisValue, const ArgList& args)
     80JSValue JSFunction::call(ExecState* exec, JSValue thisValue, const ArgList& args)
    8181{
    8282    return exec->interpreter()->execute(m_body.get(), exec, this, thisValue.toThisObject(exec), args, m_scopeChain.node(), exec->exceptionSlot());
    8383}
    8484
    85 JSValuePtr JSFunction::argumentsGetter(ExecState* exec, const Identifier&, const PropertySlot& slot)
     85JSValue JSFunction::argumentsGetter(ExecState* exec, const Identifier&, const PropertySlot& slot)
    8686{
    8787    JSFunction* thisObj = asFunction(slot.slotBase());
     
    8989}
    9090
    91 JSValuePtr JSFunction::callerGetter(ExecState* exec, const Identifier&, const PropertySlot& slot)
     91JSValue JSFunction::callerGetter(ExecState* exec, const Identifier&, const PropertySlot& slot)
    9292{
    9393    JSFunction* thisObj = asFunction(slot.slotBase());
     
    9595}
    9696
    97 JSValuePtr JSFunction::lengthGetter(ExecState* exec, const Identifier&, const PropertySlot& slot)
     97JSValue JSFunction::lengthGetter(ExecState* exec, const Identifier&, const PropertySlot& slot)
    9898{
    9999    JSFunction* thisObj = asFunction(slot.slotBase());
     
    104104{
    105105    if (propertyName == exec->propertyNames().prototype) {
    106         JSValuePtr* location = getDirectLocation(propertyName);
     106        JSValue* location = getDirectLocation(propertyName);
    107107
    108108        if (!location) {
     
    134134}
    135135
    136 void JSFunction::put(ExecState* exec, const Identifier& propertyName, JSValuePtr value, PutPropertySlot& slot)
     136void JSFunction::put(ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot)
    137137{
    138138    if (propertyName == exec->propertyNames().arguments || propertyName == exec->propertyNames().length)
     
    159159{
    160160    Structure* structure;
    161     JSValuePtr prototype = get(exec, exec->propertyNames().prototype);
     161    JSValue prototype = get(exec, exec->propertyNames().prototype);
    162162    if (prototype.isObject())
    163163        structure = asObject(prototype)->inheritorID();
     
    166166    JSObject* thisObj = new (exec) JSObject(structure);
    167167
    168     JSValuePtr result = exec->interpreter()->execute(m_body.get(), exec, this, thisObj, args, m_scopeChain.node(), exec->exceptionSlot());
     168    JSValue result = exec->interpreter()->execute(m_body.get(), exec, this, thisObj, args, m_scopeChain.node(), exec->exceptionSlot());
    169169    if (exec->hadException() || !result.isObject())
    170170        return thisObj;
  • trunk/JavaScriptCore/runtime/JSFunction.h

    r42680 r43122  
    5656
    5757        virtual bool getOwnPropertySlot(ExecState*, const Identifier&, PropertySlot&);
    58         virtual void put(ExecState*, const Identifier& propertyName, JSValuePtr, PutPropertySlot&);
     58        virtual void put(ExecState*, const Identifier& propertyName, JSValue, PutPropertySlot&);
    5959        virtual bool deleteProperty(ExecState*, const Identifier& propertyName);
    6060
    6161        JSObject* construct(ExecState*, const ArgList&);
    62         JSValuePtr call(ExecState*, JSValuePtr thisValue, const ArgList&);
     62        JSValue call(ExecState*, JSValue thisValue, const ArgList&);
    6363
    6464        void setScope(const ScopeChain& scopeChain) { m_scopeChain = scopeChain; }
     
    7373        static JS_EXPORTDATA const ClassInfo info;
    7474
    75         static PassRefPtr<Structure> createStructure(JSValuePtr prototype)
     75        static PassRefPtr<Structure> createStructure(JSValue prototype)
    7676        {
    7777            return Structure::create(prototype, TypeInfo(ObjectType, ImplementsHasInstance));
     
    8484        virtual CallType getCallData(CallData&);
    8585
    86         static JSValuePtr argumentsGetter(ExecState*, const Identifier&, const PropertySlot&);
    87         static JSValuePtr callerGetter(ExecState*, const Identifier&, const PropertySlot&);
    88         static JSValuePtr lengthGetter(ExecState*, const Identifier&, const PropertySlot&);
     86        static JSValue argumentsGetter(ExecState*, const Identifier&, const PropertySlot&);
     87        static JSValue callerGetter(ExecState*, const Identifier&, const PropertySlot&);
     88        static JSValue lengthGetter(ExecState*, const Identifier&, const PropertySlot&);
    8989
    9090        RefPtr<FunctionBodyNode> m_body;
     
    9292    };
    9393
    94     JSFunction* asFunction(JSValuePtr);
     94    JSFunction* asFunction(JSValue);
    9595
    96     inline JSFunction* asFunction(JSValuePtr value)
     96    inline JSFunction* asFunction(JSValue value)
    9797    {
    9898        ASSERT(asObject(value)->inherits(&JSFunction::info));
  • trunk/JavaScriptCore/runtime/JSGlobalData.h

    r43037 r43122  
    124124        Heap heap;
    125125
    126         JSValuePtr exception;
     126        JSValue exception;
    127127#if ENABLE(JIT)
    128128        void* exceptionLocation;
  • trunk/JavaScriptCore/runtime/JSGlobalObject.cpp

    r42337 r43122  
    7979static const int preferredScriptCheckTimeInterval = 1000;
    8080
    81 static inline void markIfNeeded(JSValuePtr v)
     81static inline void markIfNeeded(JSValue v)
    8282{
    8383    if (v && !v.marked())
     
    148148}
    149149
    150 void JSGlobalObject::put(ExecState* exec, const Identifier& propertyName, JSValuePtr value, PutPropertySlot& slot)
     150void JSGlobalObject::put(ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot)
    151151{
    152152    ASSERT(!Heap::heap(value) || Heap::heap(value) == Heap::heap(this));
     
    157157}
    158158
    159 void JSGlobalObject::putWithAttributes(ExecState* exec, const Identifier& propertyName, JSValuePtr value, unsigned attributes)
     159void JSGlobalObject::putWithAttributes(ExecState* exec, const Identifier& propertyName, JSValue value, unsigned attributes)
    160160{
    161161    ASSERT(!Heap::heap(value) || Heap::heap(value) == Heap::heap(this));
     
    164164        return;
    165165
    166     JSValuePtr valueBefore = getDirect(propertyName);
     166    JSValue valueBefore = getDirect(propertyName);
    167167    PutPropertySlot slot;
    168168    JSVariableObject::put(exec, propertyName, value, slot);
    169169    if (!valueBefore) {
    170         JSValuePtr valueAfter = getDirect(propertyName);
     170        JSValue valueAfter = getDirect(propertyName);
    171171        if (valueAfter)
    172172            putDirect(propertyName, valueAfter, attributes);
     
    196196}
    197197
    198 void JSGlobalObject::reset(JSValuePtr prototype)
     198void JSGlobalObject::reset(JSValue prototype)
    199199{
    200200    ExecState* exec = JSGlobalObject::globalExec();
     
    253253    // Constructors
    254254
    255     JSValuePtr objectConstructor = new (exec) ObjectConstructor(exec, ObjectConstructor::createStructure(d()->functionPrototype), d()->objectPrototype);
    256     JSValuePtr functionConstructor = new (exec) FunctionConstructor(exec, FunctionConstructor::createStructure(d()->functionPrototype), d()->functionPrototype);
    257     JSValuePtr arrayConstructor = new (exec) ArrayConstructor(exec, ArrayConstructor::createStructure(d()->functionPrototype), d()->arrayPrototype);
    258     JSValuePtr stringConstructor = new (exec) StringConstructor(exec, StringConstructor::createStructure(d()->functionPrototype), d()->prototypeFunctionStructure.get(), d()->stringPrototype);
    259     JSValuePtr booleanConstructor = new (exec) BooleanConstructor(exec, BooleanConstructor::createStructure(d()->functionPrototype), d()->booleanPrototype);
    260     JSValuePtr numberConstructor = new (exec) NumberConstructor(exec, NumberConstructor::createStructure(d()->functionPrototype), d()->numberPrototype);
    261     JSValuePtr dateConstructor = new (exec) DateConstructor(exec, DateConstructor::createStructure(d()->functionPrototype), d()->prototypeFunctionStructure.get(), d()->datePrototype);
     255    JSValue objectConstructor = new (exec) ObjectConstructor(exec, ObjectConstructor::createStructure(d()->functionPrototype), d()->objectPrototype);
     256    JSValue functionConstructor = new (exec) FunctionConstructor(exec, FunctionConstructor::createStructure(d()->functionPrototype), d()->functionPrototype);
     257    JSValue arrayConstructor = new (exec) ArrayConstructor(exec, ArrayConstructor::createStructure(d()->functionPrototype), d()->arrayPrototype);
     258    JSValue stringConstructor = new (exec) StringConstructor(exec, StringConstructor::createStructure(d()->functionPrototype), d()->prototypeFunctionStructure.get(), d()->stringPrototype);
     259    JSValue booleanConstructor = new (exec) BooleanConstructor(exec, BooleanConstructor::createStructure(d()->functionPrototype), d()->booleanPrototype);
     260    JSValue numberConstructor = new (exec) NumberConstructor(exec, NumberConstructor::createStructure(d()->functionPrototype), d()->numberPrototype);
     261    JSValue dateConstructor = new (exec) DateConstructor(exec, DateConstructor::createStructure(d()->functionPrototype), d()->prototypeFunctionStructure.get(), d()->datePrototype);
    262262
    263263    d()->regExpConstructor = new (exec) RegExpConstructor(exec, RegExpConstructor::createStructure(d()->functionPrototype), d()->regExpPrototype);
     
    343343
    344344// Set prototype, and also insert the object prototype at the end of the chain.
    345 void JSGlobalObject::resetPrototype(JSValuePtr prototype)
     345void JSGlobalObject::resetPrototype(JSValue prototype)
    346346{
    347347    setPrototype(prototype);
  • trunk/JavaScriptCore/runtime/JSGlobalObject.h

    r42337 r43122  
    167167        virtual bool getOwnPropertySlot(ExecState*, const Identifier&, PropertySlot&);
    168168        virtual bool getOwnPropertySlot(ExecState*, const Identifier&, PropertySlot&, bool& slotIsWriteable);
    169         virtual void put(ExecState*, const Identifier&, JSValuePtr, PutPropertySlot&);
    170         virtual void putWithAttributes(ExecState*, const Identifier& propertyName, JSValuePtr value, unsigned attributes);
     169        virtual void put(ExecState*, const Identifier&, JSValue, PutPropertySlot&);
     170        virtual void putWithAttributes(ExecState*, const Identifier& propertyName, JSValue value, unsigned attributes);
    171171
    172172        virtual void defineGetter(ExecState*, const Identifier& propertyName, JSObject* getterFunc);
     
    246246        void copyGlobalsTo(RegisterFile&);
    247247       
    248         void resetPrototype(JSValuePtr prototype);
     248        void resetPrototype(JSValue prototype);
    249249
    250250        JSGlobalData* globalData() { return d()->globalData.get(); }
    251251        JSGlobalObjectData* d() const { return static_cast<JSGlobalObjectData*>(JSVariableObject::d); }
    252252
    253         static PassRefPtr<Structure> createStructure(JSValuePtr prototype)
     253        static PassRefPtr<Structure> createStructure(JSValue prototype)
    254254        {
    255255            return Structure::create(prototype, TypeInfo(ObjectType));
     
    258258    protected:
    259259        struct GlobalPropertyInfo {
    260             GlobalPropertyInfo(const Identifier& i, JSValuePtr v, unsigned a)
     260            GlobalPropertyInfo(const Identifier& i, JSValue v, unsigned a)
    261261                : identifier(i)
    262262                , value(v)
     
    266266
    267267            const Identifier identifier;
    268             JSValuePtr value;
     268            JSValue value;
    269269            unsigned attributes;
    270270        };
     
    274274        // FIXME: Fold reset into init.
    275275        void init(JSObject* thisValue);
    276         void reset(JSValuePtr prototype);
     276        void reset(JSValue prototype);
    277277
    278278        void setRegisters(Register* registers, Register* registerArray, size_t count);
     
    281281    };
    282282
    283     JSGlobalObject* asGlobalObject(JSValuePtr);
    284 
    285     inline JSGlobalObject* asGlobalObject(JSValuePtr value)
     283    JSGlobalObject* asGlobalObject(JSValue);
     284
     285    inline JSGlobalObject* asGlobalObject(JSValue value)
    286286    {
    287287        ASSERT(asObject(value)->isGlobalObject());
     
    335335    }
    336336
    337     inline JSValuePtr Structure::prototypeForLookup(ExecState* exec) const
     337    inline JSValue Structure::prototypeForLookup(ExecState* exec) const
    338338    {
    339339        if (typeInfo().type() == ObjectType)
     
    351351        // We cache our prototype chain so our clients can share it.
    352352        if (!isValid(exec, m_cachedPrototypeChain.get())) {
    353             JSValuePtr prototype = prototypeForLookup(exec);
     353            JSValue prototype = prototypeForLookup(exec);
    354354            m_cachedPrototypeChain = StructureChain::create(prototype.isNull() ? 0 : asObject(prototype)->structure());
    355355        }
     
    362362            return false;
    363363
    364         JSValuePtr prototype = prototypeForLookup(exec);
     364        JSValue prototype = prototypeForLookup(exec);
    365365        RefPtr<Structure>* cachedStructure = cachedPrototypeChain->head();
    366366        while(*cachedStructure && !prototype.isNull()) {
  • trunk/JavaScriptCore/runtime/JSGlobalObjectFunctions.cpp

    r43121 r43122  
    4848namespace JSC {
    4949
    50 static JSValuePtr encode(ExecState* exec, const ArgList& args, const char* doNotEscape)
     50static JSValue encode(ExecState* exec, const ArgList& args, const char* doNotEscape)
    5151{
    5252    UString str = args.at(0).toString(exec);
     
    7070}
    7171
    72 static JSValuePtr decode(ExecState* exec, const ArgList& args, const char* doNotUnescape, bool strict)
     72static JSValue decode(ExecState* exec, const ArgList& args, const char* doNotUnescape, bool strict)
    7373{
    7474    UString result = "";
     
    269269}
    270270
    271 JSValuePtr globalFuncEval(ExecState* exec, JSObject* function, JSValuePtr thisValue, const ArgList& args)
     271JSValue globalFuncEval(ExecState* exec, JSObject* function, JSValue thisValue, const ArgList& args)
    272272{
    273273    JSObject* thisObject = thisValue.toThisObject(exec);
     
    276276        return throwError(exec, EvalError, "The \"this\" value passed to eval must be the global object from which eval originated");
    277277
    278     JSValuePtr x = args.at(0);
     278    JSValue x = args.at(0);
    279279    if (!x.isString())
    280280        return x;
     
    294294}
    295295
    296 JSValuePtr globalFuncParseInt(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args)
    297 {
    298     JSValuePtr value = args.at(0);
     296JSValue globalFuncParseInt(ExecState* exec, JSObject*, JSValue, const ArgList& args)
     297{
     298    JSValue value = args.at(0);
    299299    int32_t radix = args.at(1).toInt32(exec);
    300300
     
    313313}
    314314
    315 JSValuePtr globalFuncParseFloat(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args)
     315JSValue globalFuncParseFloat(ExecState* exec, JSObject*, JSValue, const ArgList& args)
    316316{
    317317    return jsNumber(exec, parseFloat(args.at(0).toString(exec)));
    318318}
    319319
    320 JSValuePtr globalFuncIsNaN(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args)
     320JSValue globalFuncIsNaN(ExecState* exec, JSObject*, JSValue, const ArgList& args)
    321321{
    322322    return jsBoolean(isnan(args.at(0).toNumber(exec)));
    323323}
    324324
    325 JSValuePtr globalFuncIsFinite(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args)
     325JSValue globalFuncIsFinite(ExecState* exec, JSObject*, JSValue, const ArgList& args)
    326326{
    327327    double n = args.at(0).toNumber(exec);
     
    329329}
    330330
    331 JSValuePtr globalFuncDecodeURI(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args)
     331JSValue globalFuncDecodeURI(ExecState* exec, JSObject*, JSValue, const ArgList& args)
    332332{
    333333    static const char do_not_unescape_when_decoding_URI[] =
     
    337337}
    338338
    339 JSValuePtr globalFuncDecodeURIComponent(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args)
     339JSValue globalFuncDecodeURIComponent(ExecState* exec, JSObject*, JSValue, const ArgList& args)
    340340{
    341341    return decode(exec, args, "", true);
    342342}
    343343
    344 JSValuePtr globalFuncEncodeURI(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args)
     344JSValue globalFuncEncodeURI(ExecState* exec, JSObject*, JSValue, const ArgList& args)
    345345{
    346346    static const char do_not_escape_when_encoding_URI[] =
     
    353353}
    354354
    355 JSValuePtr globalFuncEncodeURIComponent(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args)
     355JSValue globalFuncEncodeURIComponent(ExecState* exec, JSObject*, JSValue, const ArgList& args)
    356356{
    357357    static const char do_not_escape_when_encoding_URI_component[] =
     
    364364}
    365365
    366 JSValuePtr globalFuncEscape(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args)
     366JSValue globalFuncEscape(ExecState* exec, JSObject*, JSValue, const ArgList& args)
    367367{
    368368    static const char do_not_escape[] =
     
    395395}
    396396
    397 JSValuePtr globalFuncUnescape(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args)
     397JSValue globalFuncUnescape(ExecState* exec, JSObject*, JSValue, const ArgList& args)
    398398{
    399399    UString result = "";
     
    423423
    424424#ifndef NDEBUG
    425 JSValuePtr globalFuncJSCPrint(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args)
     425JSValue globalFuncJSCPrint(ExecState* exec, JSObject*, JSValue, const ArgList& args)
    426426{
    427427    CStringBuffer string;
  • trunk/JavaScriptCore/runtime/JSGlobalObjectFunctions.h

    r40176 r43122  
    3232    class ExecState;
    3333    class JSObject;
    34     class JSValuePtr;
     34    class JSValue;
    3535
    3636    // FIXME: These functions should really be in JSGlobalObject.cpp, but putting them there
    3737    // is a 0.5% reduction.
    3838
    39     JSValuePtr globalFuncEval(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    40     JSValuePtr globalFuncParseInt(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    41     JSValuePtr globalFuncParseFloat(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    42     JSValuePtr globalFuncIsNaN(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    43     JSValuePtr globalFuncIsFinite(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    44     JSValuePtr globalFuncDecodeURI(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    45     JSValuePtr globalFuncDecodeURIComponent(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    46     JSValuePtr globalFuncEncodeURI(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    47     JSValuePtr globalFuncEncodeURIComponent(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    48     JSValuePtr globalFuncEscape(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    49     JSValuePtr globalFuncUnescape(ExecState*, JSObject*, JSValuePtr, const ArgList&);
     39    JSValue globalFuncEval(ExecState*, JSObject*, JSValue, const ArgList&);
     40    JSValue globalFuncParseInt(ExecState*, JSObject*, JSValue, const ArgList&);
     41    JSValue globalFuncParseFloat(ExecState*, JSObject*, JSValue, const ArgList&);
     42    JSValue globalFuncIsNaN(ExecState*, JSObject*, JSValue, const ArgList&);
     43    JSValue globalFuncIsFinite(ExecState*, JSObject*, JSValue, const ArgList&);
     44    JSValue globalFuncDecodeURI(ExecState*, JSObject*, JSValue, const ArgList&);
     45    JSValue globalFuncDecodeURIComponent(ExecState*, JSObject*, JSValue, const ArgList&);
     46    JSValue globalFuncEncodeURI(ExecState*, JSObject*, JSValue, const ArgList&);
     47    JSValue globalFuncEncodeURIComponent(ExecState*, JSObject*, JSValue, const ArgList&);
     48    JSValue globalFuncEscape(ExecState*, JSObject*, JSValue, const ArgList&);
     49    JSValue globalFuncUnescape(ExecState*, JSObject*, JSValue, const ArgList&);
    5050#ifndef NDEBUG
    51     JSValuePtr globalFuncJSCPrint(ExecState*, JSObject*, JSValuePtr, const ArgList&);
     51    JSValue globalFuncJSCPrint(ExecState*, JSObject*, JSValue, const ArgList&);
    5252#endif
    5353
  • trunk/JavaScriptCore/runtime/JSImmediate.cpp

    r41083 r43122  
    3333namespace JSC {
    3434
    35 JSObject* JSImmediate::toThisObject(JSValuePtr v, ExecState* exec)
     35JSObject* JSImmediate::toThisObject(JSValue v, ExecState* exec)
    3636{
    3737    ASSERT(isImmediate(v));
     
    4444}
    4545
    46 JSObject* JSImmediate::toObject(JSValuePtr v, ExecState* exec)
     46JSObject* JSImmediate::toObject(JSValue v, ExecState* exec)
    4747{
    4848    ASSERT(isImmediate(v));
     
    5757}
    5858
    59 JSObject* JSImmediate::prototype(JSValuePtr v, ExecState* exec)
     59JSObject* JSImmediate::prototype(JSValue v, ExecState* exec)
    6060{
    6161    ASSERT(isImmediate(v));
     
    7070}
    7171
    72 UString JSImmediate::toString(JSValuePtr v)
     72UString JSImmediate::toString(JSValue v)
    7373{
    7474    ASSERT(isImmediate(v));
  • trunk/JavaScriptCore/runtime/JSImmediate.h

    r43121 r43122  
    4343    class UString;
    4444
    45     JSValuePtr jsNumber(ExecState* exec, double d);
    46     JSValuePtr jsNumber(ExecState*, char i);
    47     JSValuePtr jsNumber(ExecState*, unsigned char i);
    48     JSValuePtr jsNumber(ExecState*, short i);
    49     JSValuePtr jsNumber(ExecState*, unsigned short i);
    50     JSValuePtr jsNumber(ExecState* exec, int i);
    51     JSValuePtr jsNumber(ExecState* exec, unsigned i);
    52     JSValuePtr jsNumber(ExecState* exec, long i);
    53     JSValuePtr jsNumber(ExecState* exec, unsigned long i);
    54     JSValuePtr jsNumber(ExecState* exec, long long i);
    55     JSValuePtr jsNumber(ExecState* exec, unsigned long long i);
    56     JSValuePtr jsNumber(JSGlobalData* globalData, double d);
    57     JSValuePtr jsNumber(JSGlobalData* globalData, short i);
    58     JSValuePtr jsNumber(JSGlobalData* globalData, unsigned short i);
    59     JSValuePtr jsNumber(JSGlobalData* globalData, int i);
    60     JSValuePtr jsNumber(JSGlobalData* globalData, unsigned i);
    61     JSValuePtr jsNumber(JSGlobalData* globalData, long i);
    62     JSValuePtr jsNumber(JSGlobalData* globalData, unsigned long i);
    63     JSValuePtr jsNumber(JSGlobalData* globalData, long long i);
    64     JSValuePtr jsNumber(JSGlobalData* globalData, unsigned long long i);
     45    JSValue jsNumber(ExecState* exec, double d);
     46    JSValue jsNumber(ExecState*, char i);
     47    JSValue jsNumber(ExecState*, unsigned char i);
     48    JSValue jsNumber(ExecState*, short i);
     49    JSValue jsNumber(ExecState*, unsigned short i);
     50    JSValue jsNumber(ExecState* exec, int i);
     51    JSValue jsNumber(ExecState* exec, unsigned i);
     52    JSValue jsNumber(ExecState* exec, long i);
     53    JSValue jsNumber(ExecState* exec, unsigned long i);
     54    JSValue jsNumber(ExecState* exec, long long i);
     55    JSValue jsNumber(ExecState* exec, unsigned long long i);
     56    JSValue jsNumber(JSGlobalData* globalData, double d);
     57    JSValue jsNumber(JSGlobalData* globalData, short i);
     58    JSValue jsNumber(JSGlobalData* globalData, unsigned short i);
     59    JSValue jsNumber(JSGlobalData* globalData, int i);
     60    JSValue jsNumber(JSGlobalData* globalData, unsigned i);
     61    JSValue jsNumber(JSGlobalData* globalData, long i);
     62    JSValue jsNumber(JSGlobalData* globalData, unsigned long i);
     63    JSValue jsNumber(JSGlobalData* globalData, long long i);
     64    JSValue jsNumber(JSGlobalData* globalData, unsigned long long i);
    6565
    6666#if USE(ALTERNATE_JSIMMEDIATE)
     
    154154    private:
    155155        friend class JIT;
    156         friend class JSValuePtr;
     156        friend class JSValue;
    157157        friend class JSFastMath;
    158         friend JSValuePtr jsNumber(ExecState* exec, double d);
    159         friend JSValuePtr jsNumber(ExecState*, char i);
    160         friend JSValuePtr jsNumber(ExecState*, unsigned char i);
    161         friend JSValuePtr jsNumber(ExecState*, short i);
    162         friend JSValuePtr jsNumber(ExecState*, unsigned short i);
    163         friend JSValuePtr jsNumber(ExecState* exec, int i);
    164         friend JSValuePtr jsNumber(ExecState* exec, unsigned i);
    165         friend JSValuePtr jsNumber(ExecState* exec, long i);
    166         friend JSValuePtr jsNumber(ExecState* exec, unsigned long i);
    167         friend JSValuePtr jsNumber(ExecState* exec, long long i);
    168         friend JSValuePtr jsNumber(ExecState* exec, unsigned long long i);
    169         friend JSValuePtr jsNumber(JSGlobalData* globalData, double d);
    170         friend JSValuePtr jsNumber(JSGlobalData* globalData, short i);
    171         friend JSValuePtr jsNumber(JSGlobalData* globalData, unsigned short i);
    172         friend JSValuePtr jsNumber(JSGlobalData* globalData, int i);
    173         friend JSValuePtr jsNumber(JSGlobalData* globalData, unsigned i);
    174         friend JSValuePtr jsNumber(JSGlobalData* globalData, long i);
    175         friend JSValuePtr jsNumber(JSGlobalData* globalData, unsigned long i);
    176         friend JSValuePtr jsNumber(JSGlobalData* globalData, long long i);
    177         friend JSValuePtr jsNumber(JSGlobalData* globalData, unsigned long long i);
     158        friend JSValue jsNumber(ExecState* exec, double d);
     159        friend JSValue jsNumber(ExecState*, char i);
     160        friend JSValue jsNumber(ExecState*, unsigned char i);
     161        friend JSValue jsNumber(ExecState*, short i);
     162        friend JSValue jsNumber(ExecState*, unsigned short i);
     163        friend JSValue jsNumber(ExecState* exec, int i);
     164        friend JSValue jsNumber(ExecState* exec, unsigned i);
     165        friend JSValue jsNumber(ExecState* exec, long i);
     166        friend JSValue jsNumber(ExecState* exec, unsigned long i);
     167        friend JSValue jsNumber(ExecState* exec, long long i);
     168        friend JSValue jsNumber(ExecState* exec, unsigned long long i);
     169        friend JSValue jsNumber(JSGlobalData* globalData, double d);
     170        friend JSValue jsNumber(JSGlobalData* globalData, short i);
     171        friend JSValue jsNumber(JSGlobalData* globalData, unsigned short i);
     172        friend JSValue jsNumber(JSGlobalData* globalData, int i);
     173        friend JSValue jsNumber(JSGlobalData* globalData, unsigned i);
     174        friend JSValue jsNumber(JSGlobalData* globalData, long i);
     175        friend JSValue jsNumber(JSGlobalData* globalData, unsigned long i);
     176        friend JSValue jsNumber(JSGlobalData* globalData, long long i);
     177        friend JSValue jsNumber(JSGlobalData* globalData, unsigned long long i);
    178178
    179179#if USE(ALTERNATE_JSIMMEDIATE)
     
    210210        static const int32_t signBit = 0x80000000;
    211211 
    212         static ALWAYS_INLINE bool isImmediate(JSValuePtr v)
     212        static ALWAYS_INLINE bool isImmediate(JSValue v)
    213213        {
    214214            return rawValue(v) & TagMask;
    215215        }
    216216       
    217         static ALWAYS_INLINE bool isNumber(JSValuePtr v)
     217        static ALWAYS_INLINE bool isNumber(JSValue v)
    218218        {
    219219            return rawValue(v) & TagTypeNumber;
    220220        }
    221221
    222         static ALWAYS_INLINE bool isIntegerNumber(JSValuePtr v)
     222        static ALWAYS_INLINE bool isIntegerNumber(JSValue v)
    223223        {
    224224#if USE(ALTERNATE_JSIMMEDIATE)
     
    230230
    231231#if USE(ALTERNATE_JSIMMEDIATE)
    232         static ALWAYS_INLINE bool isDoubleNumber(JSValuePtr v)
     232        static ALWAYS_INLINE bool isDoubleNumber(JSValue v)
    233233        {
    234234            return isNumber(v) && !isIntegerNumber(v);
     
    236236#endif
    237237
    238         static ALWAYS_INLINE bool isPositiveIntegerNumber(JSValuePtr v)
     238        static ALWAYS_INLINE bool isPositiveIntegerNumber(JSValue v)
    239239        {
    240240            // A single mask to check for the sign bit and the number tag all at once.
     
    242242        }
    243243       
    244         static ALWAYS_INLINE bool isBoolean(JSValuePtr v)
     244        static ALWAYS_INLINE bool isBoolean(JSValue v)
    245245        {
    246246            return (rawValue(v) & FullTagTypeMask) == FullTagTypeBool;
    247247        }
    248248       
    249         static ALWAYS_INLINE bool isUndefinedOrNull(JSValuePtr v)
     249        static ALWAYS_INLINE bool isUndefinedOrNull(JSValue v)
    250250        {
    251251            // Undefined and null share the same value, bar the 'undefined' bit in the extended tag.
     
    253253        }
    254254
    255         static JSValuePtr from(char);
    256         static JSValuePtr from(signed char);
    257         static JSValuePtr from(unsigned char);
    258         static JSValuePtr from(short);
    259         static JSValuePtr from(unsigned short);
    260         static JSValuePtr from(int);
    261         static JSValuePtr from(unsigned);
    262         static JSValuePtr from(long);
    263         static JSValuePtr from(unsigned long);
    264         static JSValuePtr from(long long);
    265         static JSValuePtr from(unsigned long long);
    266         static JSValuePtr from(double);
    267 
    268         static ALWAYS_INLINE bool isEitherImmediate(JSValuePtr v1, JSValuePtr v2)
     255        static JSValue from(char);
     256        static JSValue from(signed char);
     257        static JSValue from(unsigned char);
     258        static JSValue from(short);
     259        static JSValue from(unsigned short);
     260        static JSValue from(int);
     261        static JSValue from(unsigned);
     262        static JSValue from(long);
     263        static JSValue from(unsigned long);
     264        static JSValue from(long long);
     265        static JSValue from(unsigned long long);
     266        static JSValue from(double);
     267
     268        static ALWAYS_INLINE bool isEitherImmediate(JSValue v1, JSValue v2)
    269269        {
    270270            return (rawValue(v1) | rawValue(v2)) & TagMask;
    271271        }
    272272
    273         static ALWAYS_INLINE bool areBothImmediate(JSValuePtr v1, JSValuePtr v2)
     273        static ALWAYS_INLINE bool areBothImmediate(JSValue v1, JSValue v2)
    274274        {
    275275            return isImmediate(v1) & isImmediate(v2);
    276276        }
    277277
    278         static ALWAYS_INLINE bool areBothImmediateIntegerNumbers(JSValuePtr v1, JSValuePtr v2)
     278        static ALWAYS_INLINE bool areBothImmediateIntegerNumbers(JSValue v1, JSValue v2)
    279279        {
    280280#if USE(ALTERNATE_JSIMMEDIATE)
     
    285285        }
    286286
    287         static double toDouble(JSValuePtr);
    288         static bool toBoolean(JSValuePtr);
    289         static JSObject* toObject(JSValuePtr, ExecState*);
    290         static JSObject* toThisObject(JSValuePtr, ExecState*);
    291         static UString toString(JSValuePtr);
    292 
    293         static bool getUInt32(JSValuePtr, uint32_t&);
    294         static bool getTruncatedInt32(JSValuePtr, int32_t&);
    295         static bool getTruncatedUInt32(JSValuePtr, uint32_t&);
    296 
    297         static int32_t getTruncatedInt32(JSValuePtr);
    298         static uint32_t getTruncatedUInt32(JSValuePtr);
    299 
    300         static JSValuePtr trueImmediate();
    301         static JSValuePtr falseImmediate();
    302         static JSValuePtr undefinedImmediate();
    303         static JSValuePtr nullImmediate();
    304         static JSValuePtr zeroImmediate();
    305         static JSValuePtr oneImmediate();
    306 
    307         static JSValuePtr impossibleValue();
    308        
    309         static JSObject* prototype(JSValuePtr, ExecState*);
     287        static double toDouble(JSValue);
     288        static bool toBoolean(JSValue);
     289        static JSObject* toObject(JSValue, ExecState*);
     290        static JSObject* toThisObject(JSValue, ExecState*);
     291        static UString toString(JSValue);
     292
     293        static bool getUInt32(JSValue, uint32_t&);
     294        static bool getTruncatedInt32(JSValue, int32_t&);
     295        static bool getTruncatedUInt32(JSValue, uint32_t&);
     296
     297        static int32_t getTruncatedInt32(JSValue);
     298        static uint32_t getTruncatedUInt32(JSValue);
     299
     300        static JSValue trueImmediate();
     301        static JSValue falseImmediate();
     302        static JSValue undefinedImmediate();
     303        static JSValue nullImmediate();
     304        static JSValue zeroImmediate();
     305        static JSValue oneImmediate();
     306
     307        static JSValue impossibleValue();
     308       
     309        static JSObject* prototype(JSValue, ExecState*);
    310310
    311311    private:
     
    319319        static const unsigned maxImmediateUInt = maxImmediateInt;
    320320
    321         static ALWAYS_INLINE JSValuePtr makeValue(intptr_t integer)
    322         {
    323             return JSValuePtr::makeImmediate(integer);
     321        static ALWAYS_INLINE JSValue makeValue(intptr_t integer)
     322        {
     323            return JSValue::makeImmediate(integer);
    324324        }
    325325
     
    328328        // if intptr_t id larger then int32_t we sign extend the value through the upper word.
    329329#if USE(ALTERNATE_JSIMMEDIATE)
    330         static ALWAYS_INLINE JSValuePtr makeInt(uint32_t value)
    331 #else
    332         static ALWAYS_INLINE JSValuePtr makeInt(int32_t value)
     330        static ALWAYS_INLINE JSValue makeInt(uint32_t value)
     331#else
     332        static ALWAYS_INLINE JSValue makeInt(int32_t value)
    333333#endif
    334334        {
     
    337337       
    338338#if USE(ALTERNATE_JSIMMEDIATE)
    339         static ALWAYS_INLINE JSValuePtr makeDouble(double value)
     339        static ALWAYS_INLINE JSValue makeDouble(double value)
    340340        {
    341341            return makeValue(reinterpretDoubleToIntptr(value) + DoubleEncodeOffset);
     
    343343#endif
    344344       
    345         static ALWAYS_INLINE JSValuePtr makeBool(bool b)
     345        static ALWAYS_INLINE JSValue makeBool(bool b)
    346346        {
    347347            return makeValue((static_cast<intptr_t>(b) << ExtendedPayloadShift) | FullTagTypeBool);
    348348        }
    349349       
    350         static ALWAYS_INLINE JSValuePtr makeUndefined()
     350        static ALWAYS_INLINE JSValue makeUndefined()
    351351        {
    352352            return makeValue(FullTagTypeUndefined);
    353353        }
    354354       
    355         static ALWAYS_INLINE JSValuePtr makeNull()
     355        static ALWAYS_INLINE JSValue makeNull()
    356356        {
    357357            return makeValue(FullTagTypeNull);
     
    359359
    360360        template<typename T>
    361         static JSValuePtr fromNumberOutsideIntegerRange(T);
    362 
    363 #if USE(ALTERNATE_JSIMMEDIATE)
    364         static ALWAYS_INLINE double doubleValue(JSValuePtr v)
     361        static JSValue fromNumberOutsideIntegerRange(T);
     362
     363#if USE(ALTERNATE_JSIMMEDIATE)
     364        static ALWAYS_INLINE double doubleValue(JSValue v)
    365365        {
    366366            return reinterpretIntptrToDouble(rawValue(v) - DoubleEncodeOffset);
     
    368368#endif
    369369
    370         static ALWAYS_INLINE int32_t intValue(JSValuePtr v)
     370        static ALWAYS_INLINE int32_t intValue(JSValue v)
    371371        {
    372372            return static_cast<int32_t>(rawValue(v) >> IntegerPayloadShift);
    373373        }
    374374       
    375         static ALWAYS_INLINE uint32_t uintValue(JSValuePtr v)
     375        static ALWAYS_INLINE uint32_t uintValue(JSValue v)
    376376        {
    377377            return static_cast<uint32_t>(rawValue(v) >> IntegerPayloadShift);
    378378        }
    379379       
    380         static ALWAYS_INLINE bool boolValue(JSValuePtr v)
     380        static ALWAYS_INLINE bool boolValue(JSValue v)
    381381        {
    382382            return rawValue(v) & ExtendedPayloadBitBoolValue;
    383383        }
    384384       
    385         static ALWAYS_INLINE intptr_t rawValue(JSValuePtr v)
     385        static ALWAYS_INLINE intptr_t rawValue(JSValue v)
    386386        {
    387387            return v.immediateValue();
     
    391391    };
    392392
    393     ALWAYS_INLINE JSValuePtr JSImmediate::trueImmediate() { return makeBool(true); }
    394     ALWAYS_INLINE JSValuePtr JSImmediate::falseImmediate() { return makeBool(false); }
    395     ALWAYS_INLINE JSValuePtr JSImmediate::undefinedImmediate() { return makeUndefined(); }
    396     ALWAYS_INLINE JSValuePtr JSImmediate::nullImmediate() { return makeNull(); }
    397     ALWAYS_INLINE JSValuePtr JSImmediate::zeroImmediate() { return makeInt(0); }
    398     ALWAYS_INLINE JSValuePtr JSImmediate::oneImmediate() { return makeInt(1); }
     393    ALWAYS_INLINE JSValue JSImmediate::trueImmediate() { return makeBool(true); }
     394    ALWAYS_INLINE JSValue JSImmediate::falseImmediate() { return makeBool(false); }
     395    ALWAYS_INLINE JSValue JSImmediate::undefinedImmediate() { return makeUndefined(); }
     396    ALWAYS_INLINE JSValue JSImmediate::nullImmediate() { return makeNull(); }
     397    ALWAYS_INLINE JSValue JSImmediate::zeroImmediate() { return makeInt(0); }
     398    ALWAYS_INLINE JSValue JSImmediate::oneImmediate() { return makeInt(1); }
    399399
    400400    // This value is impossible because 0x4 is not a valid pointer but a tag of 0 would indicate non-immediate
    401     ALWAYS_INLINE JSValuePtr JSImmediate::impossibleValue() { return makeValue(0x4); }
     401    ALWAYS_INLINE JSValue JSImmediate::impossibleValue() { return makeValue(0x4); }
    402402
    403403#if USE(ALTERNATE_JSIMMEDIATE)
     
    407407    }
    408408
    409     ALWAYS_INLINE bool JSImmediate::toBoolean(JSValuePtr v)
     409    ALWAYS_INLINE bool JSImmediate::toBoolean(JSValue v)
    410410    {
    411411        ASSERT(isImmediate(v));
     
    414414    }
    415415#else
    416     ALWAYS_INLINE bool JSImmediate::toBoolean(JSValuePtr v)
     416    ALWAYS_INLINE bool JSImmediate::toBoolean(JSValue v)
    417417    {
    418418        ASSERT(isImmediate(v));
     
    421421#endif
    422422
    423     ALWAYS_INLINE uint32_t JSImmediate::getTruncatedUInt32(JSValuePtr v)
     423    ALWAYS_INLINE uint32_t JSImmediate::getTruncatedUInt32(JSValue v)
    424424    {
    425425        // FIXME: should probably be asserting isPositiveIntegerNumber here.
     
    430430#if USE(ALTERNATE_JSIMMEDIATE)
    431431    template<typename T>
    432     inline JSValuePtr JSImmediate::fromNumberOutsideIntegerRange(T value)
     432    inline JSValue JSImmediate::fromNumberOutsideIntegerRange(T value)
    433433    {
    434434        return makeDouble(static_cast<double>(value));
     
    436436#else
    437437    template<typename T>
    438     inline JSValuePtr JSImmediate::fromNumberOutsideIntegerRange(T)
     438    inline JSValue JSImmediate::fromNumberOutsideIntegerRange(T)
    439439    {
    440440        return noValue();
     
    442442#endif
    443443
    444     ALWAYS_INLINE JSValuePtr JSImmediate::from(char i)
     444    ALWAYS_INLINE JSValue JSImmediate::from(char i)
    445445    {
    446446        return makeInt(i);
    447447    }
    448448
    449     ALWAYS_INLINE JSValuePtr JSImmediate::from(signed char i)
     449    ALWAYS_INLINE JSValue JSImmediate::from(signed char i)
    450450    {
    451451        return makeInt(i);
    452452    }
    453453
    454     ALWAYS_INLINE JSValuePtr JSImmediate::from(unsigned char i)
     454    ALWAYS_INLINE JSValue JSImmediate::from(unsigned char i)
    455455    {
    456456        return makeInt(i);
    457457    }
    458458
    459     ALWAYS_INLINE JSValuePtr JSImmediate::from(short i)
     459    ALWAYS_INLINE JSValue JSImmediate::from(short i)
    460460    {
    461461        return makeInt(i);
    462462    }
    463463
    464     ALWAYS_INLINE JSValuePtr JSImmediate::from(unsigned short i)
     464    ALWAYS_INLINE JSValue JSImmediate::from(unsigned short i)
    465465    {
    466466        return makeInt(i);
    467467    }
    468468
    469     ALWAYS_INLINE JSValuePtr JSImmediate::from(int i)
     469    ALWAYS_INLINE JSValue JSImmediate::from(int i)
    470470    {
    471471#if !USE(ALTERNATE_JSIMMEDIATE)
     
    476476    }
    477477
    478     ALWAYS_INLINE JSValuePtr JSImmediate::from(unsigned i)
     478    ALWAYS_INLINE JSValue JSImmediate::from(unsigned i)
    479479    {
    480480        if (i > maxImmediateUInt)
     
    483483    }
    484484
    485     ALWAYS_INLINE JSValuePtr JSImmediate::from(long i)
     485    ALWAYS_INLINE JSValue JSImmediate::from(long i)
    486486    {
    487487        if ((i < minImmediateInt) | (i > maxImmediateInt))
     
    490490    }
    491491
    492     ALWAYS_INLINE JSValuePtr JSImmediate::from(unsigned long i)
     492    ALWAYS_INLINE JSValue JSImmediate::from(unsigned long i)
    493493    {
    494494        if (i > maxImmediateUInt)
     
    497497    }
    498498
    499     ALWAYS_INLINE JSValuePtr JSImmediate::from(long long i)
     499    ALWAYS_INLINE JSValue JSImmediate::from(long long i)
    500500    {
    501501        if ((i < minImmediateInt) | (i > maxImmediateInt))
     
    504504    }
    505505
    506     ALWAYS_INLINE JSValuePtr JSImmediate::from(unsigned long long i)
     506    ALWAYS_INLINE JSValue JSImmediate::from(unsigned long long i)
    507507    {
    508508        if (i > maxImmediateUInt)
     
    511511    }
    512512
    513     ALWAYS_INLINE JSValuePtr JSImmediate::from(double d)
     513    ALWAYS_INLINE JSValue JSImmediate::from(double d)
    514514    {
    515515        const int intVal = static_cast<int>(d);
     
    522522    }
    523523
    524     ALWAYS_INLINE int32_t JSImmediate::getTruncatedInt32(JSValuePtr v)
     524    ALWAYS_INLINE int32_t JSImmediate::getTruncatedInt32(JSValue v)
    525525    {
    526526        ASSERT(isIntegerNumber(v));
     
    528528    }
    529529
    530     ALWAYS_INLINE double JSImmediate::toDouble(JSValuePtr v)
     530    ALWAYS_INLINE double JSImmediate::toDouble(JSValue v)
    531531    {
    532532        ASSERT(isImmediate(v));
     
    551551    }
    552552
    553     ALWAYS_INLINE bool JSImmediate::getUInt32(JSValuePtr v, uint32_t& i)
     553    ALWAYS_INLINE bool JSImmediate::getUInt32(JSValue v, uint32_t& i)
    554554    {
    555555        i = uintValue(v);
     
    557557    }
    558558
    559     ALWAYS_INLINE bool JSImmediate::getTruncatedInt32(JSValuePtr v, int32_t& i)
     559    ALWAYS_INLINE bool JSImmediate::getTruncatedInt32(JSValue v, int32_t& i)
    560560    {
    561561        i = intValue(v);
     
    563563    }
    564564
    565     ALWAYS_INLINE bool JSImmediate::getTruncatedUInt32(JSValuePtr v, uint32_t& i)
     565    ALWAYS_INLINE bool JSImmediate::getTruncatedUInt32(JSValue v, uint32_t& i)
    566566    {
    567567        return getUInt32(v, i);
     
    574574    uint32_t toUInt32SlowCase(double, bool& ok);
    575575
    576     inline JSValuePtr::JSValuePtr(ImpossibleValueTag)
     576    inline JSValue::JSValue(ImpossibleValueTag)
    577577    {
    578578        *this = JSImmediate::impossibleValue();
    579579    }
    580580
    581     inline JSValuePtr::JSValuePtr(JSNullTag)
     581    inline JSValue::JSValue(JSNullTag)
    582582    {
    583583        *this = JSImmediate::nullImmediate();
    584584    }
    585585   
    586     inline JSValuePtr::JSValuePtr(JSUndefinedTag)
     586    inline JSValue::JSValue(JSUndefinedTag)
    587587    {
    588588        *this = JSImmediate::undefinedImmediate();
    589589    }
    590590
    591     inline JSValuePtr::JSValuePtr(JSTrueTag)
     591    inline JSValue::JSValue(JSTrueTag)
    592592    {
    593593        *this = JSImmediate::trueImmediate();
    594594    }
    595595
    596     inline JSValuePtr::JSValuePtr(JSFalseTag)
     596    inline JSValue::JSValue(JSFalseTag)
    597597    {
    598598        *this = JSImmediate::falseImmediate();
    599599    }
    600600
    601     inline bool JSValuePtr::isUndefinedOrNull() const
     601    inline bool JSValue::isUndefinedOrNull() const
    602602    {
    603603        return JSImmediate::isUndefinedOrNull(asValue());
    604604    }
    605605
    606     inline bool JSValuePtr::isBoolean() const
     606    inline bool JSValue::isBoolean() const
    607607    {
    608608        return JSImmediate::isBoolean(asValue());
    609609    }
    610610
    611     inline bool JSValuePtr::getBoolean(bool& v) const
     611    inline bool JSValue::getBoolean(bool& v) const
    612612    {
    613613        if (JSImmediate::isBoolean(asValue())) {
     
    619619    }
    620620
    621     inline bool JSValuePtr::getBoolean() const
     621    inline bool JSValue::getBoolean() const
    622622    {
    623623        return asValue() == jsBoolean(true);
    624624    }
    625625
    626     ALWAYS_INLINE int32_t JSValuePtr::toInt32(ExecState* exec) const
     626    ALWAYS_INLINE int32_t JSValue::toInt32(ExecState* exec) const
    627627    {
    628628        int32_t i;
     
    633633    }
    634634
    635     inline uint32_t JSValuePtr::toUInt32(ExecState* exec) const
     635    inline uint32_t JSValue::toUInt32(ExecState* exec) const
    636636    {
    637637        uint32_t i;
     
    660660    }
    661661
    662     inline int32_t JSValuePtr::toInt32(ExecState* exec, bool& ok) const
     662    inline int32_t JSValue::toInt32(ExecState* exec, bool& ok) const
    663663    {
    664664        int32_t i;
     
    670670    }
    671671
    672     inline uint32_t JSValuePtr::toUInt32(ExecState* exec, bool& ok) const
     672    inline uint32_t JSValue::toUInt32(ExecState* exec, bool& ok) const
    673673    {
    674674        uint32_t i;
     
    680680    }
    681681
    682     inline bool JSValuePtr::isCell() const
     682    inline bool JSValue::isCell() const
    683683    {
    684684        return !JSImmediate::isImmediate(asValue());
    685685    }
    686686
    687     inline bool JSValuePtr::isInt32Fast() const
     687    inline bool JSValue::isInt32Fast() const
    688688    {
    689689        return JSImmediate::isIntegerNumber(asValue());
    690690    }
    691691
    692     inline int32_t JSValuePtr::getInt32Fast() const
     692    inline int32_t JSValue::getInt32Fast() const
    693693    {
    694694        ASSERT(isInt32Fast());
     
    696696    }
    697697
    698     inline bool JSValuePtr::isUInt32Fast() const
     698    inline bool JSValue::isUInt32Fast() const
    699699    {
    700700        return JSImmediate::isPositiveIntegerNumber(asValue());
    701701    }
    702702
    703     inline uint32_t JSValuePtr::getUInt32Fast() const
     703    inline uint32_t JSValue::getUInt32Fast() const
    704704    {
    705705        ASSERT(isUInt32Fast());
     
    707707    }
    708708
    709     inline JSValuePtr JSValuePtr::makeInt32Fast(int32_t i)
     709    inline JSValue JSValue::makeInt32Fast(int32_t i)
    710710    {
    711711        return JSImmediate::from(i);
    712712    }
    713713
    714     inline bool JSValuePtr::areBothInt32Fast(JSValuePtr v1, JSValuePtr v2)
     714    inline bool JSValue::areBothInt32Fast(JSValue v1, JSValue v2)
    715715    {
    716716        return JSImmediate::areBothImmediateIntegerNumbers(v1, v2);
     
    719719    class JSFastMath {
    720720    public:
    721         static ALWAYS_INLINE bool canDoFastBitwiseOperations(JSValuePtr v1, JSValuePtr v2)
     721        static ALWAYS_INLINE bool canDoFastBitwiseOperations(JSValue v1, JSValue v2)
    722722        {
    723723            return JSImmediate::areBothImmediateIntegerNumbers(v1, v2);
    724724        }
    725725
    726         static ALWAYS_INLINE JSValuePtr equal(JSValuePtr v1, JSValuePtr v2)
     726        static ALWAYS_INLINE JSValue equal(JSValue v1, JSValue v2)
    727727        {
    728728            ASSERT(canDoFastBitwiseOperations(v1, v2));
     
    730730        }
    731731
    732         static ALWAYS_INLINE JSValuePtr notEqual(JSValuePtr v1, JSValuePtr v2)
     732        static ALWAYS_INLINE JSValue notEqual(JSValue v1, JSValue v2)
    733733        {
    734734            ASSERT(canDoFastBitwiseOperations(v1, v2));
     
    736736        }
    737737
    738         static ALWAYS_INLINE JSValuePtr andImmediateNumbers(JSValuePtr v1, JSValuePtr v2)
     738        static ALWAYS_INLINE JSValue andImmediateNumbers(JSValue v1, JSValue v2)
    739739        {
    740740            ASSERT(canDoFastBitwiseOperations(v1, v2));
     
    742742        }
    743743
    744         static ALWAYS_INLINE JSValuePtr xorImmediateNumbers(JSValuePtr v1, JSValuePtr v2)
     744        static ALWAYS_INLINE JSValue xorImmediateNumbers(JSValue v1, JSValue v2)
    745745        {
    746746            ASSERT(canDoFastBitwiseOperations(v1, v2));
     
    748748        }
    749749
    750         static ALWAYS_INLINE JSValuePtr orImmediateNumbers(JSValuePtr v1, JSValuePtr v2)
     750        static ALWAYS_INLINE JSValue orImmediateNumbers(JSValue v1, JSValue v2)
    751751        {
    752752            ASSERT(canDoFastBitwiseOperations(v1, v2));
     
    754754        }
    755755
    756         static ALWAYS_INLINE bool canDoFastRshift(JSValuePtr v1, JSValuePtr v2)
     756        static ALWAYS_INLINE bool canDoFastRshift(JSValue v1, JSValue v2)
    757757        {
    758758            return JSImmediate::areBothImmediateIntegerNumbers(v1, v2);
    759759        }
    760760
    761         static ALWAYS_INLINE bool canDoFastUrshift(JSValuePtr v1, JSValuePtr v2)
     761        static ALWAYS_INLINE bool canDoFastUrshift(JSValue v1, JSValue v2)
    762762        {
    763763            return JSImmediate::areBothImmediateIntegerNumbers(v1, v2) && !(JSImmediate::rawValue(v1) & JSImmediate::signBit);
    764764        }
    765765
    766         static ALWAYS_INLINE JSValuePtr rightShiftImmediateNumbers(JSValuePtr val, JSValuePtr shift)
     766        static ALWAYS_INLINE JSValue rightShiftImmediateNumbers(JSValue val, JSValue shift)
    767767        {
    768768            ASSERT(canDoFastRshift(val, shift) || canDoFastUrshift(val, shift));
     
    774774        }
    775775
    776         static ALWAYS_INLINE bool canDoFastAdditiveOperations(JSValuePtr v)
     776        static ALWAYS_INLINE bool canDoFastAdditiveOperations(JSValue v)
    777777        {
    778778            // Number is non-negative and an operation involving two of these can't overflow.
     
    781781        }
    782782
    783         static ALWAYS_INLINE bool canDoFastAdditiveOperations(JSValuePtr v1, JSValuePtr v2)
     783        static ALWAYS_INLINE bool canDoFastAdditiveOperations(JSValue v1, JSValue v2)
    784784        {
    785785            // Number is non-negative and an operation involving two of these can't overflow.
     
    788788        }
    789789
    790         static ALWAYS_INLINE JSValuePtr addImmediateNumbers(JSValuePtr v1, JSValuePtr v2)
     790        static ALWAYS_INLINE JSValue addImmediateNumbers(JSValue v1, JSValue v2)
    791791        {
    792792            ASSERT(canDoFastAdditiveOperations(v1, v2));
     
    794794        }
    795795
    796         static ALWAYS_INLINE JSValuePtr subImmediateNumbers(JSValuePtr v1, JSValuePtr v2)
     796        static ALWAYS_INLINE JSValue subImmediateNumbers(JSValue v1, JSValue v2)
    797797        {
    798798            ASSERT(canDoFastAdditiveOperations(v1, v2));
     
    800800        }
    801801
    802         static ALWAYS_INLINE JSValuePtr incImmediateNumber(JSValuePtr v)
     802        static ALWAYS_INLINE JSValue incImmediateNumber(JSValue v)
    803803        {
    804804            ASSERT(canDoFastAdditiveOperations(v));
     
    806806        }
    807807
    808         static ALWAYS_INLINE JSValuePtr decImmediateNumber(JSValuePtr v)
     808        static ALWAYS_INLINE JSValue decImmediateNumber(JSValue v)
    809809        {
    810810            ASSERT(canDoFastAdditiveOperations(v));
  • trunk/JavaScriptCore/runtime/JSNotAnObject.cpp

    r39809 r43122  
    3838
    3939// JSValue methods
    40 JSValuePtr JSNotAnObject::toPrimitive(ExecState* exec, PreferredPrimitiveType) const
     40JSValue JSNotAnObject::toPrimitive(ExecState* exec, PreferredPrimitiveType) const
    4141{
    4242    ASSERT_UNUSED(exec, exec->hadException() && exec->exception() == m_exception);
     
    4444}
    4545
    46 bool JSNotAnObject::getPrimitiveNumber(ExecState* exec, double&, JSValuePtr&)
     46bool JSNotAnObject::getPrimitiveNumber(ExecState* exec, double&, JSValue&)
    4747{
    4848    ASSERT_UNUSED(exec, exec->hadException() && exec->exception() == m_exception);
     
    9595}
    9696
    97 void JSNotAnObject::put(ExecState* exec, const Identifier& , JSValuePtr, PutPropertySlot&)
     97void JSNotAnObject::put(ExecState* exec, const Identifier& , JSValue, PutPropertySlot&)
    9898{
    9999    ASSERT_UNUSED(exec, exec->hadException() && exec->exception() == m_exception);
    100100}
    101101
    102 void JSNotAnObject::put(ExecState* exec, unsigned, JSValuePtr)
     102void JSNotAnObject::put(ExecState* exec, unsigned, JSValue)
    103103{
    104104    ASSERT_UNUSED(exec, exec->hadException() && exec->exception() == m_exception);
  • trunk/JavaScriptCore/runtime/JSNotAnObject.h

    r39670 r43122  
    6161        }
    6262
    63         static PassRefPtr<Structure> createStructure(JSValuePtr prototype)
     63        static PassRefPtr<Structure> createStructure(JSValue prototype)
    6464        {
    6565            return Structure::create(prototype, TypeInfo(ObjectType));
     
    6868     private:
    6969        // JSValue methods
    70         virtual JSValuePtr toPrimitive(ExecState*, PreferredPrimitiveType) const;
    71         virtual bool getPrimitiveNumber(ExecState*, double& number, JSValuePtr&);
     70        virtual JSValue toPrimitive(ExecState*, PreferredPrimitiveType) const;
     71        virtual bool getPrimitiveNumber(ExecState*, double& number, JSValue&);
    7272        virtual bool toBoolean(ExecState*) const;
    7373        virtual double toNumber(ExecState*) const;
     
    8282        virtual bool getOwnPropertySlot(ExecState*, unsigned propertyName, PropertySlot&);
    8383
    84         virtual void put(ExecState*, const Identifier& propertyName, JSValuePtr, PutPropertySlot&);
    85         virtual void put(ExecState*, unsigned propertyName, JSValuePtr);
     84        virtual void put(ExecState*, const Identifier& propertyName, JSValue, PutPropertySlot&);
     85        virtual void put(ExecState*, unsigned propertyName, JSValue);
    8686
    8787        virtual bool deleteProperty(ExecState*, const Identifier& propertyName);
  • trunk/JavaScriptCore/runtime/JSNumberCell.cpp

    r39958 r43122  
    3131#if !USE(ALTERNATE_JSIMMEDIATE)
    3232
    33 JSValuePtr JSNumberCell::toPrimitive(ExecState*, PreferredPrimitiveType) const
     33JSValue JSNumberCell::toPrimitive(ExecState*, PreferredPrimitiveType) const
    3434{
    3535    return const_cast<JSNumberCell*>(this);
    3636}
    3737
    38 bool JSNumberCell::getPrimitiveNumber(ExecState*, double& number, JSValuePtr& value)
     38bool JSNumberCell::getPrimitiveNumber(ExecState*, double& number, JSValue& value)
    3939{
    4040    number = m_value;
     
    9999}
    100100
    101 JSValuePtr JSNumberCell::getJSNumber()
     101JSValue JSNumberCell::getJSNumber()
    102102{
    103103    return this;
    104104}
    105105
    106 JSValuePtr jsNumberCell(ExecState* exec, double d)
     106JSValue jsNumberCell(ExecState* exec, double d)
    107107{
    108108    return new (exec) JSNumberCell(exec, d);
    109109}
    110110
    111 JSValuePtr jsNumberCell(JSGlobalData* globalData, double d)
     111JSValue jsNumberCell(JSGlobalData* globalData, double d)
    112112{
    113113    return new (globalData) JSNumberCell(globalData, d);
     
    116116#else
    117117
    118 JSValuePtr jsNumberCell(ExecState*, double)
     118JSValue jsNumberCell(ExecState*, double)
    119119{
    120120    ASSERT_NOT_REACHED();
  • trunk/JavaScriptCore/runtime/JSNumberCell.h

    r40174 r43122  
    3636    extern const double Inf;
    3737
    38     JSValuePtr jsNumberCell(ExecState*, double);
     38    JSValue jsNumberCell(ExecState*, double);
    3939
    4040#if !USE(ALTERNATE_JSIMMEDIATE)
     
    5151    class JSNumberCell : public JSCell {
    5252        friend class JIT;
    53         friend JSValuePtr jsNumberCell(JSGlobalData*, double);
    54         friend JSValuePtr jsNumberCell(ExecState*, double);
     53        friend JSValue jsNumberCell(JSGlobalData*, double);
     54        friend JSValue jsNumberCell(ExecState*, double);
    5555    public:
    5656        double value() const { return m_value; }
    5757
    58         virtual JSValuePtr toPrimitive(ExecState*, PreferredPrimitiveType) const;
    59         virtual bool getPrimitiveNumber(ExecState*, double& number, JSValuePtr& value);
     58        virtual JSValue toPrimitive(ExecState*, PreferredPrimitiveType) const;
     59        virtual bool getPrimitiveNumber(ExecState*, double& number, JSValue& value);
    6060        virtual bool toBoolean(ExecState*) const;
    6161        virtual double toNumber(ExecState*) const;
     
    6565        virtual UString toThisString(ExecState*) const;
    6666        virtual JSObject* toThisObject(ExecState*) const;
    67         virtual JSValuePtr getJSNumber();
     67        virtual JSValue getJSNumber();
    6868
    6969        void* operator new(size_t size, ExecState* exec)
     
    8585        }
    8686
    87         static PassRefPtr<Structure> createStructure(JSValuePtr proto) { return Structure::create(proto, TypeInfo(NumberType, NeedsThisConversion)); }
     87        static PassRefPtr<Structure> createStructure(JSValue proto) { return Structure::create(proto, TypeInfo(NumberType, NeedsThisConversion)); }
    8888
    8989    private:
     
    107107    };
    108108
    109     JSValuePtr jsNumberCell(JSGlobalData*, double);
    110 
    111     inline bool isNumberCell(JSValuePtr v)
     109    JSValue jsNumberCell(JSGlobalData*, double);
     110
     111    inline bool isNumberCell(JSValue v)
    112112    {
    113113        return v.isCell() && v.asCell()->isNumber();
    114114    }
    115115
    116     inline JSNumberCell* asNumberCell(JSValuePtr v)
     116    inline JSNumberCell* asNumberCell(JSValue v)
    117117    {
    118118        ASSERT(isNumberCell(v));
     
    120120    }
    121121
    122     ALWAYS_INLINE JSValuePtr jsNumber(ExecState* exec, double d)
    123     {
    124         JSValuePtr v = JSImmediate::from(d);
     122    ALWAYS_INLINE JSValue jsNumber(ExecState* exec, double d)
     123    {
     124        JSValue v = JSImmediate::from(d);
    125125        return v ? v : jsNumberCell(exec, d);
    126126    }
    127127
    128     ALWAYS_INLINE JSValuePtr jsNumber(ExecState* exec, int i)
    129     {
    130         JSValuePtr v = JSImmediate::from(i);
     128    ALWAYS_INLINE JSValue jsNumber(ExecState* exec, int i)
     129    {
     130        JSValue v = JSImmediate::from(i);
    131131        return v ? v : jsNumberCell(exec, i);
    132132    }
    133133
    134     ALWAYS_INLINE JSValuePtr jsNumber(ExecState* exec, unsigned i)
    135     {
    136         JSValuePtr v = JSImmediate::from(i);
     134    ALWAYS_INLINE JSValue jsNumber(ExecState* exec, unsigned i)
     135    {
     136        JSValue v = JSImmediate::from(i);
    137137        return v ? v : jsNumberCell(exec, i);
    138138    }
    139139
    140     ALWAYS_INLINE JSValuePtr jsNumber(ExecState* exec, long i)
    141     {
    142         JSValuePtr v = JSImmediate::from(i);
     140    ALWAYS_INLINE JSValue jsNumber(ExecState* exec, long i)
     141    {
     142        JSValue v = JSImmediate::from(i);
    143143        return v ? v : jsNumberCell(exec, i);
    144144    }
    145145
    146     ALWAYS_INLINE JSValuePtr jsNumber(ExecState* exec, unsigned long i)
    147     {
    148         JSValuePtr v = JSImmediate::from(i);
     146    ALWAYS_INLINE JSValue jsNumber(ExecState* exec, unsigned long i)
     147    {
     148        JSValue v = JSImmediate::from(i);
    149149        return v ? v : jsNumberCell(exec, i);
    150150    }
    151151
    152     ALWAYS_INLINE JSValuePtr jsNumber(ExecState* exec, long long i)
    153     {
    154         JSValuePtr v = JSImmediate::from(i);
     152    ALWAYS_INLINE JSValue jsNumber(ExecState* exec, long long i)
     153    {
     154        JSValue v = JSImmediate::from(i);
    155155        return v ? v : jsNumberCell(exec, static_cast<double>(i));
    156156    }
    157157
    158     ALWAYS_INLINE JSValuePtr jsNumber(ExecState* exec, unsigned long long i)
    159     {
    160         JSValuePtr v = JSImmediate::from(i);
     158    ALWAYS_INLINE JSValue jsNumber(ExecState* exec, unsigned long long i)
     159    {
     160        JSValue v = JSImmediate::from(i);
    161161        return v ? v : jsNumberCell(exec, static_cast<double>(i));
    162162    }
    163163
    164     ALWAYS_INLINE JSValuePtr jsNumber(JSGlobalData* globalData, double d)
    165     {
    166         JSValuePtr v = JSImmediate::from(d);
     164    ALWAYS_INLINE JSValue jsNumber(JSGlobalData* globalData, double d)
     165    {
     166        JSValue v = JSImmediate::from(d);
    167167        return v ? v : jsNumberCell(globalData, d);
    168168    }
    169169
    170     ALWAYS_INLINE JSValuePtr jsNumber(JSGlobalData* globalData, int i)
    171     {
    172         JSValuePtr v = JSImmediate::from(i);
     170    ALWAYS_INLINE JSValue jsNumber(JSGlobalData* globalData, int i)
     171    {
     172        JSValue v = JSImmediate::from(i);
    173173        return v ? v : jsNumberCell(globalData, i);
    174174    }
    175175
    176     ALWAYS_INLINE JSValuePtr jsNumber(JSGlobalData* globalData, unsigned i)
    177     {
    178         JSValuePtr v = JSImmediate::from(i);
     176    ALWAYS_INLINE JSValue jsNumber(JSGlobalData* globalData, unsigned i)
     177    {
     178        JSValue v = JSImmediate::from(i);
    179179        return v ? v : jsNumberCell(globalData, i);
    180180    }
    181181
    182     ALWAYS_INLINE JSValuePtr jsNumber(JSGlobalData* globalData, long i)
    183     {
    184         JSValuePtr v = JSImmediate::from(i);
     182    ALWAYS_INLINE JSValue jsNumber(JSGlobalData* globalData, long i)
     183    {
     184        JSValue v = JSImmediate::from(i);
    185185        return v ? v : jsNumberCell(globalData, i);
    186186    }
    187187
    188     ALWAYS_INLINE JSValuePtr jsNumber(JSGlobalData* globalData, unsigned long i)
    189     {
    190         JSValuePtr v = JSImmediate::from(i);
     188    ALWAYS_INLINE JSValue jsNumber(JSGlobalData* globalData, unsigned long i)
     189    {
     190        JSValue v = JSImmediate::from(i);
    191191        return v ? v : jsNumberCell(globalData, i);
    192192    }
    193193
    194     ALWAYS_INLINE JSValuePtr jsNumber(JSGlobalData* globalData, long long i)
    195     {
    196         JSValuePtr v = JSImmediate::from(i);
     194    ALWAYS_INLINE JSValue jsNumber(JSGlobalData* globalData, long long i)
     195    {
     196        JSValue v = JSImmediate::from(i);
    197197        return v ? v : jsNumberCell(globalData, static_cast<double>(i));
    198198    }
    199199
    200     ALWAYS_INLINE JSValuePtr jsNumber(JSGlobalData* globalData, unsigned long long i)
    201     {
    202         JSValuePtr v = JSImmediate::from(i);
     200    ALWAYS_INLINE JSValue jsNumber(JSGlobalData* globalData, unsigned long long i)
     201    {
     202        JSValue v = JSImmediate::from(i);
    203203        return v ? v : jsNumberCell(globalData, static_cast<double>(i));
    204204    }
    205205
    206     inline bool JSValuePtr::isDoubleNumber() const
     206    inline bool JSValue::isDoubleNumber() const
    207207    {
    208208        return isNumberCell(asValue());
    209209    }
    210210
    211     inline double JSValuePtr::getDoubleNumber() const
     211    inline double JSValue::getDoubleNumber() const
    212212    {
    213213        return asNumberCell(asValue())->value();
    214214    }
    215215
    216     inline bool JSValuePtr::isNumber() const
     216    inline bool JSValue::isNumber() const
    217217    {
    218218        return JSImmediate::isNumber(asValue()) || isDoubleNumber();
    219219    }
    220220
    221     inline double JSValuePtr::uncheckedGetNumber() const
     221    inline double JSValue::uncheckedGetNumber() const
    222222    {
    223223        ASSERT(isNumber());
     
    227227#else
    228228
    229     ALWAYS_INLINE JSValuePtr jsNumber(ExecState*, double d)
    230     {
    231         JSValuePtr v = JSImmediate::from(d);
    232         ASSERT(v);
    233         return v;
    234     }
    235 
    236     ALWAYS_INLINE JSValuePtr jsNumber(ExecState*, int i)
    237     {
    238         JSValuePtr v = JSImmediate::from(i);
    239         ASSERT(v);
    240         return v;
    241     }
    242 
    243     ALWAYS_INLINE JSValuePtr jsNumber(ExecState*, unsigned i)
    244     {
    245         JSValuePtr v = JSImmediate::from(i);
    246         ASSERT(v);
    247         return v;
    248     }
    249 
    250     ALWAYS_INLINE JSValuePtr jsNumber(ExecState*, long i)
    251     {
    252         JSValuePtr v = JSImmediate::from(i);
    253         ASSERT(v);
    254         return v;
    255     }
    256 
    257     ALWAYS_INLINE JSValuePtr jsNumber(ExecState*, unsigned long i)
    258     {
    259         JSValuePtr v = JSImmediate::from(i);
    260         ASSERT(v);
    261         return v;
    262     }
    263 
    264     ALWAYS_INLINE JSValuePtr jsNumber(ExecState*, long long i)
    265     {
    266         JSValuePtr v = JSImmediate::from(static_cast<double>(i));
    267         ASSERT(v);
    268         return v;
    269     }
    270 
    271     ALWAYS_INLINE JSValuePtr jsNumber(ExecState*, unsigned long long i)
    272     {
    273         JSValuePtr v = JSImmediate::from(static_cast<double>(i));
    274         ASSERT(v);
    275         return v;
    276     }
    277 
    278     ALWAYS_INLINE JSValuePtr jsNumber(JSGlobalData*, double d)
    279     {
    280         JSValuePtr v = JSImmediate::from(d);
    281         ASSERT(v);
    282         return v;
    283     }
    284 
    285     ALWAYS_INLINE JSValuePtr jsNumber(JSGlobalData*, int i)
    286     {
    287         JSValuePtr v = JSImmediate::from(i);
    288         ASSERT(v);
    289         return v;
    290     }
    291 
    292     ALWAYS_INLINE JSValuePtr jsNumber(JSGlobalData*, unsigned i)
    293     {
    294         JSValuePtr v = JSImmediate::from(i);
    295         ASSERT(v);
    296         return v;
    297     }
    298 
    299     ALWAYS_INLINE JSValuePtr jsNumber(JSGlobalData*, long i)
    300     {
    301         JSValuePtr v = JSImmediate::from(i);
    302         ASSERT(v);
    303         return v;
    304     }
    305 
    306     ALWAYS_INLINE JSValuePtr jsNumber(JSGlobalData*, unsigned long i)
    307     {
    308         JSValuePtr v = JSImmediate::from(i);
    309         ASSERT(v);
    310         return v;
    311     }
    312 
    313     ALWAYS_INLINE JSValuePtr jsNumber(JSGlobalData*, long long i)
    314     {
    315         JSValuePtr v = JSImmediate::from(static_cast<double>(i));
    316         ASSERT(v);
    317         return v;
    318     }
    319 
    320     ALWAYS_INLINE JSValuePtr jsNumber(JSGlobalData*, unsigned long long i)
    321     {
    322         JSValuePtr v = JSImmediate::from(static_cast<double>(i));
    323         ASSERT(v);
    324         return v;
    325     }
    326 
    327     inline bool JSValuePtr::isDoubleNumber() const
     229    ALWAYS_INLINE JSValue jsNumber(ExecState*, double d)
     230    {
     231        JSValue v = JSImmediate::from(d);
     232        ASSERT(v);
     233        return v;
     234    }
     235
     236    ALWAYS_INLINE JSValue jsNumber(ExecState*, int i)
     237    {
     238        JSValue v = JSImmediate::from(i);
     239        ASSERT(v);
     240        return v;
     241    }
     242
     243    ALWAYS_INLINE JSValue jsNumber(ExecState*, unsigned i)
     244    {
     245        JSValue v = JSImmediate::from(i);
     246        ASSERT(v);
     247        return v;
     248    }
     249
     250    ALWAYS_INLINE JSValue jsNumber(ExecState*, long i)
     251    {
     252        JSValue v = JSImmediate::from(i);
     253        ASSERT(v);
     254        return v;
     255    }
     256
     257    ALWAYS_INLINE JSValue jsNumber(ExecState*, unsigned long i)
     258    {
     259        JSValue v = JSImmediate::from(i);
     260        ASSERT(v);
     261        return v;
     262    }
     263
     264    ALWAYS_INLINE JSValue jsNumber(ExecState*, long long i)
     265    {
     266        JSValue v = JSImmediate::from(static_cast<double>(i));
     267        ASSERT(v);
     268        return v;
     269    }
     270
     271    ALWAYS_INLINE JSValue jsNumber(ExecState*, unsigned long long i)
     272    {
     273        JSValue v = JSImmediate::from(static_cast<double>(i));
     274        ASSERT(v);
     275        return v;
     276    }
     277
     278    ALWAYS_INLINE JSValue jsNumber(JSGlobalData*, double d)
     279    {
     280        JSValue v = JSImmediate::from(d);
     281        ASSERT(v);
     282        return v;
     283    }
     284
     285    ALWAYS_INLINE JSValue jsNumber(JSGlobalData*, int i)
     286    {
     287        JSValue v = JSImmediate::from(i);
     288        ASSERT(v);
     289        return v;
     290    }
     291
     292    ALWAYS_INLINE JSValue jsNumber(JSGlobalData*, unsigned i)
     293    {
     294        JSValue v = JSImmediate::from(i);
     295        ASSERT(v);
     296        return v;
     297    }
     298
     299    ALWAYS_INLINE JSValue jsNumber(JSGlobalData*, long i)
     300    {
     301        JSValue v = JSImmediate::from(i);
     302        ASSERT(v);
     303        return v;
     304    }
     305
     306    ALWAYS_INLINE JSValue jsNumber(JSGlobalData*, unsigned long i)
     307    {
     308        JSValue v = JSImmediate::from(i);
     309        ASSERT(v);
     310        return v;
     311    }
     312
     313    ALWAYS_INLINE JSValue jsNumber(JSGlobalData*, long long i)
     314    {
     315        JSValue v = JSImmediate::from(static_cast<double>(i));
     316        ASSERT(v);
     317        return v;
     318    }
     319
     320    ALWAYS_INLINE JSValue jsNumber(JSGlobalData*, unsigned long long i)
     321    {
     322        JSValue v = JSImmediate::from(static_cast<double>(i));
     323        ASSERT(v);
     324        return v;
     325    }
     326
     327    inline bool JSValue::isDoubleNumber() const
    328328    {
    329329        return JSImmediate::isDoubleNumber(asValue());
    330330    }
    331331
    332     inline double JSValuePtr::getDoubleNumber() const
     332    inline double JSValue::getDoubleNumber() const
    333333    {
    334334        return JSImmediate::doubleValue(asValue());
    335335    }
    336336
    337     inline bool JSValuePtr::isNumber() const
     337    inline bool JSValue::isNumber() const
    338338    {
    339339        return JSImmediate::isNumber(asValue());
    340340    }
    341341
    342     inline double JSValuePtr::uncheckedGetNumber() const
     342    inline double JSValue::uncheckedGetNumber() const
    343343    {
    344344        ASSERT(isNumber());
     
    348348#endif
    349349
    350     ALWAYS_INLINE JSValuePtr jsNumber(ExecState*, char i)
    351     {
    352         ASSERT(JSImmediate::from(i));
    353         return JSImmediate::from(i);
    354     }
    355 
    356     ALWAYS_INLINE JSValuePtr jsNumber(ExecState*, unsigned char i)
    357     {
    358         ASSERT(JSImmediate::from(i));
    359         return JSImmediate::from(i);
    360     }
    361 
    362     ALWAYS_INLINE JSValuePtr jsNumber(ExecState*, short i)
    363     {
    364         ASSERT(JSImmediate::from(i));
    365         return JSImmediate::from(i);
    366     }
    367 
    368     ALWAYS_INLINE JSValuePtr jsNumber(ExecState*, unsigned short i)
    369     {
    370         ASSERT(JSImmediate::from(i));
    371         return JSImmediate::from(i);
    372     }
    373 
    374     ALWAYS_INLINE JSValuePtr jsNumber(JSGlobalData*, short i)
    375     {
    376         ASSERT(JSImmediate::from(i));
    377         return JSImmediate::from(i);
    378     }
    379 
    380     ALWAYS_INLINE JSValuePtr jsNumber(JSGlobalData*, unsigned short i)
    381     {
    382         ASSERT(JSImmediate::from(i));
    383         return JSImmediate::from(i);
    384     }
    385 
    386     inline JSValuePtr jsNaN(ExecState* exec)
     350    ALWAYS_INLINE JSValue jsNumber(ExecState*, char i)
     351    {
     352        ASSERT(JSImmediate::from(i));
     353        return JSImmediate::from(i);
     354    }
     355
     356    ALWAYS_INLINE JSValue jsNumber(ExecState*, unsigned char i)
     357    {
     358        ASSERT(JSImmediate::from(i));
     359        return JSImmediate::from(i);
     360    }
     361
     362    ALWAYS_INLINE JSValue jsNumber(ExecState*, short i)
     363    {
     364        ASSERT(JSImmediate::from(i));
     365        return JSImmediate::from(i);
     366    }
     367
     368    ALWAYS_INLINE JSValue jsNumber(ExecState*, unsigned short i)
     369    {
     370        ASSERT(JSImmediate::from(i));
     371        return JSImmediate::from(i);
     372    }
     373
     374    ALWAYS_INLINE JSValue jsNumber(JSGlobalData*, short i)
     375    {
     376        ASSERT(JSImmediate::from(i));
     377        return JSImmediate::from(i);
     378    }
     379
     380    ALWAYS_INLINE JSValue jsNumber(JSGlobalData*, unsigned short i)
     381    {
     382        ASSERT(JSImmediate::from(i));
     383        return JSImmediate::from(i);
     384    }
     385
     386    inline JSValue jsNaN(ExecState* exec)
    387387    {
    388388        return jsNumber(exec, NaN);
    389389    }
    390390
    391     inline JSValuePtr jsNaN(JSGlobalData* globalData)
     391    inline JSValue jsNaN(JSGlobalData* globalData)
    392392    {
    393393        return jsNumber(globalData, NaN);
     
    396396    // --- JSValue inlines ----------------------------
    397397
    398     ALWAYS_INLINE JSValuePtr JSValuePtr::toJSNumber(ExecState* exec) const
     398    ALWAYS_INLINE JSValue JSValue::toJSNumber(ExecState* exec) const
    399399    {
    400400        return isNumber() ? asValue() : jsNumber(exec, this->toNumber(exec));
    401401    }
    402402
    403     inline bool JSValuePtr::getNumber(double &result) const
     403    inline bool JSValue::getNumber(double &result) const
    404404    {
    405405        if (isInt32Fast())
     
    414414    }
    415415
    416     inline bool JSValuePtr::numberToInt32(int32_t& arg)
     416    inline bool JSValue::numberToInt32(int32_t& arg)
    417417    {
    418418        if (isInt32Fast())
     
    427427    }
    428428
    429     inline bool JSValuePtr::numberToUInt32(uint32_t& arg)
     429    inline bool JSValue::numberToUInt32(uint32_t& arg)
    430430    {
    431431        if (isUInt32Fast())
  • trunk/JavaScriptCore/runtime/JSObject.cpp

    r43037 r43122  
    7272    size_t storageSize = m_structure->propertyStorageSize();
    7373    for (size_t i = 0; i < storageSize; ++i) {
    74         JSValuePtr v = m_propertyStorage[i];
     74        JSValue v = m_propertyStorage[i];
    7575        if (!v.marked())
    7676            v.mark();
     
    9999
    100100// ECMA 8.6.2.2
    101 void JSObject::put(ExecState* exec, const Identifier& propertyName, JSValuePtr value, PutPropertySlot& slot)
     101void JSObject::put(ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot)
    102102{
    103103    ASSERT(value);
     
    109109            return;
    110110
    111         JSValuePtr nextPrototypeValue = value;
     111        JSValue nextPrototypeValue = value;
    112112        while (nextPrototypeValue && nextPrototypeValue.isObject()) {
    113113            JSObject* nextPrototype = asObject(nextPrototypeValue)->unwrappedObject();
     
    124124
    125125    // Check if there are any setters or getters in the prototype chain
    126     JSValuePtr prototype;
     126    JSValue prototype;
    127127    for (JSObject* obj = this; !obj->structure()->hasGetterSetterProperties(); obj = asObject(prototype)) {
    128128        prototype = obj->prototype();
     
    138138
    139139    for (JSObject* obj = this; ; obj = asObject(prototype)) {
    140         if (JSValuePtr gs = obj->getDirect(propertyName)) {
     140        if (JSValue gs = obj->getDirect(propertyName)) {
    141141            if (gs.isGetterSetter()) {
    142142                JSObject* setterFunc = asGetterSetter(gs)->setter();       
     
    168168}
    169169
    170 void JSObject::put(ExecState* exec, unsigned propertyName, JSValuePtr value)
     170void JSObject::put(ExecState* exec, unsigned propertyName, JSValue value)
    171171{
    172172    PutPropertySlot slot;
     
    174174}
    175175
    176 void JSObject::putWithAttributes(ExecState*, const Identifier& propertyName, JSValuePtr value, unsigned attributes)
     176void JSObject::putWithAttributes(ExecState*, const Identifier& propertyName, JSValue value, unsigned attributes)
    177177{
    178178    putDirect(propertyName, value, attributes);
    179179}
    180180
    181 void JSObject::putWithAttributes(ExecState* exec, unsigned propertyName, JSValuePtr value, unsigned attributes)
     181void JSObject::putWithAttributes(ExecState* exec, unsigned propertyName, JSValue value, unsigned attributes)
    182182{
    183183    putWithAttributes(exec, Identifier::from(exec, propertyName), value, attributes);
     
    227227}
    228228
    229 static ALWAYS_INLINE JSValuePtr callDefaultValueFunction(ExecState* exec, const JSObject* object, const Identifier& propertyName)
    230 {
    231     JSValuePtr function = object->get(exec, propertyName);
     229static ALWAYS_INLINE JSValue callDefaultValueFunction(ExecState* exec, const JSObject* object, const Identifier& propertyName)
     230{
     231    JSValue function = object->get(exec, propertyName);
    232232    CallData callData;
    233233    CallType callType = function.getCallData(callData);
     
    240240        return exec->exception();
    241241
    242     JSValuePtr result = call(exec, function, callType, callData, const_cast<JSObject*>(object), exec->emptyList());
     242    JSValue result = call(exec, function, callType, callData, const_cast<JSObject*>(object), exec->emptyList());
    243243    ASSERT(!result.isGetterSetter());
    244244    if (exec->hadException())
     
    249249}
    250250
    251 bool JSObject::getPrimitiveNumber(ExecState* exec, double& number, JSValuePtr& result)
     251bool JSObject::getPrimitiveNumber(ExecState* exec, double& number, JSValue& result)
    252252{
    253253    result = defaultValue(exec, PreferNumber);
     
    257257
    258258// ECMA 8.6.2.6
    259 JSValuePtr JSObject::defaultValue(ExecState* exec, PreferredPrimitiveType hint) const
     259JSValue JSObject::defaultValue(ExecState* exec, PreferredPrimitiveType hint) const
    260260{
    261261    // Must call toString first for Date objects.
    262262    if ((hint == PreferString) || (hint != PreferNumber && prototype() == exec->lexicalGlobalObject()->datePrototype())) {
    263         JSValuePtr value = callDefaultValueFunction(exec, this, exec->propertyNames().toString);
     263        JSValue value = callDefaultValueFunction(exec, this, exec->propertyNames().toString);
    264264        if (value)
    265265            return value;
     
    268268            return value;
    269269    } else {
    270         JSValuePtr value = callDefaultValueFunction(exec, this, exec->propertyNames().valueOf);
     270        JSValue value = callDefaultValueFunction(exec, this, exec->propertyNames().valueOf);
    271271        if (value)
    272272            return value;
     
    294294void JSObject::defineGetter(ExecState* exec, const Identifier& propertyName, JSObject* getterFunction)
    295295{
    296     JSValuePtr object = getDirect(propertyName);
     296    JSValue object = getDirect(propertyName);
    297297    if (object && object.isGetterSetter()) {
    298298        ASSERT(m_structure->hasGetterSetterProperties());
     
    321321void JSObject::defineSetter(ExecState* exec, const Identifier& propertyName, JSObject* setterFunction)
    322322{
    323     JSValuePtr object = getDirect(propertyName);
     323    JSValue object = getDirect(propertyName);
    324324    if (object && object.isGetterSetter()) {
    325325        ASSERT(m_structure->hasGetterSetterProperties());
     
    346346}
    347347
    348 JSValuePtr JSObject::lookupGetter(ExecState*, const Identifier& propertyName)
     348JSValue JSObject::lookupGetter(ExecState*, const Identifier& propertyName)
    349349{
    350350    JSObject* object = this;
    351351    while (true) {
    352         if (JSValuePtr value = object->getDirect(propertyName)) {
     352        if (JSValue value = object->getDirect(propertyName)) {
    353353            if (!value.isGetterSetter())
    354354                return jsUndefined();
     
    365365}
    366366
    367 JSValuePtr JSObject::lookupSetter(ExecState*, const Identifier& propertyName)
     367JSValue JSObject::lookupSetter(ExecState*, const Identifier& propertyName)
    368368{
    369369    JSObject* object = this;
    370370    while (true) {
    371         if (JSValuePtr value = object->getDirect(propertyName)) {
     371        if (JSValue value = object->getDirect(propertyName)) {
    372372            if (!value.isGetterSetter())
    373373                return jsUndefined();
     
    384384}
    385385
    386 bool JSObject::hasInstance(ExecState* exec, JSValuePtr value, JSValuePtr proto)
     386bool JSObject::hasInstance(ExecState* exec, JSValue value, JSValue proto)
    387387{
    388388    if (!proto.isObject()) {
     
    437437double JSObject::toNumber(ExecState* exec) const
    438438{
    439     JSValuePtr primitive = toPrimitive(exec, PreferNumber);
     439    JSValue primitive = toPrimitive(exec, PreferNumber);
    440440    if (exec->hadException()) // should be picked up soon in Nodes.cpp
    441441        return 0.0;
     
    445445UString JSObject::toString(ExecState* exec) const
    446446{
    447     JSValuePtr primitive = toPrimitive(exec, PreferString);
     447    JSValue primitive = toPrimitive(exec, PreferString);
    448448    if (exec->hadException())
    449449        return "";
     
    492492}
    493493
    494 NEVER_INLINE void JSObject::fillGetterPropertySlot(PropertySlot& slot, JSValuePtr* location)
     494NEVER_INLINE void JSObject::fillGetterPropertySlot(PropertySlot& slot, JSValue* location)
    495495{
    496496    if (JSObject* getterFunction = asGetterSetter(*location)->getter())
  • trunk/JavaScriptCore/runtime/JSObject.h

    r40332 r43122  
    5252    };
    5353
    54     typedef JSValuePtr* PropertyStorage;
     54    typedef JSValue* PropertyStorage;
    5555
    5656    class JSObject : public JSCell {
     
    7070        bool inherits(const ClassInfo* classInfo) const { return JSCell::isObject(classInfo); }
    7171
    72         JSValuePtr prototype() const;
    73         void setPrototype(JSValuePtr prototype);
     72        JSValue prototype() const;
     73        void setPrototype(JSValue prototype);
    7474       
    7575        void setStructure(PassRefPtr<Structure>);
     
    8080        virtual UString className() const;
    8181
    82         JSValuePtr get(ExecState*, const Identifier& propertyName) const;
    83         JSValuePtr get(ExecState*, unsigned propertyName) const;
     82        JSValue get(ExecState*, const Identifier& propertyName) const;
     83        JSValue get(ExecState*, unsigned propertyName) const;
    8484
    8585        bool getPropertySlot(ExecState*, const Identifier& propertyName, PropertySlot&);
     
    8989        virtual bool getOwnPropertySlot(ExecState*, unsigned propertyName, PropertySlot&);
    9090
    91         virtual void put(ExecState*, const Identifier& propertyName, JSValuePtr value, PutPropertySlot&);
    92         virtual void put(ExecState*, unsigned propertyName, JSValuePtr value);
    93 
    94         virtual void putWithAttributes(ExecState*, const Identifier& propertyName, JSValuePtr value, unsigned attributes);
    95         virtual void putWithAttributes(ExecState*, unsigned propertyName, JSValuePtr value, unsigned attributes);
     91        virtual void put(ExecState*, const Identifier& propertyName, JSValue value, PutPropertySlot&);
     92        virtual void put(ExecState*, unsigned propertyName, JSValue value);
     93
     94        virtual void putWithAttributes(ExecState*, const Identifier& propertyName, JSValue value, unsigned attributes);
     95        virtual void putWithAttributes(ExecState*, unsigned propertyName, JSValue value, unsigned attributes);
    9696
    9797        bool propertyIsEnumerable(ExecState*, const Identifier& propertyName) const;
     
    104104        virtual bool deleteProperty(ExecState*, unsigned propertyName);
    105105
    106         virtual JSValuePtr defaultValue(ExecState*, PreferredPrimitiveType) const;
    107 
    108         virtual bool hasInstance(ExecState*, JSValuePtr, JSValuePtr prototypeProperty);
     106        virtual JSValue defaultValue(ExecState*, PreferredPrimitiveType) const;
     107
     108        virtual bool hasInstance(ExecState*, JSValue, JSValue prototypeProperty);
    109109
    110110        virtual void getPropertyNames(ExecState*, PropertyNameArray&);
    111111
    112         virtual JSValuePtr toPrimitive(ExecState*, PreferredPrimitiveType = NoPreference) const;
    113         virtual bool getPrimitiveNumber(ExecState*, double& number, JSValuePtr& value);
     112        virtual JSValue toPrimitive(ExecState*, PreferredPrimitiveType = NoPreference) const;
     113        virtual bool getPrimitiveNumber(ExecState*, double& number, JSValue& value);
    114114        virtual bool toBoolean(ExecState*) const;
    115115        virtual double toNumber(ExecState*) const;
     
    123123
    124124        // This get function only looks at the property map.
    125         JSValuePtr getDirect(const Identifier& propertyName) const
     125        JSValue getDirect(const Identifier& propertyName) const
    126126        {
    127127            size_t offset = m_structure->get(propertyName);
     
    129129        }
    130130
    131         JSValuePtr* getDirectLocation(const Identifier& propertyName)
     131        JSValue* getDirectLocation(const Identifier& propertyName)
    132132        {
    133133            size_t offset = m_structure->get(propertyName);
     
    135135        }
    136136
    137         JSValuePtr* getDirectLocation(const Identifier& propertyName, unsigned& attributes)
     137        JSValue* getDirectLocation(const Identifier& propertyName, unsigned& attributes)
    138138        {
    139139            size_t offset = m_structure->get(propertyName, attributes);
     
    141141        }
    142142
    143         size_t offsetForLocation(JSValuePtr* location)
     143        size_t offsetForLocation(JSValue* location)
    144144        {
    145145            return location - m_propertyStorage;
    146146        }
    147147
    148         JSValuePtr* locationForOffset(size_t offset)
     148        JSValue* locationForOffset(size_t offset)
    149149        {
    150150            return &m_propertyStorage[offset];
     
    157157        bool hasGetterSetterProperties() { return m_structure->hasGetterSetterProperties(); }
    158158
    159         void putDirect(const Identifier& propertyName, JSValuePtr value, unsigned attr = 0);
    160         void putDirect(const Identifier& propertyName, JSValuePtr value, unsigned attr, bool checkReadOnly, PutPropertySlot& slot);
     159        void putDirect(const Identifier& propertyName, JSValue value, unsigned attr = 0);
     160        void putDirect(const Identifier& propertyName, JSValue value, unsigned attr, bool checkReadOnly, PutPropertySlot& slot);
    161161        void putDirectFunction(ExecState* exec, InternalFunction* function, unsigned attr = 0);
    162         void putDirectWithoutTransition(const Identifier& propertyName, JSValuePtr value, unsigned attr = 0);
     162        void putDirectWithoutTransition(const Identifier& propertyName, JSValue value, unsigned attr = 0);
    163163        void putDirectFunctionWithoutTransition(ExecState* exec, InternalFunction* function, unsigned attr = 0);
    164164
    165165        // Fast access to known property offsets.
    166         JSValuePtr getDirectOffset(size_t offset) { return m_propertyStorage[offset]; }
    167         void putDirectOffset(size_t offset, JSValuePtr value) { m_propertyStorage[offset] = value; }
    168 
    169         void fillGetterPropertySlot(PropertySlot&, JSValuePtr* location);
     166        JSValue getDirectOffset(size_t offset) { return m_propertyStorage[offset]; }
     167        void putDirectOffset(size_t offset, JSValue value) { m_propertyStorage[offset] = value; }
     168
     169        void fillGetterPropertySlot(PropertySlot&, JSValue* location);
    170170
    171171        virtual void defineGetter(ExecState*, const Identifier& propertyName, JSObject* getterFunction);
    172172        virtual void defineSetter(ExecState*, const Identifier& propertyName, JSObject* setterFunction);
    173         virtual JSValuePtr lookupGetter(ExecState*, const Identifier& propertyName);
    174         virtual JSValuePtr lookupSetter(ExecState*, const Identifier& propertyName);
     173        virtual JSValue lookupGetter(ExecState*, const Identifier& propertyName);
     174        virtual JSValue lookupSetter(ExecState*, const Identifier& propertyName);
    175175
    176176        virtual bool isGlobalObject() const { return false; }
     
    187187        static const size_t nonInlineBaseStorageCapacity = 16;
    188188
    189         static PassRefPtr<Structure> createStructure(JSValuePtr prototype)
     189        static PassRefPtr<Structure> createStructure(JSValue prototype)
    190190        {
    191191            return Structure::create(prototype, TypeInfo(ObjectType, HasStandardGetOwnPropertySlot));
     
    204204
    205205        PropertyStorage m_propertyStorage;       
    206         JSValuePtr m_inlineStorage[inlineStorageCapacity];
     206        JSValue m_inlineStorage[inlineStorageCapacity];
    207207    };
    208208
    209     JSObject* asObject(JSValuePtr);
     209    JSObject* asObject(JSValue);
    210210
    211211    JSObject* constructEmptyObject(ExecState*);
    212212
    213 inline JSObject* asObject(JSValuePtr value)
     213inline JSObject* asObject(JSValue value)
    214214{
    215215    ASSERT(asCell(value)->isObject());
     
    235235}
    236236
    237 inline JSValuePtr JSObject::prototype() const
     237inline JSValue JSObject::prototype() const
    238238{
    239239    return m_structure->storedPrototype();
    240240}
    241241
    242 inline void JSObject::setPrototype(JSValuePtr prototype)
     242inline void JSObject::setPrototype(JSValue prototype)
    243243{
    244244    ASSERT(prototype);
     
    270270
    271271// this method is here to be after the inline declaration of JSCell::isObject
    272 inline bool JSValuePtr::isObject(const ClassInfo* classInfo) const
     272inline bool JSValue::isObject(const ClassInfo* classInfo) const
    273273{
    274274    return isCell() && asCell()->isObject(classInfo);
     
    277277ALWAYS_INLINE bool JSObject::inlineGetOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
    278278{
    279     if (JSValuePtr* location = getDirectLocation(propertyName)) {
     279    if (JSValue* location = getDirectLocation(propertyName)) {
    280280        if (m_structure->hasGetterSetterProperties() && location[0].isGetterSetter())
    281281            fillGetterPropertySlot(slot, location);
     
    297297{
    298298    unsigned attributes;
    299     if (JSValuePtr* location = getDirectLocation(propertyName, attributes)) {
     299    if (JSValue* location = getDirectLocation(propertyName, attributes)) {
    300300        if (m_structure->hasGetterSetterProperties() && location[0].isGetterSetter()) {
    301301            slotIsWriteable = false;
     
    341341        if (object->fastGetOwnPropertySlot(exec, propertyName, slot))
    342342            return true;
    343         JSValuePtr prototype = object->prototype();
     343        JSValue prototype = object->prototype();
    344344        if (!prototype.isObject())
    345345            return false;
     
    354354        if (object->getOwnPropertySlot(exec, propertyName, slot))
    355355            return true;
    356         JSValuePtr prototype = object->prototype();
     356        JSValue prototype = object->prototype();
    357357        if (!prototype.isObject())
    358358            return false;
     
    361361}
    362362
    363 inline JSValuePtr JSObject::get(ExecState* exec, const Identifier& propertyName) const
     363inline JSValue JSObject::get(ExecState* exec, const Identifier& propertyName) const
    364364{
    365365    PropertySlot slot(this);
     
    370370}
    371371
    372 inline JSValuePtr JSObject::get(ExecState* exec, unsigned propertyName) const
     372inline JSValue JSObject::get(ExecState* exec, unsigned propertyName) const
    373373{
    374374    PropertySlot slot(this);
     
    379379}
    380380
    381 inline void JSObject::putDirect(const Identifier& propertyName, JSValuePtr value, unsigned attr)
     381inline void JSObject::putDirect(const Identifier& propertyName, JSValue value, unsigned attr)
    382382{
    383383    PutPropertySlot slot;
     
    385385}
    386386
    387 inline void JSObject::putDirect(const Identifier& propertyName, JSValuePtr value, unsigned attributes, bool checkReadOnly, PutPropertySlot& slot)
     387inline void JSObject::putDirect(const Identifier& propertyName, JSValue value, unsigned attributes, bool checkReadOnly, PutPropertySlot& slot)
    388388{
    389389    ASSERT(!Heap::heap(value) || Heap::heap(value) == Heap::heap(this));
     
    446446}
    447447
    448 inline void JSObject::putDirectWithoutTransition(const Identifier& propertyName, JSValuePtr value, unsigned attributes)
     448inline void JSObject::putDirectWithoutTransition(const Identifier& propertyName, JSValue value, unsigned attributes)
    449449{
    450450    size_t currentCapacity = m_structure->propertyStorageCapacity();
     
    462462}
    463463
    464 inline JSValuePtr JSObject::toPrimitive(ExecState* exec, PreferredPrimitiveType preferredType) const
     464inline JSValue JSObject::toPrimitive(ExecState* exec, PreferredPrimitiveType preferredType) const
    465465{
    466466    return defaultValue(exec, preferredType);
    467467}
    468468
    469 inline JSValuePtr JSValuePtr::get(ExecState* exec, const Identifier& propertyName) const
     469inline JSValue JSValue::get(ExecState* exec, const Identifier& propertyName) const
    470470{
    471471    PropertySlot slot(asValue());
     
    473473}
    474474
    475 inline JSValuePtr JSValuePtr::get(ExecState* exec, const Identifier& propertyName, PropertySlot& slot) const
     475inline JSValue JSValue::get(ExecState* exec, const Identifier& propertyName, PropertySlot& slot) const
    476476{
    477477    if (UNLIKELY(!isCell())) {
     
    486486            return slot.getValue(exec, propertyName);
    487487        ASSERT(cell->isObject());
    488         JSValuePtr prototype = static_cast<JSObject*>(cell)->prototype();
     488        JSValue prototype = static_cast<JSObject*>(cell)->prototype();
    489489        if (!prototype.isObject())
    490490            return jsUndefined();
     
    493493}
    494494
    495 inline JSValuePtr JSValuePtr::get(ExecState* exec, unsigned propertyName) const
     495inline JSValue JSValue::get(ExecState* exec, unsigned propertyName) const
    496496{
    497497    PropertySlot slot(asValue());
     
    499499}
    500500
    501 inline JSValuePtr JSValuePtr::get(ExecState* exec, unsigned propertyName, PropertySlot& slot) const
     501inline JSValue JSValue::get(ExecState* exec, unsigned propertyName, PropertySlot& slot) const
    502502{
    503503    if (UNLIKELY(!isCell())) {
     
    512512            return slot.getValue(exec, propertyName);
    513513        ASSERT(cell->isObject());
    514         JSValuePtr prototype = static_cast<JSObject*>(cell)->prototype();
     514        JSValue prototype = static_cast<JSObject*>(cell)->prototype();
    515515        if (!prototype.isObject())
    516516            return jsUndefined();
     
    519519}
    520520
    521 inline void JSValuePtr::put(ExecState* exec, const Identifier& propertyName, JSValuePtr value, PutPropertySlot& slot)
     521inline void JSValue::put(ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot)
    522522{
    523523    if (UNLIKELY(!isCell())) {
     
    528528}
    529529
    530 inline void JSValuePtr::put(ExecState* exec, unsigned propertyName, JSValuePtr value)
     530inline void JSValue::put(ExecState* exec, unsigned propertyName, JSValue value)
    531531{
    532532    if (UNLIKELY(!isCell())) {
     
    541541    ASSERT(newSize > oldSize);
    542542
    543     JSValuePtr* oldPropertyStorage = m_propertyStorage;
    544     m_propertyStorage = new JSValuePtr[newSize];
     543    JSValue* oldPropertyStorage = m_propertyStorage;
     544    m_propertyStorage = new JSValue[newSize];
    545545
    546546    for (unsigned i = 0; i < oldSize; ++i)
  • trunk/JavaScriptCore/runtime/JSPropertyNameIterator.cpp

    r39670 r43122  
    3838}
    3939
    40 JSValuePtr JSPropertyNameIterator::toPrimitive(ExecState*, PreferredPrimitiveType) const
     40JSValue JSPropertyNameIterator::toPrimitive(ExecState*, PreferredPrimitiveType) const
    4141{
    4242    ASSERT_NOT_REACHED();
     
    4444}
    4545
    46 bool JSPropertyNameIterator::getPrimitiveNumber(ExecState*, double&, JSValuePtr&)
     46bool JSPropertyNameIterator::getPrimitiveNumber(ExecState*, double&, JSValue&)
    4747{
    4848    ASSERT_NOT_REACHED();
  • trunk/JavaScriptCore/runtime/JSPropertyNameIterator.h

    r41232 r43122  
    4141    class JSPropertyNameIterator : public JSCell {
    4242    public:
    43         static JSPropertyNameIterator* create(ExecState*, JSValuePtr);
     43        static JSPropertyNameIterator* create(ExecState*, JSValue);
    4444
    4545        virtual ~JSPropertyNameIterator();
    4646
    47         virtual JSValuePtr toPrimitive(ExecState*, PreferredPrimitiveType) const;
    48         virtual bool getPrimitiveNumber(ExecState*, double&, JSValuePtr&);
     47        virtual JSValue toPrimitive(ExecState*, PreferredPrimitiveType) const;
     48        virtual bool getPrimitiveNumber(ExecState*, double&, JSValue&);
    4949        virtual bool toBoolean(ExecState*) const;
    5050        virtual double toNumber(ExecState*) const;
     
    5454        virtual void mark();
    5555
    56         JSValuePtr next(ExecState*);
     56        JSValue next(ExecState*);
    5757        void invalidate();
    5858
     
    8484}
    8585
    86 inline JSPropertyNameIterator* JSPropertyNameIterator::create(ExecState* exec, JSValuePtr v)
     86inline JSPropertyNameIterator* JSPropertyNameIterator::create(ExecState* exec, JSValue v)
    8787{
    8888    if (v.isUndefinedOrNull())
     
    9595}
    9696
    97 inline JSValuePtr JSPropertyNameIterator::next(ExecState* exec)
     97inline JSValue JSPropertyNameIterator::next(ExecState* exec)
    9898{
    9999    if (m_position == m_end)
  • trunk/JavaScriptCore/runtime/JSStaticScopeObject.cpp

    r39670 r43122  
    4545}
    4646
    47 void JSStaticScopeObject::put(ExecState*, const Identifier& propertyName, JSValuePtr value, PutPropertySlot&)
     47void JSStaticScopeObject::put(ExecState*, const Identifier& propertyName, JSValue value, PutPropertySlot&)
    4848{
    4949    if (symbolTablePut(propertyName, value))
     
    5353}
    5454
    55 void JSStaticScopeObject::putWithAttributes(ExecState*, const Identifier& propertyName, JSValuePtr value, unsigned attributes)
     55void JSStaticScopeObject::putWithAttributes(ExecState*, const Identifier& propertyName, JSValue value, unsigned attributes)
    5656{
    5757    if (symbolTablePutWithAttributes(propertyName, value, attributes))
  • trunk/JavaScriptCore/runtime/JSStaticScopeObject.h

    r39670 r43122  
    4444       
    4545    public:
    46         JSStaticScopeObject(ExecState* exec, const Identifier& ident, JSValuePtr value, unsigned attributes)
     46        JSStaticScopeObject(ExecState* exec, const Identifier& ident, JSValue value, unsigned attributes)
    4747            : JSVariableObject(exec->globalData().staticScopeStructure, new JSStaticScopeObjectData())
    4848        {
     
    5656        virtual bool getOwnPropertySlot(ExecState*, const Identifier&, PropertySlot&);
    5757        virtual bool getOwnPropertySlot(ExecState*, const Identifier&, PropertySlot&, bool& slotIsWriteable);
    58         virtual void put(ExecState*, const Identifier&, JSValuePtr, PutPropertySlot&);
    59         void putWithAttributes(ExecState*, const Identifier&, JSValuePtr, unsigned attributes);
     58        virtual void put(ExecState*, const Identifier&, JSValue, PutPropertySlot&);
     59        void putWithAttributes(ExecState*, const Identifier&, JSValue, unsigned attributes);
    6060
    61         static PassRefPtr<Structure> createStructure(JSValuePtr proto) { return Structure::create(proto, TypeInfo(ObjectType, NeedsThisConversion)); }
     61        static PassRefPtr<Structure> createStructure(JSValue proto) { return Structure::create(proto, TypeInfo(ObjectType, NeedsThisConversion)); }
    6262
    6363    private:
  • trunk/JavaScriptCore/runtime/JSString.cpp

    r40046 r43122  
    3131namespace JSC {
    3232
    33 JSValuePtr JSString::toPrimitive(ExecState*, PreferredPrimitiveType) const
     33JSValue JSString::toPrimitive(ExecState*, PreferredPrimitiveType) const
    3434{
    3535    return const_cast<JSString*>(this);
    3636}
    3737
    38 bool JSString::getPrimitiveNumber(ExecState*, double& number, JSValuePtr& value)
     38bool JSString::getPrimitiveNumber(ExecState*, double& number, JSValue& value)
    3939{
    4040    value = this;
     
    9191    slot.setBase(this);
    9292    JSObject* object;
    93     for (JSValuePtr prototype = exec->lexicalGlobalObject()->stringPrototype(); !prototype.isNull(); prototype = object->prototype()) {
     93    for (JSValue prototype = exec->lexicalGlobalObject()->stringPrototype(); !prototype.isNull(); prototype = object->prototype()) {
    9494        object = asObject(prototype);
    9595        if (object->getOwnPropertySlot(exec, propertyName, slot))
  • trunk/JavaScriptCore/runtime/JSString.h

    r41168 r43122  
    9191        JSString* getIndex(JSGlobalData*, unsigned);
    9292
    93         static PassRefPtr<Structure> createStructure(JSValuePtr proto) { return Structure::create(proto, TypeInfo(StringType, NeedsThisConversion)); }
     93        static PassRefPtr<Structure> createStructure(JSValue proto) { return Structure::create(proto, TypeInfo(StringType, NeedsThisConversion)); }
    9494
    9595    private:
     
    100100        }
    101101
    102         virtual JSValuePtr toPrimitive(ExecState*, PreferredPrimitiveType) const;
    103         virtual bool getPrimitiveNumber(ExecState*, double& number, JSValuePtr& value);
     102        virtual JSValue toPrimitive(ExecState*, PreferredPrimitiveType) const;
     103        virtual bool getPrimitiveNumber(ExecState*, double& number, JSValue& value);
    104104        virtual bool toBoolean(ExecState*) const;
    105105        virtual double toNumber(ExecState*) const;
     
    118118    };
    119119
    120     JSString* asString(JSValuePtr);
    121 
    122     inline JSString* asString(JSValuePtr value)
     120    JSString* asString(JSValue);
     121
     122    inline JSString* asString(JSValue value)
    123123    {
    124124        ASSERT(asCell(value)->isString());
     
    203203    }
    204204
    205     inline bool isJSString(JSGlobalData* globalData, JSValuePtr v) { return v.isCell() && v.asCell()->vptr() == globalData->jsStringVPtr; }
     205    inline bool isJSString(JSGlobalData* globalData, JSValue v) { return v.isCell() && v.asCell()->vptr() == globalData->jsStringVPtr; }
    206206
    207207    // --- JSValue inlines ----------------------------
    208208
    209     inline JSString* JSValuePtr::toThisJSString(ExecState* exec)
     209    inline JSString* JSValue::toThisJSString(ExecState* exec)
    210210    {
    211211        return JSImmediate::isImmediate(asValue()) ? jsString(exec, JSImmediate::toString(asValue())) : asCell()->toThisJSString(exec);
  • trunk/JavaScriptCore/runtime/JSValue.cpp

    r39851 r43122  
    3232
    3333// ECMA 9.4
    34 double JSValuePtr::toInteger(ExecState* exec) const
     34double JSValue::toInteger(ExecState* exec) const
    3535{
    3636    if (isInt32Fast())
     
    4040}
    4141
    42 double JSValuePtr::toIntegerPreserveNaN(ExecState* exec) const
     42double JSValue::toIntegerPreserveNaN(ExecState* exec) const
    4343{
    4444    if (isInt32Fast())
  • trunk/JavaScriptCore/runtime/JSValue.h

    r43121 r43122  
    4646    enum PreferredPrimitiveType { NoPreference, PreferNumber, PreferString };
    4747
    48     typedef void* EncodedJSValuePtr;
    49 
    50     class JSValuePtr {
     48    typedef void* EncodedJSValue;
     49
     50    class JSValue {
    5151        friend class JSImmediate;
    5252
    53         static JSValuePtr makeImmediate(intptr_t value)
     53        static JSValue makeImmediate(intptr_t value)
    5454        {
    55             return JSValuePtr(reinterpret_cast<JSCell*>(value));
     55            return JSValue(reinterpret_cast<JSCell*>(value));
    5656        }
    5757
     
    6868        enum JSFalseTag { JSFalse };
    6969
    70         static EncodedJSValuePtr encode(JSValuePtr value);
    71         static JSValuePtr decode(EncodedJSValuePtr ptr);
    72 
    73         JSValuePtr();
    74         JSValuePtr(ImpossibleValueTag);
    75         JSValuePtr(JSNullTag);
    76         JSValuePtr(JSUndefinedTag);
    77         JSValuePtr(JSTrueTag);
    78         JSValuePtr(JSFalseTag);
    79         JSValuePtr(JSCell* ptr);
    80         JSValuePtr(const JSCell* ptr);
     70        static EncodedJSValue encode(JSValue value);
     71        static JSValue decode(EncodedJSValue ptr);
     72
     73        JSValue();
     74        JSValue(ImpossibleValueTag);
     75        JSValue(JSNullTag);
     76        JSValue(JSUndefinedTag);
     77        JSValue(JSTrueTag);
     78        JSValue(JSFalseTag);
     79        JSValue(JSCell* ptr);
     80        JSValue(const JSCell* ptr);
    8181
    8282        operator bool() const;
    83         bool operator==(const JSValuePtr other) const;
    84         bool operator!=(const JSValuePtr other) const;
     83        bool operator==(const JSValue other) const;
     84        bool operator!=(const JSValue other) const;
    8585
    8686        // Querying the type.
     
    113113       
    114114        // Basic conversions.
    115         JSValuePtr toPrimitive(ExecState*, PreferredPrimitiveType = NoPreference) const;
    116         bool getPrimitiveNumber(ExecState*, double& number, JSValuePtr&);
     115        JSValue toPrimitive(ExecState*, PreferredPrimitiveType = NoPreference) const;
     116        bool getPrimitiveNumber(ExecState*, double& number, JSValue&);
    117117
    118118        bool toBoolean(ExecState*) const;
     
    121121        // been set in the ExecState already.
    122122        double toNumber(ExecState*) const;
    123         JSValuePtr toJSNumber(ExecState*) const; // Fast path for when you expect that the value is an immediate number.
     123        JSValue toJSNumber(ExecState*) const; // Fast path for when you expect that the value is an immediate number.
    124124        UString toString(ExecState*) const;
    125125        JSObject* toObject(ExecState*) const;
     
    144144        bool isUInt32Fast() const;
    145145        uint32_t getUInt32Fast() const;
    146         static JSValuePtr makeInt32Fast(int32_t);
    147         static bool areBothInt32Fast(JSValuePtr, JSValuePtr);
     146        static JSValue makeInt32Fast(int32_t);
     147        static bool areBothInt32Fast(JSValue, JSValue);
    148148
    149149        // Floating point conversions (this is a convenience method for webcore;
     
    156156
    157157        // Object operations, with the toObject operation included.
    158         JSValuePtr get(ExecState*, const Identifier& propertyName) const;
    159         JSValuePtr get(ExecState*, const Identifier& propertyName, PropertySlot&) const;
    160         JSValuePtr get(ExecState*, unsigned propertyName) const;
    161         JSValuePtr get(ExecState*, unsigned propertyName, PropertySlot&) const;
    162         void put(ExecState*, const Identifier& propertyName, JSValuePtr, PutPropertySlot&);
    163         void put(ExecState*, unsigned propertyName, JSValuePtr);
     158        JSValue get(ExecState*, const Identifier& propertyName) const;
     159        JSValue get(ExecState*, const Identifier& propertyName, PropertySlot&) const;
     160        JSValue get(ExecState*, unsigned propertyName) const;
     161        JSValue get(ExecState*, unsigned propertyName, PropertySlot&) const;
     162        void put(ExecState*, const Identifier& propertyName, JSValue, PutPropertySlot&);
     163        void put(ExecState*, unsigned propertyName, JSValue);
    164164
    165165        bool needsThisConversion() const;
     
    168168        JSString* toThisJSString(ExecState*);
    169169
    170         static bool equal(ExecState* exec, JSValuePtr v1, JSValuePtr v2);
    171         static bool equalSlowCase(ExecState* exec, JSValuePtr v1, JSValuePtr v2);
    172         static bool equalSlowCaseInline(ExecState* exec, JSValuePtr v1, JSValuePtr v2);
    173         static bool strictEqual(JSValuePtr v1, JSValuePtr v2);
    174         static bool strictEqualSlowCase(JSValuePtr v1, JSValuePtr v2);
    175         static bool strictEqualSlowCaseInline(JSValuePtr v1, JSValuePtr v2);
    176 
    177         JSValuePtr getJSNumber(); // noValue() if this is not a JSNumber or number object
     170        static bool equal(ExecState* exec, JSValue v1, JSValue v2);
     171        static bool equalSlowCase(ExecState* exec, JSValue v1, JSValue v2);
     172        static bool equalSlowCaseInline(ExecState* exec, JSValue v1, JSValue v2);
     173        static bool strictEqual(JSValue v1, JSValue v2);
     174        static bool strictEqualSlowCase(JSValue v1, JSValue v2);
     175        static bool strictEqualSlowCaseInline(JSValue v1, JSValue v2);
     176
     177        JSValue getJSNumber(); // noValue() if this is not a JSNumber or number object
    178178
    179179        bool isCell() const;
     
    181181
    182182    private:
    183         inline const JSValuePtr asValue() const { return *this; }
     183        inline const JSValue asValue() const { return *this; }
    184184
    185185        bool isDoubleNumber() const;
     
    190190
    191191    // Stand-alone helper functions.
    192     inline JSValuePtr noValue()
    193     {
    194         return JSValuePtr();
    195     }
    196 
    197     inline JSValuePtr jsImpossibleValue()
    198     {
    199         return JSValuePtr(JSValuePtr::ImpossibleValue);
    200     }
    201 
    202     inline JSValuePtr jsNull()
    203     {
    204         return JSValuePtr(JSValuePtr::JSNull);
    205     }
    206 
    207     inline JSValuePtr jsUndefined()
    208     {
    209         return JSValuePtr(JSValuePtr::JSUndefined);
    210     }
    211 
    212     inline JSValuePtr jsBoolean(bool b)
    213     {
    214         return b ? JSValuePtr(JSValuePtr::JSTrue) : JSValuePtr(JSValuePtr::JSFalse);
    215     }
    216 
    217     inline bool operator==(const JSValuePtr a, const JSCell* b) { return a == JSValuePtr(b); }
    218     inline bool operator==(const JSCell* a, const JSValuePtr b) { return JSValuePtr(a) == b; }
    219 
    220     inline bool operator!=(const JSValuePtr a, const JSCell* b) { return a != JSValuePtr(b); }
    221     inline bool operator!=(const JSCell* a, const JSValuePtr b) { return JSValuePtr(a) != b; }
    222 
    223     // JSValuePtr member functions.
    224     inline EncodedJSValuePtr JSValuePtr::encode(JSValuePtr value)
    225     {
    226         return reinterpret_cast<EncodedJSValuePtr>(value.m_ptr);
    227     }
    228 
    229     inline JSValuePtr JSValuePtr::decode(EncodedJSValuePtr ptr)
    230     {
    231         return JSValuePtr(reinterpret_cast<JSCell*>(ptr));
    232     }
    233 
    234     inline JSValuePtr::JSValuePtr()
     192    inline JSValue noValue()
     193    {
     194        return JSValue();
     195    }
     196
     197    inline JSValue jsImpossibleValue()
     198    {
     199        return JSValue(JSValue::ImpossibleValue);
     200    }
     201
     202    inline JSValue jsNull()
     203    {
     204        return JSValue(JSValue::JSNull);
     205    }
     206
     207    inline JSValue jsUndefined()
     208    {
     209        return JSValue(JSValue::JSUndefined);
     210    }
     211
     212    inline JSValue jsBoolean(bool b)
     213    {
     214        return b ? JSValue(JSValue::JSTrue) : JSValue(JSValue::JSFalse);
     215    }
     216
     217    inline bool operator==(const JSValue a, const JSCell* b) { return a == JSValue(b); }
     218    inline bool operator==(const JSCell* a, const JSValue b) { return JSValue(a) == b; }
     219
     220    inline bool operator!=(const JSValue a, const JSCell* b) { return a != JSValue(b); }
     221    inline bool operator!=(const JSCell* a, const JSValue b) { return JSValue(a) != b; }
     222
     223    // JSValue member functions.
     224    inline EncodedJSValue JSValue::encode(JSValue value)
     225    {
     226        return reinterpret_cast<EncodedJSValue>(value.m_ptr);
     227    }
     228
     229    inline JSValue JSValue::decode(EncodedJSValue ptr)
     230    {
     231        return JSValue(reinterpret_cast<JSCell*>(ptr));
     232    }
     233
     234    inline JSValue::JSValue()
    235235        : m_ptr(0)
    236236    {
    237237    }
    238238
    239     inline JSValuePtr::JSValuePtr(JSCell* ptr)
     239    inline JSValue::JSValue(JSCell* ptr)
    240240        : m_ptr(ptr)
    241241    {
    242242    }
    243243
    244     inline JSValuePtr::JSValuePtr(const JSCell* ptr)
     244    inline JSValue::JSValue(const JSCell* ptr)
    245245        : m_ptr(const_cast<JSCell*>(ptr))
    246246    {
    247247    }
    248248
    249     inline JSValuePtr::operator bool() const
     249    inline JSValue::operator bool() const
    250250    {
    251251        return m_ptr;
    252252    }
    253253
    254     inline bool JSValuePtr::operator==(const JSValuePtr other) const
     254    inline bool JSValue::operator==(const JSValue other) const
    255255    {
    256256        return m_ptr == other.m_ptr;
    257257    }
    258258
    259     inline bool JSValuePtr::operator!=(const JSValuePtr other) const
     259    inline bool JSValue::operator!=(const JSValue other) const
    260260    {
    261261        return m_ptr != other.m_ptr;
    262262    }
    263263
    264     inline bool JSValuePtr::isUndefined() const
     264    inline bool JSValue::isUndefined() const
    265265    {
    266266        return asValue() == jsUndefined();
    267267    }
    268268
    269     inline bool JSValuePtr::isNull() const
     269    inline bool JSValue::isNull() const
    270270    {
    271271        return asValue() == jsNull();
  • trunk/JavaScriptCore/runtime/JSVariableObject.h

    r39670 r43122  
    4747        SymbolTable& symbolTable() const { return *d->symbolTable; }
    4848
    49         virtual void putWithAttributes(ExecState*, const Identifier&, JSValuePtr, unsigned attributes) = 0;
     49        virtual void putWithAttributes(ExecState*, const Identifier&, JSValue, unsigned attributes) = 0;
    5050
    5151        virtual bool deleteProperty(ExecState*, const Identifier&);
     
    9191        bool symbolTableGet(const Identifier&, PropertySlot&);
    9292        bool symbolTableGet(const Identifier&, PropertySlot&, bool& slotIsWriteable);
    93         bool symbolTablePut(const Identifier&, JSValuePtr);
    94         bool symbolTablePutWithAttributes(const Identifier&, JSValuePtr, unsigned attributes);
     93        bool symbolTablePut(const Identifier&, JSValue);
     94        bool symbolTablePutWithAttributes(const Identifier&, JSValue, unsigned attributes);
    9595
    9696        JSVariableObjectData* d;
     
    118118    }
    119119
    120     inline bool JSVariableObject::symbolTablePut(const Identifier& propertyName, JSValuePtr value)
     120    inline bool JSVariableObject::symbolTablePut(const Identifier& propertyName, JSValue value)
    121121    {
    122122        ASSERT(!Heap::heap(value) || Heap::heap(value) == Heap::heap(this));
     
    131131    }
    132132
    133     inline bool JSVariableObject::symbolTablePutWithAttributes(const Identifier& propertyName, JSValuePtr value, unsigned attributes)
     133    inline bool JSVariableObject::symbolTablePutWithAttributes(const Identifier& propertyName, JSValue value, unsigned attributes)
    134134    {
    135135        ASSERT(!Heap::heap(value) || Heap::heap(value) == Heap::heap(this));
  • trunk/JavaScriptCore/runtime/JSWrapperObject.h

    r40046 r43122  
    3434
    3535    public:
    36         JSValuePtr internalValue() const { return m_internalValue; }
    37         void setInternalValue(JSValuePtr);
     36        JSValue internalValue() const { return m_internalValue; }
     37        void setInternalValue(JSValue);
    3838       
    3939        virtual void mark();
    4040       
    4141    private:
    42         JSValuePtr m_internalValue;
     42        JSValue m_internalValue;
    4343    };
    4444   
     
    4949    }
    5050   
    51     inline void JSWrapperObject::setInternalValue(JSValuePtr value)
     51    inline void JSWrapperObject::setInternalValue(JSValue value)
    5252    {
    5353        ASSERT(value);
  • trunk/JavaScriptCore/runtime/Lookup.cpp

    r42606 r43122  
    6767{
    6868    ASSERT(entry->attributes() & Function);
    69     JSValuePtr* location = thisObj->getDirectLocation(propertyName);
     69    JSValue* location = thisObj->getDirectLocation(propertyName);
    7070
    7171    if (!location) {
  • trunk/JavaScriptCore/runtime/Lookup.h

    r42606 r43122  
    4242
    4343    // FIXME: There is no reason this get function can't be simpler.
    44     // ie. typedef JSValuePtr (*GetFunction)(ExecState*, JSObject* baseObject)
     44    // ie. typedef JSValue (*GetFunction)(ExecState*, JSObject* baseObject)
    4545    typedef PropertySlot::GetValueFunc GetFunction;
    46     typedef void (*PutFunction)(ExecState*, JSObject* baseObject, JSValuePtr value);
     46    typedef void (*PutFunction)(ExecState*, JSObject* baseObject, JSValue value);
    4747
    4848    class HashEntry {
     
    224224     */
    225225    template <class ThisImp>
    226     inline bool lookupPut(ExecState* exec, const Identifier& propertyName, JSValuePtr value, const HashTable* table, ThisImp* thisObj)
     226    inline bool lookupPut(ExecState* exec, const Identifier& propertyName, JSValue value, const HashTable* table, ThisImp* thisObj)
    227227    {
    228228        const HashEntry* entry = table->entry(exec, propertyName);
     
    246246     */
    247247    template <class ThisImp, class ParentImp>
    248     inline void lookupPut(ExecState* exec, const Identifier& propertyName, JSValuePtr value, const HashTable* table, ThisImp* thisObj, PutPropertySlot& slot)
     248    inline void lookupPut(ExecState* exec, const Identifier& propertyName, JSValue value, const HashTable* table, ThisImp* thisObj, PutPropertySlot& slot)
    249249    {
    250250        if (!lookupPut<ThisImp>(exec, propertyName, value, table, thisObj))
  • trunk/JavaScriptCore/runtime/MathObject.cpp

    r42989 r43122  
    3434ASSERT_CLASS_FITS_IN_CELL(MathObject);
    3535
    36 static JSValuePtr mathProtoFuncAbs(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    37 static JSValuePtr mathProtoFuncACos(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    38 static JSValuePtr mathProtoFuncASin(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    39 static JSValuePtr mathProtoFuncATan(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    40 static JSValuePtr mathProtoFuncATan2(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    41 static JSValuePtr mathProtoFuncCeil(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    42 static JSValuePtr mathProtoFuncCos(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    43 static JSValuePtr mathProtoFuncExp(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    44 static JSValuePtr mathProtoFuncFloor(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    45 static JSValuePtr mathProtoFuncLog(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    46 static JSValuePtr mathProtoFuncMax(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    47 static JSValuePtr mathProtoFuncMin(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    48 static JSValuePtr mathProtoFuncPow(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    49 static JSValuePtr mathProtoFuncRandom(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    50 static JSValuePtr mathProtoFuncRound(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    51 static JSValuePtr mathProtoFuncSin(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    52 static JSValuePtr mathProtoFuncSqrt(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    53 static JSValuePtr mathProtoFuncTan(ExecState*, JSObject*, JSValuePtr, const ArgList&);
     36static JSValue mathProtoFuncAbs(ExecState*, JSObject*, JSValue, const ArgList&);
     37static JSValue mathProtoFuncACos(ExecState*, JSObject*, JSValue, const ArgList&);
     38static JSValue mathProtoFuncASin(ExecState*, JSObject*, JSValue, const ArgList&);
     39static JSValue mathProtoFuncATan(ExecState*, JSObject*, JSValue, const ArgList&);
     40static JSValue mathProtoFuncATan2(ExecState*, JSObject*, JSValue, const ArgList&);
     41static JSValue mathProtoFuncCeil(ExecState*, JSObject*, JSValue, const ArgList&);
     42static JSValue mathProtoFuncCos(ExecState*, JSObject*, JSValue, const ArgList&);
     43static JSValue mathProtoFuncExp(ExecState*, JSObject*, JSValue, const ArgList&);
     44static JSValue mathProtoFuncFloor(ExecState*, JSObject*, JSValue, const ArgList&);
     45static JSValue mathProtoFuncLog(ExecState*, JSObject*, JSValue, const ArgList&);
     46static JSValue mathProtoFuncMax(ExecState*, JSObject*, JSValue, const ArgList&);
     47static JSValue mathProtoFuncMin(ExecState*, JSObject*, JSValue, const ArgList&);
     48static JSValue mathProtoFuncPow(ExecState*, JSObject*, JSValue, const ArgList&);
     49static JSValue mathProtoFuncRandom(ExecState*, JSObject*, JSValue, const ArgList&);
     50static JSValue mathProtoFuncRound(ExecState*, JSObject*, JSValue, const ArgList&);
     51static JSValue mathProtoFuncSin(ExecState*, JSObject*, JSValue, const ArgList&);
     52static JSValue mathProtoFuncSqrt(ExecState*, JSObject*, JSValue, const ArgList&);
     53static JSValue mathProtoFuncTan(ExecState*, JSObject*, JSValue, const ArgList&);
    5454
    5555}
     
    116116// ------------------------------ Functions --------------------------------
    117117
    118 JSValuePtr mathProtoFuncAbs(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args)
     118JSValue mathProtoFuncAbs(ExecState* exec, JSObject*, JSValue, const ArgList& args)
    119119{
    120120    return jsNumber(exec, fabs(args.at(0).toNumber(exec)));
    121121}
    122122
    123 JSValuePtr mathProtoFuncACos(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args)
     123JSValue mathProtoFuncACos(ExecState* exec, JSObject*, JSValue, const ArgList& args)
    124124{
    125125    return jsNumber(exec, acos(args.at(0).toNumber(exec)));
    126126}
    127127
    128 JSValuePtr mathProtoFuncASin(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args)
     128JSValue mathProtoFuncASin(ExecState* exec, JSObject*, JSValue, const ArgList& args)
    129129{
    130130    return jsNumber(exec, asin(args.at(0).toNumber(exec)));
    131131}
    132132
    133 JSValuePtr mathProtoFuncATan(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args)
     133JSValue mathProtoFuncATan(ExecState* exec, JSObject*, JSValue, const ArgList& args)
    134134{
    135135    return jsNumber(exec, atan(args.at(0).toNumber(exec)));
    136136}
    137137
    138 JSValuePtr mathProtoFuncATan2(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args)
     138JSValue mathProtoFuncATan2(ExecState* exec, JSObject*, JSValue, const ArgList& args)
    139139{
    140140    return jsNumber(exec, atan2(args.at(0).toNumber(exec), args.at(1).toNumber(exec)));
    141141}
    142142
    143 JSValuePtr mathProtoFuncCeil(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args)
     143JSValue mathProtoFuncCeil(ExecState* exec, JSObject*, JSValue, const ArgList& args)
    144144{
    145145    return jsNumber(exec, ceil(args.at(0).toNumber(exec)));
    146146}
    147147
    148 JSValuePtr mathProtoFuncCos(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args)
     148JSValue mathProtoFuncCos(ExecState* exec, JSObject*, JSValue, const ArgList& args)
    149149{
    150150    return jsNumber(exec, cos(args.at(0).toNumber(exec)));
    151151}
    152152
    153 JSValuePtr mathProtoFuncExp(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args)
     153JSValue mathProtoFuncExp(ExecState* exec, JSObject*, JSValue, const ArgList& args)
    154154{
    155155    return jsNumber(exec, exp(args.at(0).toNumber(exec)));
    156156}
    157157
    158 JSValuePtr mathProtoFuncFloor(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args)
     158JSValue mathProtoFuncFloor(ExecState* exec, JSObject*, JSValue, const ArgList& args)
    159159{
    160160    return jsNumber(exec, floor(args.at(0).toNumber(exec)));
    161161}
    162162
    163 JSValuePtr mathProtoFuncLog(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args)
     163JSValue mathProtoFuncLog(ExecState* exec, JSObject*, JSValue, const ArgList& args)
    164164{
    165165    return jsNumber(exec, log(args.at(0).toNumber(exec)));
    166166}
    167167
    168 JSValuePtr mathProtoFuncMax(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args)
     168JSValue mathProtoFuncMax(ExecState* exec, JSObject*, JSValue, const ArgList& args)
    169169{
    170170    unsigned argsCount = args.size();
     
    182182}
    183183
    184 JSValuePtr mathProtoFuncMin(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args)
     184JSValue mathProtoFuncMin(ExecState* exec, JSObject*, JSValue, const ArgList& args)
    185185{
    186186    unsigned argsCount = args.size();
     
    198198}
    199199
    200 JSValuePtr mathProtoFuncPow(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args)
     200JSValue mathProtoFuncPow(ExecState* exec, JSObject*, JSValue, const ArgList& args)
    201201{
    202202    // ECMA 15.8.2.1.13
     
    212212}
    213213
    214 JSValuePtr mathProtoFuncRandom(ExecState* exec, JSObject*, JSValuePtr, const ArgList&)
     214JSValue mathProtoFuncRandom(ExecState* exec, JSObject*, JSValue, const ArgList&)
    215215{
    216216    return jsNumber(exec, WTF::weakRandomNumber());
    217217}
    218218
    219 JSValuePtr mathProtoFuncRound(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args)
     219JSValue mathProtoFuncRound(ExecState* exec, JSObject*, JSValue, const ArgList& args)
    220220{
    221221    double arg = args.at(0).toNumber(exec);
     
    225225}
    226226
    227 JSValuePtr mathProtoFuncSin(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args)
     227JSValue mathProtoFuncSin(ExecState* exec, JSObject*, JSValue, const ArgList& args)
    228228{
    229229    return jsNumber(exec, sin(args.at(0).toNumber(exec)));
    230230}
    231231
    232 JSValuePtr mathProtoFuncSqrt(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args)
     232JSValue mathProtoFuncSqrt(ExecState* exec, JSObject*, JSValue, const ArgList& args)
    233233{
    234234    return jsNumber(exec, sqrt(args.at(0).toNumber(exec)));
    235235}
    236236
    237 JSValuePtr mathProtoFuncTan(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args)
     237JSValue mathProtoFuncTan(ExecState* exec, JSObject*, JSValue, const ArgList& args)
    238238{
    239239    return jsNumber(exec, tan(args.at(0).toNumber(exec)));
  • trunk/JavaScriptCore/runtime/MathObject.h

    r39670 r43122  
    3535        static const ClassInfo info;
    3636
    37         static PassRefPtr<Structure> createStructure(JSValuePtr prototype)
     37        static PassRefPtr<Structure> createStructure(JSValue prototype)
    3838        {
    3939            return Structure::create(prototype, TypeInfo(ObjectType));
  • trunk/JavaScriptCore/runtime/NativeErrorConstructor.cpp

    r42989 r43122  
    6060}
    6161
    62 static JSValuePtr callNativeErrorConstructor(ExecState* exec, JSObject* constructor, JSValuePtr, const ArgList& args)
     62static JSValue callNativeErrorConstructor(ExecState* exec, JSObject* constructor, JSValue, const ArgList& args)
    6363{
    6464    return static_cast<NativeErrorConstructor*>(constructor)->construct(exec, args);
  • trunk/JavaScriptCore/runtime/NumberConstructor.cpp

    r42989 r43122  
    3030ASSERT_CLASS_FITS_IN_CELL(NumberConstructor);
    3131
    32 static JSValuePtr numberConstructorNaNValue(ExecState*, const Identifier&, const PropertySlot&);
    33 static JSValuePtr numberConstructorNegInfinity(ExecState*, const Identifier&, const PropertySlot&);
    34 static JSValuePtr numberConstructorPosInfinity(ExecState*, const Identifier&, const PropertySlot&);
    35 static JSValuePtr numberConstructorMaxValue(ExecState*, const Identifier&, const PropertySlot&);
    36 static JSValuePtr numberConstructorMinValue(ExecState*, const Identifier&, const PropertySlot&);
     32static JSValue numberConstructorNaNValue(ExecState*, const Identifier&, const PropertySlot&);
     33static JSValue numberConstructorNegInfinity(ExecState*, const Identifier&, const PropertySlot&);
     34static JSValue numberConstructorPosInfinity(ExecState*, const Identifier&, const PropertySlot&);
     35static JSValue numberConstructorMaxValue(ExecState*, const Identifier&, const PropertySlot&);
     36static JSValue numberConstructorMinValue(ExecState*, const Identifier&, const PropertySlot&);
    3737
    3838} // namespace JSC
     
    6969}
    7070
    71 static JSValuePtr numberConstructorNaNValue(ExecState* exec, const Identifier&, const PropertySlot&)
     71static JSValue numberConstructorNaNValue(ExecState* exec, const Identifier&, const PropertySlot&)
    7272{
    7373    return jsNaN(exec);
    7474}
    7575
    76 static JSValuePtr numberConstructorNegInfinity(ExecState* exec, const Identifier&, const PropertySlot&)
     76static JSValue numberConstructorNegInfinity(ExecState* exec, const Identifier&, const PropertySlot&)
    7777{
    7878    return jsNumber(exec, -Inf);
    7979}
    8080
    81 static JSValuePtr numberConstructorPosInfinity(ExecState* exec, const Identifier&, const PropertySlot&)
     81static JSValue numberConstructorPosInfinity(ExecState* exec, const Identifier&, const PropertySlot&)
    8282{
    8383    return jsNumber(exec, Inf);
    8484}
    8585
    86 static JSValuePtr numberConstructorMaxValue(ExecState* exec, const Identifier&, const PropertySlot&)
     86static JSValue numberConstructorMaxValue(ExecState* exec, const Identifier&, const PropertySlot&)
    8787{
    8888    return jsNumber(exec, 1.7976931348623157E+308);
    8989}
    9090
    91 static JSValuePtr numberConstructorMinValue(ExecState* exec, const Identifier&, const PropertySlot&)
     91static JSValue numberConstructorMinValue(ExecState* exec, const Identifier&, const PropertySlot&)
    9292{
    9393    return jsNumber(exec, 5E-324);
     
    110110
    111111// ECMA 15.7.2
    112 static JSValuePtr callNumberConstructor(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args)
     112static JSValue callNumberConstructor(ExecState* exec, JSObject*, JSValue, const ArgList& args)
    113113{
    114114    return jsNumber(exec, args.isEmpty() ? 0 : args.at(0).toNumber(exec));
  • trunk/JavaScriptCore/runtime/NumberConstructor.h

    r39670 r43122  
    3333
    3434        virtual bool getOwnPropertySlot(ExecState*, const Identifier&, PropertySlot&);
    35         JSValuePtr getValueProperty(ExecState*, int token) const;
     35        JSValue getValueProperty(ExecState*, int token) const;
    3636
    3737        static const ClassInfo info;
    3838
    39         static PassRefPtr<Structure> createStructure(JSValuePtr proto)
     39        static PassRefPtr<Structure> createStructure(JSValue proto)
    4040        {
    4141            return Structure::create(proto, TypeInfo(ObjectType, ImplementsHasInstance));
  • trunk/JavaScriptCore/runtime/NumberObject.cpp

    r39958 r43122  
    3737}
    3838
    39 JSValuePtr NumberObject::getJSNumber()
     39JSValue NumberObject::getJSNumber()
    4040{
    4141    return internalValue();
    4242}
    4343
    44 NumberObject* constructNumber(ExecState* exec, JSValuePtr number)
     44NumberObject* constructNumber(ExecState* exec, JSValue number)
    4545{
    4646    NumberObject* object = new (exec) NumberObject(exec->lexicalGlobalObject()->numberObjectStructure());
  • trunk/JavaScriptCore/runtime/NumberObject.h

    r39958 r43122  
    3535        virtual const ClassInfo* classInfo() const { return &info; }
    3636
    37         virtual JSValuePtr getJSNumber();
     37        virtual JSValue getJSNumber();
    3838    };
    3939
    40     NumberObject* constructNumber(ExecState*, JSValuePtr);
     40    NumberObject* constructNumber(ExecState*, JSValue);
    4141
    4242} // namespace JSC
  • trunk/JavaScriptCore/runtime/NumberPrototype.cpp

    r42989 r43122  
    3636ASSERT_CLASS_FITS_IN_CELL(NumberPrototype);
    3737
    38 static JSValuePtr numberProtoFuncToString(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    39 static JSValuePtr numberProtoFuncToLocaleString(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    40 static JSValuePtr numberProtoFuncValueOf(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    41 static JSValuePtr numberProtoFuncToFixed(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    42 static JSValuePtr numberProtoFuncToExponential(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    43 static JSValuePtr numberProtoFuncToPrecision(ExecState*, JSObject*, JSValuePtr, const ArgList&);
     38static JSValue numberProtoFuncToString(ExecState*, JSObject*, JSValue, const ArgList&);
     39static JSValue numberProtoFuncToLocaleString(ExecState*, JSObject*, JSValue, const ArgList&);
     40static JSValue numberProtoFuncValueOf(ExecState*, JSObject*, JSValue, const ArgList&);
     41static JSValue numberProtoFuncToFixed(ExecState*, JSObject*, JSValue, const ArgList&);
     42static JSValue numberProtoFuncToExponential(ExecState*, JSObject*, JSValue, const ArgList&);
     43static JSValue numberProtoFuncToPrecision(ExecState*, JSObject*, JSValue, const ArgList&);
    4444
    4545// ECMA 15.7.4
     
    134134}
    135135
    136 JSValuePtr numberProtoFuncToString(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
    137 {
    138     JSValuePtr v = thisValue.getJSNumber();
     136JSValue numberProtoFuncToString(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
     137{
     138    JSValue v = thisValue.getJSNumber();
    139139    if (!v)
    140140        return throwError(exec, TypeError);
     
    198198}
    199199
    200 JSValuePtr numberProtoFuncToLocaleString(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList&)
     200JSValue numberProtoFuncToLocaleString(ExecState* exec, JSObject*, JSValue thisValue, const ArgList&)
    201201{
    202202    // FIXME: Not implemented yet.
    203203
    204     JSValuePtr v = thisValue.getJSNumber();
     204    JSValue v = thisValue.getJSNumber();
    205205    if (!v)
    206206        return throwError(exec, TypeError);
     
    209209}
    210210
    211 JSValuePtr numberProtoFuncValueOf(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList&)
    212 {
    213     JSValuePtr v = thisValue.getJSNumber();
     211JSValue numberProtoFuncValueOf(ExecState* exec, JSObject*, JSValue thisValue, const ArgList&)
     212{
     213    JSValue v = thisValue.getJSNumber();
    214214    if (!v)
    215215        return throwError(exec, TypeError);
     
    218218}
    219219
    220 JSValuePtr numberProtoFuncToFixed(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
    221 {
    222     JSValuePtr v = thisValue.getJSNumber();
    223     if (!v)
    224         return throwError(exec, TypeError);
    225 
    226     JSValuePtr fractionDigits = args.at(0);
     220JSValue numberProtoFuncToFixed(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
     221{
     222    JSValue v = thisValue.getJSNumber();
     223    if (!v)
     224        return throwError(exec, TypeError);
     225
     226    JSValue fractionDigits = args.at(0);
    227227    double df = fractionDigits.toInteger(exec);
    228228    if (!(df >= 0 && df <= 20))
     
    303303}
    304304
    305 JSValuePtr numberProtoFuncToExponential(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
    306 {
    307     JSValuePtr v = thisValue.getJSNumber();
     305JSValue numberProtoFuncToExponential(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
     306{
     307    JSValue v = thisValue.getJSNumber();
    308308    if (!v)
    309309        return throwError(exec, TypeError);
     
    314314        return jsString(exec, UString::from(x));
    315315
    316     JSValuePtr fractionalDigitsValue = args.at(0);
     316    JSValue fractionalDigitsValue = args.at(0);
    317317    double df = fractionalDigitsValue.toInteger(exec);
    318318    if (!(df >= 0 && df <= 20))
     
    373373}
    374374
    375 JSValuePtr numberProtoFuncToPrecision(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
    376 {
    377     JSValuePtr v = thisValue.getJSNumber();
     375JSValue numberProtoFuncToPrecision(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
     376{
     377    JSValue v = thisValue.getJSNumber();
    378378    if (!v)
    379379        return throwError(exec, TypeError);
  • trunk/JavaScriptCore/runtime/ObjectConstructor.cpp

    r42989 r43122  
    4242static ALWAYS_INLINE JSObject* constructObject(ExecState* exec, const ArgList& args)
    4343{
    44     JSValuePtr arg = args.at(0);
     44    JSValue arg = args.at(0);
    4545    if (arg.isUndefinedOrNull())
    4646        return new (exec) JSObject(exec->lexicalGlobalObject()->emptyObjectStructure());
     
    5959}
    6060
    61 static JSValuePtr callObjectConstructor(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args)
     61static JSValue callObjectConstructor(ExecState* exec, JSObject*, JSValue, const ArgList& args)
    6262{
    6363    return constructObject(exec, args);
  • trunk/JavaScriptCore/runtime/ObjectPrototype.cpp

    r42989 r43122  
    3030ASSERT_CLASS_FITS_IN_CELL(ObjectPrototype);
    3131
    32 static JSValuePtr objectProtoFuncValueOf(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    33 static JSValuePtr objectProtoFuncHasOwnProperty(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    34 static JSValuePtr objectProtoFuncIsPrototypeOf(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    35 static JSValuePtr objectProtoFuncDefineGetter(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    36 static JSValuePtr objectProtoFuncDefineSetter(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    37 static JSValuePtr objectProtoFuncLookupGetter(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    38 static JSValuePtr objectProtoFuncLookupSetter(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    39 static JSValuePtr objectProtoFuncPropertyIsEnumerable(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    40 static JSValuePtr objectProtoFuncToLocaleString(ExecState*, JSObject*, JSValuePtr, const ArgList&);
     32static JSValue objectProtoFuncValueOf(ExecState*, JSObject*, JSValue, const ArgList&);
     33static JSValue objectProtoFuncHasOwnProperty(ExecState*, JSObject*, JSValue, const ArgList&);
     34static JSValue objectProtoFuncIsPrototypeOf(ExecState*, JSObject*, JSValue, const ArgList&);
     35static JSValue objectProtoFuncDefineGetter(ExecState*, JSObject*, JSValue, const ArgList&);
     36static JSValue objectProtoFuncDefineSetter(ExecState*, JSObject*, JSValue, const ArgList&);
     37static JSValue objectProtoFuncLookupGetter(ExecState*, JSObject*, JSValue, const ArgList&);
     38static JSValue objectProtoFuncLookupSetter(ExecState*, JSObject*, JSValue, const ArgList&);
     39static JSValue objectProtoFuncPropertyIsEnumerable(ExecState*, JSObject*, JSValue, const ArgList&);
     40static JSValue objectProtoFuncToLocaleString(ExecState*, JSObject*, JSValue, const ArgList&);
    4141
    4242ObjectPrototype::ObjectPrototype(ExecState* exec, PassRefPtr<Structure> stucture, Structure* prototypeFunctionStructure)
     
    6161// ECMA 15.2.4.2, 15.2.4.4, 15.2.4.5, 15.2.4.7
    6262
    63 JSValuePtr objectProtoFuncValueOf(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList&)
     63JSValue objectProtoFuncValueOf(ExecState* exec, JSObject*, JSValue thisValue, const ArgList&)
    6464{
    6565    return thisValue.toThisObject(exec);
    6666}
    6767
    68 JSValuePtr objectProtoFuncHasOwnProperty(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
     68JSValue objectProtoFuncHasOwnProperty(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
    6969{
    7070    return jsBoolean(thisValue.toThisObject(exec)->hasOwnProperty(exec, Identifier(exec, args.at(0).toString(exec))));
    7171}
    7272
    73 JSValuePtr objectProtoFuncIsPrototypeOf(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
     73JSValue objectProtoFuncIsPrototypeOf(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
    7474{
    7575    JSObject* thisObj = thisValue.toThisObject(exec);
     
    7878        return jsBoolean(false);
    7979
    80     JSValuePtr v = asObject(args.at(0))->prototype();
     80    JSValue v = asObject(args.at(0))->prototype();
    8181
    8282    while (true) {
     
    9090}
    9191
    92 JSValuePtr objectProtoFuncDefineGetter(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
     92JSValue objectProtoFuncDefineGetter(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
    9393{
    9494    CallData callData;
     
    9999}
    100100
    101 JSValuePtr objectProtoFuncDefineSetter(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
     101JSValue objectProtoFuncDefineSetter(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
    102102{
    103103    CallData callData;
     
    108108}
    109109
    110 JSValuePtr objectProtoFuncLookupGetter(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
     110JSValue objectProtoFuncLookupGetter(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
    111111{
    112112    return thisValue.toThisObject(exec)->lookupGetter(exec, Identifier(exec, args.at(0).toString(exec)));
    113113}
    114114
    115 JSValuePtr objectProtoFuncLookupSetter(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
     115JSValue objectProtoFuncLookupSetter(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
    116116{
    117117    return thisValue.toThisObject(exec)->lookupSetter(exec, Identifier(exec, args.at(0).toString(exec)));
    118118}
    119119
    120 JSValuePtr objectProtoFuncPropertyIsEnumerable(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
     120JSValue objectProtoFuncPropertyIsEnumerable(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
    121121{
    122122    return jsBoolean(thisValue.toThisObject(exec)->propertyIsEnumerable(exec, Identifier(exec, args.at(0).toString(exec))));
    123123}
    124124
    125 JSValuePtr objectProtoFuncToLocaleString(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList&)
     125JSValue objectProtoFuncToLocaleString(ExecState* exec, JSObject*, JSValue thisValue, const ArgList&)
    126126{
    127127    return thisValue.toThisJSString(exec);
    128128}
    129129
    130 JSValuePtr objectProtoFuncToString(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList&)
     130JSValue objectProtoFuncToString(ExecState* exec, JSObject*, JSValue thisValue, const ArgList&)
    131131{
    132132    return jsNontrivialString(exec, "[object " + thisValue.toThisObject(exec)->className() + "]");
  • trunk/JavaScriptCore/runtime/ObjectPrototype.h

    r39670 r43122  
    3131    };
    3232
    33     JSValuePtr objectProtoFuncToString(ExecState*, JSObject*, JSValuePtr, const ArgList&);
     33    JSValue objectProtoFuncToString(ExecState*, JSObject*, JSValue, const ArgList&);
    3434
    3535} // namespace JSC
  • trunk/JavaScriptCore/runtime/Operations.cpp

    r41100 r43122  
    3636namespace JSC {
    3737
    38 bool JSValuePtr::equalSlowCase(ExecState* exec, JSValuePtr v1, JSValuePtr v2)
     38bool JSValue::equalSlowCase(ExecState* exec, JSValue v1, JSValue v2)
    3939{
    4040    return equalSlowCaseInline(exec, v1, v2);
    4141}
    4242
    43 bool JSValuePtr::strictEqualSlowCase(JSValuePtr v1, JSValuePtr v2)
     43bool JSValue::strictEqualSlowCase(JSValue v1, JSValue v2)
    4444{
    4545    return strictEqualSlowCaseInline(v1, v2);
    4646}
    4747
    48 NEVER_INLINE JSValuePtr throwOutOfMemoryError(ExecState* exec)
     48NEVER_INLINE JSValue throwOutOfMemoryError(ExecState* exec)
    4949{
    5050    JSObject* error = Error::create(exec, GeneralError, "Out of memory");
     
    5353}
    5454
    55 NEVER_INLINE JSValuePtr jsAddSlowCase(CallFrame* callFrame, JSValuePtr v1, JSValuePtr v2)
     55NEVER_INLINE JSValue jsAddSlowCase(CallFrame* callFrame, JSValue v1, JSValue v2)
    5656{
    5757    // exception for the Date exception in defaultValue()
    58     JSValuePtr p1 = v1.toPrimitive(callFrame);
    59     JSValuePtr p2 = v2.toPrimitive(callFrame);
     58    JSValue p1 = v1.toPrimitive(callFrame);
     59    JSValue p2 = v2.toPrimitive(callFrame);
    6060
    6161    if (p1.isString() || p2.isString()) {
     
    6969}
    7070
    71 JSValuePtr jsTypeStringForValue(CallFrame* callFrame, JSValuePtr v)
     71JSValue jsTypeStringForValue(CallFrame* callFrame, JSValue v)
    7272{
    7373    if (v.isUndefined())
     
    9191}
    9292
    93 bool jsIsObjectType(JSValuePtr v)
     93bool jsIsObjectType(JSValue v)
    9494{
    9595    if (!v.isCell())
     
    109109}
    110110
    111 bool jsIsFunctionType(JSValuePtr v)
     111bool jsIsFunctionType(JSValue v)
    112112{
    113113    if (v.isObject()) {
  • trunk/JavaScriptCore/runtime/Operations.h

    r41232 r43122  
    3030namespace JSC {
    3131
    32     NEVER_INLINE JSValuePtr throwOutOfMemoryError(ExecState*);
    33     NEVER_INLINE JSValuePtr jsAddSlowCase(CallFrame*, JSValuePtr, JSValuePtr);
    34     JSValuePtr jsTypeStringForValue(CallFrame*, JSValuePtr);
    35     bool jsIsObjectType(JSValuePtr);
    36     bool jsIsFunctionType(JSValuePtr);
     32    NEVER_INLINE JSValue throwOutOfMemoryError(ExecState*);
     33    NEVER_INLINE JSValue jsAddSlowCase(CallFrame*, JSValue, JSValue);
     34    JSValue jsTypeStringForValue(CallFrame*, JSValue);
     35    bool jsIsObjectType(JSValue);
     36    bool jsIsFunctionType(JSValue);
    3737
    3838    // ECMA 11.9.3
    39     inline bool JSValuePtr::equal(ExecState* exec, JSValuePtr v1, JSValuePtr v2)
     39    inline bool JSValue::equal(ExecState* exec, JSValue v1, JSValue v2)
    4040    {
    4141        if (JSImmediate::areBothImmediateIntegerNumbers(v1, v2))
     
    4545    }
    4646
    47     ALWAYS_INLINE bool JSValuePtr::equalSlowCaseInline(ExecState* exec, JSValuePtr v1, JSValuePtr v2)
     47    ALWAYS_INLINE bool JSValue::equalSlowCaseInline(ExecState* exec, JSValue v1, JSValue v2)
    4848    {
    4949        ASSERT(!JSImmediate::areBothImmediateIntegerNumbers(v1, v2));
     
    7575                if (v2.isObject())
    7676                    return v1 == v2;
    77                 JSValuePtr p1 = v1.toPrimitive(exec);
     77                JSValue p1 = v1.toPrimitive(exec);
    7878                if (exec->hadException())
    7979                    return false;
     
    8585
    8686            if (v2.isObject()) {
    87                 JSValuePtr p2 = v2.toPrimitive(exec);
     87                JSValue p2 = v2.toPrimitive(exec);
    8888                if (exec->hadException())
    8989                    return false;
     
    113113
    114114    // ECMA 11.9.3
    115     inline bool JSValuePtr::strictEqual(JSValuePtr v1, JSValuePtr v2)
     115    inline bool JSValue::strictEqual(JSValue v1, JSValue v2)
    116116    {
    117117        if (JSImmediate::areBothImmediateIntegerNumbers(v1, v2))
     
    127127    }
    128128
    129     ALWAYS_INLINE bool JSValuePtr::strictEqualSlowCaseInline(JSValuePtr v1, JSValuePtr v2)
     129    ALWAYS_INLINE bool JSValue::strictEqualSlowCaseInline(JSValue v1, JSValue v2)
    130130    {
    131131        ASSERT(!JSImmediate::isEitherImmediate(v1, v2));
     
    137137    }
    138138
    139     inline bool jsLess(CallFrame* callFrame, JSValuePtr v1, JSValuePtr v2)
    140     {
    141         if (JSValuePtr::areBothInt32Fast(v1, v2))
     139    inline bool jsLess(CallFrame* callFrame, JSValue v1, JSValue v2)
     140    {
     141        if (JSValue::areBothInt32Fast(v1, v2))
    142142            return v1.getInt32Fast() < v2.getInt32Fast();
    143143
     
    151151            return asString(v1)->value() < asString(v2)->value();
    152152
    153         JSValuePtr p1;
    154         JSValuePtr p2;
     153        JSValue p1;
     154        JSValue p2;
    155155        bool wasNotString1 = v1.getPrimitiveNumber(callFrame, n1, p1);
    156156        bool wasNotString2 = v2.getPrimitiveNumber(callFrame, n2, p2);
     
    162162    }
    163163
    164     inline bool jsLessEq(CallFrame* callFrame, JSValuePtr v1, JSValuePtr v2)
    165     {
    166         if (JSValuePtr::areBothInt32Fast(v1, v2))
     164    inline bool jsLessEq(CallFrame* callFrame, JSValue v1, JSValue v2)
     165    {
     166        if (JSValue::areBothInt32Fast(v1, v2))
    167167            return v1.getInt32Fast() <= v2.getInt32Fast();
    168168
     
    176176            return !(asString(v2)->value() < asString(v1)->value());
    177177
    178         JSValuePtr p1;
    179         JSValuePtr p2;
     178        JSValue p1;
     179        JSValue p2;
    180180        bool wasNotString1 = v1.getPrimitiveNumber(callFrame, n1, p1);
    181181        bool wasNotString2 = v2.getPrimitiveNumber(callFrame, n2, p2);
     
    196196    //    4000    Add case: 3 5
    197197
    198     ALWAYS_INLINE JSValuePtr jsAdd(CallFrame* callFrame, JSValuePtr v1, JSValuePtr v2)
     198    ALWAYS_INLINE JSValue jsAdd(CallFrame* callFrame, JSValue v1, JSValue v2)
    199199    {
    200200        double left;
     
    227227    }
    228228
    229     inline size_t countPrototypeChainEntriesAndCheckForProxies(CallFrame* callFrame, JSValuePtr baseValue, const PropertySlot& slot)
     229    inline size_t countPrototypeChainEntriesAndCheckForProxies(CallFrame* callFrame, JSValue baseValue, const PropertySlot& slot)
    230230    {
    231231        JSCell* cell = asCell(baseValue);
     
    233233
    234234        while (slot.slotBase() != cell) {
    235             JSValuePtr v = cell->structure()->prototypeForLookup(callFrame);
     235            JSValue v = cell->structure()->prototypeForLookup(callFrame);
    236236
    237237            // If we didn't find slotBase in baseValue's prototype chain, then baseValue
     
    255255    }
    256256
    257     ALWAYS_INLINE JSValuePtr resolveBase(CallFrame* callFrame, Identifier& property, ScopeChainNode* scopeChain)
     257    ALWAYS_INLINE JSValue resolveBase(CallFrame* callFrame, Identifier& property, ScopeChainNode* scopeChain)
    258258    {
    259259        ScopeChainIterator iter = scopeChain->begin();
  • trunk/JavaScriptCore/runtime/PropertySlot.cpp

    r39670 r43122  
    2828namespace JSC {
    2929
    30 JSValuePtr PropertySlot::functionGetter(ExecState* exec, const Identifier&, const PropertySlot& slot)
     30JSValue PropertySlot::functionGetter(ExecState* exec, const Identifier&, const PropertySlot& slot)
    3131{
    3232    // Prevent getter functions from observing execution if an exception is pending.
  • trunk/JavaScriptCore/runtime/PropertySlot.h

    r42989 r43122  
    4646        }
    4747
    48         explicit PropertySlot(const JSValuePtr base)
     48        explicit PropertySlot(const JSValue base)
    4949            : m_slotBase(base)
    5050            , m_offset(WTF::notFound)
     
    5353        }
    5454
    55         typedef JSValuePtr (*GetValueFunc)(ExecState*, const Identifier&, const PropertySlot&);
    56 
    57         JSValuePtr getValue(ExecState* exec, const Identifier& propertyName) const
     55        typedef JSValue (*GetValueFunc)(ExecState*, const Identifier&, const PropertySlot&);
     56
     57        JSValue getValue(ExecState* exec, const Identifier& propertyName) const
    5858        {
    5959            if (m_getValue == JSC_VALUE_SLOT_MARKER)
     
    6464        }
    6565
    66         JSValuePtr getValue(ExecState* exec, unsigned propertyName) const
     66        JSValue getValue(ExecState* exec, unsigned propertyName) const
    6767        {
    6868            if (m_getValue == JSC_VALUE_SLOT_MARKER)
     
    8080        }
    8181
    82         void putValue(JSValuePtr value)
     82        void putValue(JSValue value)
    8383        {
    8484            if (m_getValue == JSC_VALUE_SLOT_MARKER) {
     
    8787            }
    8888            ASSERT(m_getValue == JSC_REGISTER_SLOT_MARKER);
    89             *m_data.registerSlot = JSValuePtr(value);
    90         }
    91 
    92         void setValueSlot(JSValuePtr* valueSlot)
     89            *m_data.registerSlot = JSValue(value);
     90        }
     91
     92        void setValueSlot(JSValue* valueSlot)
    9393        {
    9494            ASSERT(valueSlot);
     
    9898        }
    9999       
    100         void setValueSlot(JSValuePtr slotBase, JSValuePtr* valueSlot)
     100        void setValueSlot(JSValue slotBase, JSValue* valueSlot)
    101101        {
    102102            ASSERT(valueSlot);
     
    106106        }
    107107       
    108         void setValueSlot(JSValuePtr slotBase, JSValuePtr* valueSlot, size_t offset)
     108        void setValueSlot(JSValue slotBase, JSValue* valueSlot, size_t offset)
    109109        {
    110110            ASSERT(valueSlot);
     
    115115        }
    116116       
    117         void setValue(JSValuePtr value)
     117        void setValue(JSValue value)
    118118        {
    119119            ASSERT(value);
     
    132132        }
    133133
    134         void setCustom(JSValuePtr slotBase, GetValueFunc getValue)
     134        void setCustom(JSValue slotBase, GetValueFunc getValue)
    135135        {
    136136            ASSERT(slotBase);
     
    140140        }
    141141
    142         void setCustomIndex(JSValuePtr slotBase, unsigned index, GetValueFunc getValue)
     142        void setCustomIndex(JSValue slotBase, unsigned index, GetValueFunc getValue)
    143143        {
    144144            ASSERT(slotBase);
     
    162162        }
    163163
    164         JSValuePtr slotBase() const
     164        JSValue slotBase() const
    165165        {
    166166            ASSERT(m_slotBase);
     
    168168        }
    169169
    170         void setBase(JSValuePtr base)
     170        void setBase(JSValue base)
    171171        {
    172172            ASSERT(m_slotBase);
     
    192192
    193193    private:
    194         static JSValuePtr functionGetter(ExecState*, const Identifier&, const PropertySlot&);
     194        static JSValue functionGetter(ExecState*, const Identifier&, const PropertySlot&);
    195195
    196196        GetValueFunc m_getValue;
    197197       
    198         JSValuePtr m_slotBase;
     198        JSValue m_slotBase;
    199199        union {
    200200            JSObject* getterFunc;
    201             JSValuePtr* valueSlot;
     201            JSValue* valueSlot;
    202202            Register* registerSlot;
    203203            unsigned index;
    204204        } m_data;
    205205
    206         JSValuePtr m_value;
     206        JSValue m_value;
    207207
    208208        size_t m_offset;
  • trunk/JavaScriptCore/runtime/Protect.h

    r40046 r43122  
    5050    }
    5151   
    52     inline void gcProtect(JSValuePtr value)
     52    inline void gcProtect(JSValue value)
    5353    {
    5454        if (value && value.isCell())
     
    5656    }
    5757
    58     inline void gcUnprotect(JSValuePtr value)
     58    inline void gcUnprotect(JSValue value)
    5959    {
    6060        if (value && value.isCell())
     
    7575        T* get() const { return m_ptr; }
    7676        operator T*() const { return m_ptr; }
    77         operator JSValuePtr() const { return JSValuePtr(m_ptr); }
     77        operator JSValue() const { return JSValue(m_ptr); }
    7878        T* operator->() const { return m_ptr; }
    7979       
     
    8888    };
    8989
    90     class ProtectedJSValuePtr {
     90    class ProtectedJSValue {
    9191    public:
    92         ProtectedJSValuePtr() {}
    93         ProtectedJSValuePtr(JSValuePtr value);
    94         ProtectedJSValuePtr(const ProtectedJSValuePtr&);
    95         ~ProtectedJSValuePtr();
    96 
    97         template <class U> ProtectedJSValuePtr(const ProtectedPtr<U>&);
    98        
    99         JSValuePtr get() const { return m_value; }
    100         operator JSValuePtr() const { return m_value; }
    101         JSValuePtr operator->() const { return m_value; }
     92        ProtectedJSValue() {}
     93        ProtectedJSValue(JSValue value);
     94        ProtectedJSValue(const ProtectedJSValue&);
     95        ~ProtectedJSValue();
     96
     97        template <class U> ProtectedJSValue(const ProtectedPtr<U>&);
     98       
     99        JSValue get() const { return m_value; }
     100        operator JSValue() const { return m_value; }
     101        JSValue operator->() const { return m_value; }
    102102       
    103103        operator bool() const { return m_value; }
    104104        bool operator!() const { return !m_value; }
    105105
    106         ProtectedJSValuePtr& operator=(const ProtectedJSValuePtr&);
    107         ProtectedJSValuePtr& operator=(JSValuePtr);
     106        ProtectedJSValue& operator=(const ProtectedJSValue&);
     107        ProtectedJSValue& operator=(JSValue);
    108108       
    109109    private:
    110         JSValuePtr m_value;
     110        JSValue m_value;
    111111    };
    112112
     
    151151    }
    152152
    153     inline ProtectedJSValuePtr::ProtectedJSValuePtr(JSValuePtr value)
     153    inline ProtectedJSValue::ProtectedJSValue(JSValue value)
    154154        : m_value(value)
    155155    {
     
    157157    }
    158158
    159     inline ProtectedJSValuePtr::ProtectedJSValuePtr(const ProtectedJSValuePtr& o)
     159    inline ProtectedJSValue::ProtectedJSValue(const ProtectedJSValue& o)
    160160        : m_value(o.get())
    161161    {
     
    163163    }
    164164
    165     inline ProtectedJSValuePtr::~ProtectedJSValuePtr()
     165    inline ProtectedJSValue::~ProtectedJSValue()
    166166    {
    167167        gcUnprotect(m_value);
    168168    }
    169169
    170     template <class U> ProtectedJSValuePtr::ProtectedJSValuePtr(const ProtectedPtr<U>& o)
     170    template <class U> ProtectedJSValue::ProtectedJSValue(const ProtectedPtr<U>& o)
    171171        : m_value(o.get())
    172172    {
     
    174174    }
    175175
    176     inline ProtectedJSValuePtr& ProtectedJSValuePtr::operator=(const ProtectedJSValuePtr& o)
    177     {
    178         JSValuePtr ovalue = o.m_value;
     176    inline ProtectedJSValue& ProtectedJSValue::operator=(const ProtectedJSValue& o)
     177    {
     178        JSValue ovalue = o.m_value;
    179179        gcProtect(ovalue);
    180180        gcUnprotect(m_value);
     
    183183    }
    184184
    185     inline ProtectedJSValuePtr& ProtectedJSValuePtr::operator=(JSValuePtr ovalue)
     185    inline ProtectedJSValue& ProtectedJSValue::operator=(JSValue ovalue)
    186186    {
    187187        gcProtect(ovalue);
     
    199199    template <class T> inline bool operator!=(const T* a, const ProtectedPtr<T>& b) { return a != b.get(); }
    200200
    201     inline bool operator==(const ProtectedJSValuePtr& a, const ProtectedJSValuePtr& b) { return a.get() == b.get(); }
    202     inline bool operator==(const ProtectedJSValuePtr& a, const JSValuePtr b) { return a.get() == b; }
    203     template <class T> inline bool operator==(const ProtectedJSValuePtr& a, const ProtectedPtr<T>& b) { return a.get() == JSValuePtr(b.get()); }
    204     inline bool operator==(const JSValuePtr a, const ProtectedJSValuePtr& b) { return a == b.get(); }
    205     template <class T> inline bool operator==(const ProtectedPtr<T>& a, const ProtectedJSValuePtr& b) { return JSValuePtr(a.get()) == b.get(); }
    206 
    207     inline bool operator!=(const ProtectedJSValuePtr& a, const ProtectedJSValuePtr& b) { return a.get() != b.get(); }
    208     inline bool operator!=(const ProtectedJSValuePtr& a, const JSValuePtr b) { return a.get() != b; }
    209     template <class T> inline bool operator!=(const ProtectedJSValuePtr& a, const ProtectedPtr<T>& b) { return a.get() != JSValuePtr(b.get()); }
    210     inline bool operator!=(const JSValuePtr a, const ProtectedJSValuePtr& b) { return a != b.get(); }
    211     template <class T> inline bool operator!=(const ProtectedPtr<T>& a, const ProtectedJSValuePtr& b) { return JSValuePtr(a.get()) != b.get(); }
     201    inline bool operator==(const ProtectedJSValue& a, const ProtectedJSValue& b) { return a.get() == b.get(); }
     202    inline bool operator==(const ProtectedJSValue& a, const JSValue b) { return a.get() == b; }
     203    template <class T> inline bool operator==(const ProtectedJSValue& a, const ProtectedPtr<T>& b) { return a.get() == JSValue(b.get()); }
     204    inline bool operator==(const JSValue a, const ProtectedJSValue& b) { return a == b.get(); }
     205    template <class T> inline bool operator==(const ProtectedPtr<T>& a, const ProtectedJSValue& b) { return JSValue(a.get()) == b.get(); }
     206
     207    inline bool operator!=(const ProtectedJSValue& a, const ProtectedJSValue& b) { return a.get() != b.get(); }
     208    inline bool operator!=(const ProtectedJSValue& a, const JSValue b) { return a.get() != b; }
     209    template <class T> inline bool operator!=(const ProtectedJSValue& a, const ProtectedPtr<T>& b) { return a.get() != JSValue(b.get()); }
     210    inline bool operator!=(const JSValue a, const ProtectedJSValue& b) { return a != b.get(); }
     211    template <class T> inline bool operator!=(const ProtectedPtr<T>& a, const ProtectedJSValue& b) { return JSValue(a.get()) != b.get(); }
    212212 
    213213} // namespace JSC
  • trunk/JavaScriptCore/runtime/RegExpConstructor.cpp

    r42989 r43122  
    3434namespace JSC {
    3535
    36 static JSValuePtr regExpConstructorInput(ExecState*, const Identifier&, const PropertySlot&);
    37 static JSValuePtr regExpConstructorMultiline(ExecState*, const Identifier&, const PropertySlot&);
    38 static JSValuePtr regExpConstructorLastMatch(ExecState*, const Identifier&, const PropertySlot&);
    39 static JSValuePtr regExpConstructorLastParen(ExecState*, const Identifier&, const PropertySlot&);
    40 static JSValuePtr regExpConstructorLeftContext(ExecState*, const Identifier&, const PropertySlot&);
    41 static JSValuePtr regExpConstructorRightContext(ExecState*, const Identifier&, const PropertySlot&);
    42 static JSValuePtr regExpConstructorDollar1(ExecState*, const Identifier&, const PropertySlot&);
    43 static JSValuePtr regExpConstructorDollar2(ExecState*, const Identifier&, const PropertySlot&);
    44 static JSValuePtr regExpConstructorDollar3(ExecState*, const Identifier&, const PropertySlot&);
    45 static JSValuePtr regExpConstructorDollar4(ExecState*, const Identifier&, const PropertySlot&);
    46 static JSValuePtr regExpConstructorDollar5(ExecState*, const Identifier&, const PropertySlot&);
    47 static JSValuePtr regExpConstructorDollar6(ExecState*, const Identifier&, const PropertySlot&);
    48 static JSValuePtr regExpConstructorDollar7(ExecState*, const Identifier&, const PropertySlot&);
    49 static JSValuePtr regExpConstructorDollar8(ExecState*, const Identifier&, const PropertySlot&);
    50 static JSValuePtr regExpConstructorDollar9(ExecState*, const Identifier&, const PropertySlot&);
    51 
    52 static void setRegExpConstructorInput(ExecState*, JSObject*, JSValuePtr);
    53 static void setRegExpConstructorMultiline(ExecState*, JSObject*, JSValuePtr);
     36static JSValue regExpConstructorInput(ExecState*, const Identifier&, const PropertySlot&);
     37static JSValue regExpConstructorMultiline(ExecState*, const Identifier&, const PropertySlot&);
     38static JSValue regExpConstructorLastMatch(ExecState*, const Identifier&, const PropertySlot&);
     39static JSValue regExpConstructorLastParen(ExecState*, const Identifier&, const PropertySlot&);
     40static JSValue regExpConstructorLeftContext(ExecState*, const Identifier&, const PropertySlot&);
     41static JSValue regExpConstructorRightContext(ExecState*, const Identifier&, const PropertySlot&);
     42static JSValue regExpConstructorDollar1(ExecState*, const Identifier&, const PropertySlot&);
     43static JSValue regExpConstructorDollar2(ExecState*, const Identifier&, const PropertySlot&);
     44static JSValue regExpConstructorDollar3(ExecState*, const Identifier&, const PropertySlot&);
     45static JSValue regExpConstructorDollar4(ExecState*, const Identifier&, const PropertySlot&);
     46static JSValue regExpConstructorDollar5(ExecState*, const Identifier&, const PropertySlot&);
     47static JSValue regExpConstructorDollar6(ExecState*, const Identifier&, const PropertySlot&);
     48static JSValue regExpConstructorDollar7(ExecState*, const Identifier&, const PropertySlot&);
     49static JSValue regExpConstructorDollar8(ExecState*, const Identifier&, const PropertySlot&);
     50static JSValue regExpConstructorDollar9(ExecState*, const Identifier&, const PropertySlot&);
     51
     52static void setRegExpConstructorInput(ExecState*, JSObject*, JSValue);
     53static void setRegExpConstructorMultiline(ExecState*, JSObject*, JSValue);
    5454
    5555} // namespace JSC
     
    186186}
    187187
    188 JSValuePtr RegExpConstructor::getBackref(ExecState* exec, unsigned i) const
     188JSValue RegExpConstructor::getBackref(ExecState* exec, unsigned i) const
    189189{
    190190    if (d->lastOvector && i <= d->lastNumSubPatterns) {
     
    196196}
    197197
    198 JSValuePtr RegExpConstructor::getLastParen(ExecState* exec) const
     198JSValue RegExpConstructor::getLastParen(ExecState* exec) const
    199199{
    200200    unsigned i = d->lastNumSubPatterns;
     
    208208}
    209209
    210 JSValuePtr RegExpConstructor::getLeftContext(ExecState* exec) const
     210JSValue RegExpConstructor::getLeftContext(ExecState* exec) const
    211211{
    212212    if (d->lastOvector)
     
    215215}
    216216
    217 JSValuePtr RegExpConstructor::getRightContext(ExecState* exec) const
     217JSValue RegExpConstructor::getRightContext(ExecState* exec) const
    218218{
    219219    if (d->lastOvector)
     
    227227}
    228228
    229 JSValuePtr regExpConstructorDollar1(ExecState* exec, const Identifier&, const PropertySlot& slot)
     229JSValue regExpConstructorDollar1(ExecState* exec, const Identifier&, const PropertySlot& slot)
    230230{
    231231    return asRegExpConstructor(slot.slotBase())->getBackref(exec, 1);
    232232}
    233233
    234 JSValuePtr regExpConstructorDollar2(ExecState* exec, const Identifier&, const PropertySlot& slot)
     234JSValue regExpConstructorDollar2(ExecState* exec, const Identifier&, const PropertySlot& slot)
    235235{
    236236    return asRegExpConstructor(slot.slotBase())->getBackref(exec, 2);
    237237}
    238238
    239 JSValuePtr regExpConstructorDollar3(ExecState* exec, const Identifier&, const PropertySlot& slot)
     239JSValue regExpConstructorDollar3(ExecState* exec, const Identifier&, const PropertySlot& slot)
    240240{
    241241    return asRegExpConstructor(slot.slotBase())->getBackref(exec, 3);
    242242}
    243243
    244 JSValuePtr regExpConstructorDollar4(ExecState* exec, const Identifier&, const PropertySlot& slot)
     244JSValue regExpConstructorDollar4(ExecState* exec, const Identifier&, const PropertySlot& slot)
    245245{
    246246    return asRegExpConstructor(slot.slotBase())->getBackref(exec, 4);
    247247}
    248248
    249 JSValuePtr regExpConstructorDollar5(ExecState* exec, const Identifier&, const PropertySlot& slot)
     249JSValue regExpConstructorDollar5(ExecState* exec, const Identifier&, const PropertySlot& slot)
    250250{
    251251    return asRegExpConstructor(slot.slotBase())->getBackref(exec, 5);
    252252}
    253253
    254 JSValuePtr regExpConstructorDollar6(ExecState* exec, const Identifier&, const PropertySlot& slot)
     254JSValue regExpConstructorDollar6(ExecState* exec, const Identifier&, const PropertySlot& slot)
    255255{
    256256    return asRegExpConstructor(slot.slotBase())->getBackref(exec, 6);
    257257}
    258258
    259 JSValuePtr regExpConstructorDollar7(ExecState* exec, const Identifier&, const PropertySlot& slot)
     259JSValue regExpConstructorDollar7(ExecState* exec, const Identifier&, const PropertySlot& slot)
    260260{
    261261    return asRegExpConstructor(slot.slotBase())->getBackref(exec, 7);
    262262}
    263263
    264 JSValuePtr regExpConstructorDollar8(ExecState* exec, const Identifier&, const PropertySlot& slot)
     264JSValue regExpConstructorDollar8(ExecState* exec, const Identifier&, const PropertySlot& slot)
    265265{
    266266    return asRegExpConstructor(slot.slotBase())->getBackref(exec, 8);
    267267}
    268268
    269 JSValuePtr regExpConstructorDollar9(ExecState* exec, const Identifier&, const PropertySlot& slot)
     269JSValue regExpConstructorDollar9(ExecState* exec, const Identifier&, const PropertySlot& slot)
    270270{
    271271    return asRegExpConstructor(slot.slotBase())->getBackref(exec, 9);
    272272}
    273273
    274 JSValuePtr regExpConstructorInput(ExecState* exec, const Identifier&, const PropertySlot& slot)
     274JSValue regExpConstructorInput(ExecState* exec, const Identifier&, const PropertySlot& slot)
    275275{
    276276    return jsString(exec, asRegExpConstructor(slot.slotBase())->input());
    277277}
    278278
    279 JSValuePtr regExpConstructorMultiline(ExecState*, const Identifier&, const PropertySlot& slot)
     279JSValue regExpConstructorMultiline(ExecState*, const Identifier&, const PropertySlot& slot)
    280280{
    281281    return jsBoolean(asRegExpConstructor(slot.slotBase())->multiline());
    282282}
    283283
    284 JSValuePtr regExpConstructorLastMatch(ExecState* exec, const Identifier&, const PropertySlot& slot)
     284JSValue regExpConstructorLastMatch(ExecState* exec, const Identifier&, const PropertySlot& slot)
    285285{
    286286    return asRegExpConstructor(slot.slotBase())->getBackref(exec, 0);
    287287}
    288288
    289 JSValuePtr regExpConstructorLastParen(ExecState* exec, const Identifier&, const PropertySlot& slot)
     289JSValue regExpConstructorLastParen(ExecState* exec, const Identifier&, const PropertySlot& slot)
    290290{
    291291    return asRegExpConstructor(slot.slotBase())->getLastParen(exec);
    292292}
    293293
    294 JSValuePtr regExpConstructorLeftContext(ExecState* exec, const Identifier&, const PropertySlot& slot)
     294JSValue regExpConstructorLeftContext(ExecState* exec, const Identifier&, const PropertySlot& slot)
    295295{
    296296    return asRegExpConstructor(slot.slotBase())->getLeftContext(exec);
    297297}
    298298
    299 JSValuePtr regExpConstructorRightContext(ExecState* exec, const Identifier&, const PropertySlot& slot)
     299JSValue regExpConstructorRightContext(ExecState* exec, const Identifier&, const PropertySlot& slot)
    300300{
    301301    return asRegExpConstructor(slot.slotBase())->getRightContext(exec);
    302302}
    303303
    304 void RegExpConstructor::put(ExecState* exec, const Identifier& propertyName, JSValuePtr value, PutPropertySlot& slot)
     304void RegExpConstructor::put(ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot)
    305305{
    306306    lookupPut<RegExpConstructor, InternalFunction>(exec, propertyName, value, ExecState::regExpConstructorTable(exec), this, slot);
    307307}
    308308
    309 void setRegExpConstructorInput(ExecState* exec, JSObject* baseObject, JSValuePtr value)
     309void setRegExpConstructorInput(ExecState* exec, JSObject* baseObject, JSValue value)
    310310{
    311311    asRegExpConstructor(baseObject)->setInput(value.toString(exec));
    312312}
    313313
    314 void setRegExpConstructorMultiline(ExecState* exec, JSObject* baseObject, JSValuePtr value)
     314void setRegExpConstructorMultiline(ExecState* exec, JSObject* baseObject, JSValue value)
    315315{
    316316    asRegExpConstructor(baseObject)->setMultiline(value.toBoolean(exec));
     
    320320JSObject* constructRegExp(ExecState* exec, const ArgList& args)
    321321{
    322     JSValuePtr arg0 = args.at(0);
    323     JSValuePtr arg1 = args.at(1);
     322    JSValue arg0 = args.at(0);
     323    JSValue arg1 = args.at(1);
    324324
    325325    if (arg0.isObject(&RegExpObject::info)) {
     
    350350
    351351// ECMA 15.10.3
    352 static JSValuePtr callRegExpConstructor(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args)
     352static JSValue callRegExpConstructor(ExecState* exec, JSObject*, JSValue, const ArgList& args)
    353353{
    354354    return constructRegExp(exec, args);
  • trunk/JavaScriptCore/runtime/RegExpConstructor.h

    r39670 r43122  
    3535        RegExpConstructor(ExecState*, PassRefPtr<Structure>, RegExpPrototype*);
    3636
    37         static PassRefPtr<Structure> createStructure(JSValuePtr prototype)
     37        static PassRefPtr<Structure> createStructure(JSValue prototype)
    3838        {
    3939            return Structure::create(prototype, TypeInfo(ObjectType, ImplementsHasInstance));
    4040        }
    4141
    42         virtual void put(ExecState*, const Identifier& propertyName, JSValuePtr, PutPropertySlot&);
     42        virtual void put(ExecState*, const Identifier& propertyName, JSValue, PutPropertySlot&);
    4343        virtual bool getOwnPropertySlot(ExecState*, const Identifier& propertyName, PropertySlot&);
    4444
     
    5454        bool multiline() const;
    5555
    56         JSValuePtr getBackref(ExecState*, unsigned) const;
    57         JSValuePtr getLastParen(ExecState*) const;
    58         JSValuePtr getLeftContext(ExecState*) const;
    59         JSValuePtr getRightContext(ExecState*) const;
     56        JSValue getBackref(ExecState*, unsigned) const;
     57        JSValue getLastParen(ExecState*) const;
     58        JSValue getLeftContext(ExecState*) const;
     59        JSValue getRightContext(ExecState*) const;
    6060
    6161    private:
     
    6868    };
    6969
    70     RegExpConstructor* asRegExpConstructor(JSValuePtr);
     70    RegExpConstructor* asRegExpConstructor(JSValue);
    7171
    7272    JSObject* constructRegExp(ExecState*, const ArgList&);
    7373
    74     inline RegExpConstructor* asRegExpConstructor(JSValuePtr value)
     74    inline RegExpConstructor* asRegExpConstructor(JSValue value)
    7575    {
    7676        ASSERT(asObject(value)->inherits(&RegExpConstructor::info));
  • trunk/JavaScriptCore/runtime/RegExpMatchesArray.h

    r39670 r43122  
    4545        }
    4646
    47         virtual void put(ExecState* exec, const Identifier& propertyName, JSValuePtr v, PutPropertySlot& slot)
     47        virtual void put(ExecState* exec, const Identifier& propertyName, JSValue v, PutPropertySlot& slot)
    4848        {
    4949            if (lazyCreationData())
     
    5252        }
    5353
    54         virtual void put(ExecState* exec, unsigned propertyName, JSValuePtr v)
     54        virtual void put(ExecState* exec, unsigned propertyName, JSValue v)
    5555        {
    5656            if (lazyCreationData())
  • trunk/JavaScriptCore/runtime/RegExpObject.cpp

    r42989 r43122  
    3030namespace JSC {
    3131
    32 static JSValuePtr regExpObjectGlobal(ExecState*, const Identifier&, const PropertySlot&);
    33 static JSValuePtr regExpObjectIgnoreCase(ExecState*, const Identifier&, const PropertySlot&);
    34 static JSValuePtr regExpObjectMultiline(ExecState*, const Identifier&, const PropertySlot&);
    35 static JSValuePtr regExpObjectSource(ExecState*, const Identifier&, const PropertySlot&);
    36 static JSValuePtr regExpObjectLastIndex(ExecState*, const Identifier&, const PropertySlot&);
    37 static void setRegExpObjectLastIndex(ExecState*, JSObject*, JSValuePtr);
     32static JSValue regExpObjectGlobal(ExecState*, const Identifier&, const PropertySlot&);
     33static JSValue regExpObjectIgnoreCase(ExecState*, const Identifier&, const PropertySlot&);
     34static JSValue regExpObjectMultiline(ExecState*, const Identifier&, const PropertySlot&);
     35static JSValue regExpObjectSource(ExecState*, const Identifier&, const PropertySlot&);
     36static JSValue regExpObjectLastIndex(ExecState*, const Identifier&, const PropertySlot&);
     37static void setRegExpObjectLastIndex(ExecState*, JSObject*, JSValue);
    3838
    3939} // namespace JSC
     
    7272}
    7373
    74 JSValuePtr regExpObjectGlobal(ExecState*, const Identifier&, const PropertySlot& slot)
     74JSValue regExpObjectGlobal(ExecState*, const Identifier&, const PropertySlot& slot)
    7575{
    7676    return jsBoolean(asRegExpObject(slot.slotBase())->regExp()->global());
    7777}
    7878
    79 JSValuePtr regExpObjectIgnoreCase(ExecState*, const Identifier&, const PropertySlot& slot)
     79JSValue regExpObjectIgnoreCase(ExecState*, const Identifier&, const PropertySlot& slot)
    8080{
    8181    return jsBoolean(asRegExpObject(slot.slotBase())->regExp()->ignoreCase());
    8282}
    8383 
    84 JSValuePtr regExpObjectMultiline(ExecState*, const Identifier&, const PropertySlot& slot)
     84JSValue regExpObjectMultiline(ExecState*, const Identifier&, const PropertySlot& slot)
    8585{           
    8686    return jsBoolean(asRegExpObject(slot.slotBase())->regExp()->multiline());
    8787}
    8888
    89 JSValuePtr regExpObjectSource(ExecState* exec, const Identifier&, const PropertySlot& slot)
     89JSValue regExpObjectSource(ExecState* exec, const Identifier&, const PropertySlot& slot)
    9090{
    9191    return jsString(exec, asRegExpObject(slot.slotBase())->regExp()->pattern());
    9292}
    9393
    94 JSValuePtr regExpObjectLastIndex(ExecState* exec, const Identifier&, const PropertySlot& slot)
     94JSValue regExpObjectLastIndex(ExecState* exec, const Identifier&, const PropertySlot& slot)
    9595{
    9696    return jsNumber(exec, asRegExpObject(slot.slotBase())->lastIndex());
    9797}
    9898
    99 void RegExpObject::put(ExecState* exec, const Identifier& propertyName, JSValuePtr value, PutPropertySlot& slot)
     99void RegExpObject::put(ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot)
    100100{
    101101    lookupPut<RegExpObject, JSObject>(exec, propertyName, value, ExecState::regExpTable(exec), this, slot);
    102102}
    103103
    104 void setRegExpObjectLastIndex(ExecState* exec, JSObject* baseObject, JSValuePtr value)
     104void setRegExpObjectLastIndex(ExecState* exec, JSObject* baseObject, JSValue value)
    105105{
    106106    asRegExpObject(baseObject)->setLastIndex(value.toInteger(exec));
    107107}
    108108
    109 JSValuePtr RegExpObject::test(ExecState* exec, const ArgList& args)
     109JSValue RegExpObject::test(ExecState* exec, const ArgList& args)
    110110{
    111111    return jsBoolean(match(exec, args));
    112112}
    113113
    114 JSValuePtr RegExpObject::exec(ExecState* exec, const ArgList& args)
     114JSValue RegExpObject::exec(ExecState* exec, const ArgList& args)
    115115{
    116116    if (match(exec, args))
     
    119119}
    120120
    121 static JSValuePtr callRegExpObject(ExecState* exec, JSObject* function, JSValuePtr, const ArgList& args)
     121static JSValue callRegExpObject(ExecState* exec, JSObject* function, JSValue, const ArgList& args)
    122122{
    123123    return asRegExpObject(function)->exec(exec, args);
  • trunk/JavaScriptCore/runtime/RegExpObject.h

    r39670 r43122  
    3838        double lastIndex() const { return d->lastIndex; }
    3939
    40         JSValuePtr test(ExecState*, const ArgList&);
    41         JSValuePtr exec(ExecState*, const ArgList&);
     40        JSValue test(ExecState*, const ArgList&);
     41        JSValue exec(ExecState*, const ArgList&);
    4242
    4343        virtual bool getOwnPropertySlot(ExecState*, const Identifier& propertyName, PropertySlot&);
    44         virtual void put(ExecState*, const Identifier& propertyName, JSValuePtr, PutPropertySlot&);
     44        virtual void put(ExecState*, const Identifier& propertyName, JSValue, PutPropertySlot&);
    4545
    4646        virtual const ClassInfo* classInfo() const { return &info; }
    4747        static const ClassInfo info;
    4848
    49         static PassRefPtr<Structure> createStructure(JSValuePtr prototype)
     49        static PassRefPtr<Structure> createStructure(JSValue prototype)
    5050        {
    5151            return Structure::create(prototype, TypeInfo(ObjectType));
     
    7171    };
    7272
    73     RegExpObject* asRegExpObject(JSValuePtr);
     73    RegExpObject* asRegExpObject(JSValue);
    7474
    75     inline RegExpObject* asRegExpObject(JSValuePtr value)
     75    inline RegExpObject* asRegExpObject(JSValue value)
    7676    {
    7777        ASSERT(asObject(value)->inherits(&RegExpObject::info));
  • trunk/JavaScriptCore/runtime/RegExpPrototype.cpp

    r42989 r43122  
    3636ASSERT_CLASS_FITS_IN_CELL(RegExpPrototype);
    3737
    38 static JSValuePtr regExpProtoFuncTest(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    39 static JSValuePtr regExpProtoFuncExec(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    40 static JSValuePtr regExpProtoFuncCompile(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    41 static JSValuePtr regExpProtoFuncToString(ExecState*, JSObject*, JSValuePtr, const ArgList&);
     38static JSValue regExpProtoFuncTest(ExecState*, JSObject*, JSValue, const ArgList&);
     39static JSValue regExpProtoFuncExec(ExecState*, JSObject*, JSValue, const ArgList&);
     40static JSValue regExpProtoFuncCompile(ExecState*, JSObject*, JSValue, const ArgList&);
     41static JSValue regExpProtoFuncToString(ExecState*, JSObject*, JSValue, const ArgList&);
    4242
    4343// ECMA 15.10.5
     
    5656// ------------------------------ Functions ---------------------------
    5757   
    58 JSValuePtr regExpProtoFuncTest(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
     58JSValue regExpProtoFuncTest(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
    5959{
    6060    if (!thisValue.isObject(&RegExpObject::info))
     
    6363}
    6464
    65 JSValuePtr regExpProtoFuncExec(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
     65JSValue regExpProtoFuncExec(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
    6666{
    6767    if (!thisValue.isObject(&RegExpObject::info))
     
    7070}
    7171
    72 JSValuePtr regExpProtoFuncCompile(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
     72JSValue regExpProtoFuncCompile(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
    7373{
    7474    if (!thisValue.isObject(&RegExpObject::info))
     
    7676
    7777    RefPtr<RegExp> regExp;
    78     JSValuePtr arg0 = args.at(0);
    79     JSValuePtr arg1 = args.at(1);
     78    JSValue arg0 = args.at(0);
     79    JSValue arg1 = args.at(1);
    8080   
    8181    if (arg0.isObject(&RegExpObject::info)) {
     
    9797}
    9898
    99 JSValuePtr regExpProtoFuncToString(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList&)
     99JSValue regExpProtoFuncToString(ExecState* exec, JSObject*, JSValue thisValue, const ArgList&)
    100100{
    101101    if (!thisValue.isObject(&RegExpObject::info)) {
  • trunk/JavaScriptCore/runtime/StringConstructor.cpp

    r43037 r43122  
    2828namespace JSC {
    2929
    30 static NEVER_INLINE JSValuePtr stringFromCharCodeSlowCase(ExecState* exec, const ArgList& args)
     30static NEVER_INLINE JSValue stringFromCharCodeSlowCase(ExecState* exec, const ArgList& args)
    3131{
    3232    UChar* buf = static_cast<UChar*>(fastMalloc(args.size() * sizeof(UChar)));
     
    3838}
    3939
    40 static JSValuePtr stringFromCharCode(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args)
     40static JSValue stringFromCharCode(ExecState* exec, JSObject*, JSValue, const ArgList& args)
    4141{
    4242    if (LIKELY(args.size() == 1))
     
    7575
    7676// ECMA 15.5.1
    77 static JSValuePtr callStringConstructor(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args)
     77static JSValue callStringConstructor(ExecState* exec, JSObject*, JSValue, const ArgList& args)
    7878{
    7979    if (args.isEmpty())
  • trunk/JavaScriptCore/runtime/StringObject.cpp

    r39670 r43122  
    6262}
    6363
    64 void StringObject::put(ExecState* exec, const Identifier& propertyName, JSValuePtr value, PutPropertySlot& slot)
     64void StringObject::put(ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot)
    6565{
    6666    if (propertyName == exec->propertyNames().length)
  • trunk/JavaScriptCore/runtime/StringObject.h

    r42680 r43122  
    3737        virtual bool getOwnPropertySlot(ExecState*, unsigned propertyName, PropertySlot&);
    3838
    39         virtual void put(ExecState* exec, const Identifier& propertyName, JSValuePtr, PutPropertySlot&);
     39        virtual void put(ExecState* exec, const Identifier& propertyName, JSValue, PutPropertySlot&);
    4040        virtual bool deleteProperty(ExecState*, const Identifier& propertyName);
    4141        virtual void getPropertyNames(ExecState*, PropertyNameArray&);
     
    4646        JSString* internalValue() const { return asString(JSWrapperObject::internalValue());}
    4747
    48         static PassRefPtr<Structure> createStructure(JSValuePtr prototype)
     48        static PassRefPtr<Structure> createStructure(JSValue prototype)
    4949        {
    5050            return Structure::create(prototype, TypeInfo(ObjectType));
     
    6060  };
    6161
    62     StringObject* asStringObject(JSValuePtr);
     62    StringObject* asStringObject(JSValue);
    6363
    64     inline StringObject* asStringObject(JSValuePtr value)
     64    inline StringObject* asStringObject(JSValue value)
    6565    {
    6666        ASSERT(asObject(value)->inherits(&StringObject::info));
  • trunk/JavaScriptCore/runtime/StringObjectThatMasqueradesAsUndefined.h

    r39670 r43122  
    4343        }
    4444
    45         static PassRefPtr<Structure> createStructure(JSValuePtr proto)
     45        static PassRefPtr<Structure> createStructure(JSValue proto)
    4646        {
    4747            return Structure::create(proto, TypeInfo(ObjectType, MasqueradesAsUndefined));
  • trunk/JavaScriptCore/runtime/StringPrototype.cpp

    r43104 r43122  
    3939ASSERT_CLASS_FITS_IN_CELL(StringPrototype);
    4040
    41 static JSValuePtr stringProtoFuncToString(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    42 static JSValuePtr stringProtoFuncCharAt(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    43 static JSValuePtr stringProtoFuncCharCodeAt(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    44 static JSValuePtr stringProtoFuncConcat(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    45 static JSValuePtr stringProtoFuncIndexOf(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    46 static JSValuePtr stringProtoFuncLastIndexOf(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    47 static JSValuePtr stringProtoFuncMatch(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    48 static JSValuePtr stringProtoFuncReplace(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    49 static JSValuePtr stringProtoFuncSearch(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    50 static JSValuePtr stringProtoFuncSlice(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    51 static JSValuePtr stringProtoFuncSplit(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    52 static JSValuePtr stringProtoFuncSubstr(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    53 static JSValuePtr stringProtoFuncSubstring(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    54 static JSValuePtr stringProtoFuncToLowerCase(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    55 static JSValuePtr stringProtoFuncToUpperCase(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    56 static JSValuePtr stringProtoFuncLocaleCompare(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    57 
    58 static JSValuePtr stringProtoFuncBig(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    59 static JSValuePtr stringProtoFuncSmall(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    60 static JSValuePtr stringProtoFuncBlink(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    61 static JSValuePtr stringProtoFuncBold(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    62 static JSValuePtr stringProtoFuncFixed(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    63 static JSValuePtr stringProtoFuncItalics(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    64 static JSValuePtr stringProtoFuncStrike(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    65 static JSValuePtr stringProtoFuncSub(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    66 static JSValuePtr stringProtoFuncSup(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    67 static JSValuePtr stringProtoFuncFontcolor(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    68 static JSValuePtr stringProtoFuncFontsize(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    69 static JSValuePtr stringProtoFuncAnchor(ExecState*, JSObject*, JSValuePtr, const ArgList&);
    70 static JSValuePtr stringProtoFuncLink(ExecState*, JSObject*, JSValuePtr, const ArgList&);
     41static JSValue stringProtoFuncToString(ExecState*, JSObject*, JSValue, const ArgList&);
     42static JSValue stringProtoFuncCharAt(ExecState*, JSObject*, JSValue, const ArgList&);
     43static JSValue stringProtoFuncCharCodeAt(ExecState*, JSObject*, JSValue, const ArgList&);
     44static JSValue stringProtoFuncConcat(ExecState*, JSObject*, JSValue, const ArgList&);
     45static JSValue stringProtoFuncIndexOf(ExecState*, JSObject*, JSValue, const ArgList&);
     46static JSValue stringProtoFuncLastIndexOf(ExecState*, JSObject*, JSValue, const ArgList&);
     47static JSValue stringProtoFuncMatch(ExecState*, JSObject*, JSValue, const ArgList&);
     48static JSValue stringProtoFuncReplace(ExecState*, JSObject*, JSValue, const ArgList&);
     49static JSValue stringProtoFuncSearch(ExecState*, JSObject*, JSValue, const ArgList&);
     50static JSValue stringProtoFuncSlice(ExecState*, JSObject*, JSValue, const ArgList&);
     51static JSValue stringProtoFuncSplit(ExecState*, JSObject*, JSValue, const ArgList&);
     52static JSValue stringProtoFuncSubstr(ExecState*, JSObject*, JSValue, const ArgList&);
     53static JSValue stringProtoFuncSubstring(ExecState*, JSObject*, JSValue, const ArgList&);
     54static JSValue stringProtoFuncToLowerCase(ExecState*, JSObject*, JSValue, const ArgList&);
     55static JSValue stringProtoFuncToUpperCase(ExecState*, JSObject*, JSValue, const ArgList&);
     56static JSValue stringProtoFuncLocaleCompare(ExecState*, JSObject*, JSValue, const ArgList&);
     57
     58static JSValue stringProtoFuncBig(ExecState*, JSObject*, JSValue, const ArgList&);
     59static JSValue stringProtoFuncSmall(ExecState*, JSObject*, JSValue, const ArgList&);
     60static JSValue stringProtoFuncBlink(ExecState*, JSObject*, JSValue, const ArgList&);
     61static JSValue stringProtoFuncBold(ExecState*, JSObject*, JSValue, const ArgList&);
     62static JSValue stringProtoFuncFixed(ExecState*, JSObject*, JSValue, const ArgList&);
     63static JSValue stringProtoFuncItalics(ExecState*, JSObject*, JSValue, const ArgList&);
     64static JSValue stringProtoFuncStrike(ExecState*, JSObject*, JSValue, const ArgList&);
     65static JSValue stringProtoFuncSub(ExecState*, JSObject*, JSValue, const ArgList&);
     66static JSValue stringProtoFuncSup(ExecState*, JSObject*, JSValue, const ArgList&);
     67static JSValue stringProtoFuncFontcolor(ExecState*, JSObject*, JSValue, const ArgList&);
     68static JSValue stringProtoFuncFontsize(ExecState*, JSObject*, JSValue, const ArgList&);
     69static JSValue stringProtoFuncAnchor(ExecState*, JSObject*, JSValue, const ArgList&);
     70static JSValue stringProtoFuncLink(ExecState*, JSObject*, JSValue, const ArgList&);
    7171
    7272}
     
    206206}
    207207
    208 JSValuePtr stringProtoFuncReplace(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
     208JSValue stringProtoFuncReplace(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
    209209{
    210210    JSString* sourceVal = thisValue.toThisJSString(exec);
    211211    const UString& source = sourceVal->value();
    212212
    213     JSValuePtr pattern = args.at(0);
    214 
    215     JSValuePtr replacement = args.at(1);
     213    JSValue pattern = args.at(0);
     214
     215    JSValue replacement = args.at(1);
    216216    UString replacementString;
    217217    CallData callData;
     
    355355}
    356356
    357 JSValuePtr stringProtoFuncToString(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList&)
     357JSValue stringProtoFuncToString(ExecState* exec, JSObject*, JSValue thisValue, const ArgList&)
    358358{
    359359    // Also used for valueOf.
     
    368368}
    369369
    370 JSValuePtr stringProtoFuncCharAt(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
     370JSValue stringProtoFuncCharAt(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
    371371{
    372372    UString s = thisValue.toThisString(exec);
    373373    unsigned len = s.size();
    374     JSValuePtr a0 = args.at(0);
     374    JSValue a0 = args.at(0);
    375375    if (a0.isUInt32Fast()) {
    376376        uint32_t i = a0.getUInt32Fast();
     
    385385}
    386386
    387 JSValuePtr stringProtoFuncCharCodeAt(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
     387JSValue stringProtoFuncCharCodeAt(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
    388388{
    389389    UString s = thisValue.toThisString(exec);
    390390    unsigned len = s.size();
    391     JSValuePtr a0 = args.at(0);
     391    JSValue a0 = args.at(0);
    392392    if (a0.isUInt32Fast()) {
    393393        uint32_t i = a0.getUInt32Fast();
     
    402402}
    403403
    404 JSValuePtr stringProtoFuncConcat(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
     404JSValue stringProtoFuncConcat(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
    405405{
    406406    UString s = thisValue.toThisString(exec);
     
    412412}
    413413
    414 JSValuePtr stringProtoFuncIndexOf(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
     414JSValue stringProtoFuncIndexOf(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
    415415{
    416416    UString s = thisValue.toThisString(exec);
    417417    int len = s.size();
    418418
    419     JSValuePtr a0 = args.at(0);
    420     JSValuePtr a1 = args.at(1);
     419    JSValue a0 = args.at(0);
     420    JSValue a1 = args.at(1);
    421421    UString u2 = a0.toString(exec);
    422422    int pos;
     
    437437}
    438438
    439 JSValuePtr stringProtoFuncLastIndexOf(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
     439JSValue stringProtoFuncLastIndexOf(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
    440440{
    441441    UString s = thisValue.toThisString(exec);
    442442    int len = s.size();
    443443
    444     JSValuePtr a0 = args.at(0);
    445     JSValuePtr a1 = args.at(1);
     444    JSValue a0 = args.at(0);
     445    JSValue a1 = args.at(1);
    446446
    447447    UString u2 = a0.toString(exec);
     
    454454}
    455455
    456 JSValuePtr stringProtoFuncMatch(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
    457 {
    458     UString s = thisValue.toThisString(exec);
    459 
    460     JSValuePtr a0 = args.at(0);
     456JSValue stringProtoFuncMatch(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
     457{
     458    UString s = thisValue.toThisString(exec);
     459
     460    JSValue a0 = args.at(0);
    461461
    462462    UString u = s;
     
    505505}
    506506
    507 JSValuePtr stringProtoFuncSearch(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
    508 {
    509     UString s = thisValue.toThisString(exec);
    510 
    511     JSValuePtr a0 = args.at(0);
     507JSValue stringProtoFuncSearch(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
     508{
     509    UString s = thisValue.toThisString(exec);
     510
     511    JSValue a0 = args.at(0);
    512512
    513513    UString u = s;
     
    530530}
    531531
    532 JSValuePtr stringProtoFuncSlice(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
     532JSValue stringProtoFuncSlice(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
    533533{
    534534    UString s = thisValue.toThisString(exec);
    535535    int len = s.size();
    536536
    537     JSValuePtr a0 = args.at(0);
    538     JSValuePtr a1 = args.at(1);
     537    JSValue a0 = args.at(0);
     538    JSValue a1 = args.at(1);
    539539
    540540    // The arg processing is very much like ArrayProtoFunc::Slice
     
    554554}
    555555
    556 JSValuePtr stringProtoFuncSplit(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
    557 {
    558     UString s = thisValue.toThisString(exec);
    559 
    560     JSValuePtr a0 = args.at(0);
    561     JSValuePtr a1 = args.at(1);
     556JSValue stringProtoFuncSplit(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
     557{
     558    UString s = thisValue.toThisString(exec);
     559
     560    JSValue a0 = args.at(0);
     561    JSValue a1 = args.at(1);
    562562
    563563    JSArray* result = constructEmptyArray(exec);
     
    616616}
    617617
    618 JSValuePtr stringProtoFuncSubstr(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
     618JSValue stringProtoFuncSubstr(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
    619619{
    620620    UString s = thisValue.toThisString(exec);
    621621    int len = s.size();
    622622
    623     JSValuePtr a0 = args.at(0);
    624     JSValuePtr a1 = args.at(1);
     623    JSValue a0 = args.at(0);
     624    JSValue a1 = args.at(1);
    625625
    626626    double start = a0.toInteger(exec);
     
    638638}
    639639
    640 JSValuePtr stringProtoFuncSubstring(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
     640JSValue stringProtoFuncSubstring(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
    641641{
    642642    UString s = thisValue.toThisString(exec);
    643643    int len = s.size();
    644644
    645     JSValuePtr a0 = args.at(0);
    646     JSValuePtr a1 = args.at(1);
     645    JSValue a0 = args.at(0);
     646    JSValue a1 = args.at(1);
    647647
    648648    double start = a0.toNumber(exec);
     
    670670}
    671671
    672 JSValuePtr stringProtoFuncToLowerCase(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList&)
     672JSValue stringProtoFuncToLowerCase(ExecState* exec, JSObject*, JSValue thisValue, const ArgList&)
    673673{
    674674    JSString* sVal = thisValue.toThisJSString(exec);
     
    704704}
    705705
    706 JSValuePtr stringProtoFuncToUpperCase(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList&)
     706JSValue stringProtoFuncToUpperCase(ExecState* exec, JSObject*, JSValue thisValue, const ArgList&)
    707707{
    708708    JSString* sVal = thisValue.toThisJSString(exec);
     
    738738}
    739739
    740 JSValuePtr stringProtoFuncLocaleCompare(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
     740JSValue stringProtoFuncLocaleCompare(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
    741741{
    742742    if (args.size() < 1)
     
    744744
    745745    UString s = thisValue.toThisString(exec);
    746     JSValuePtr a0 = args.at(0);
     746    JSValue a0 = args.at(0);
    747747    return jsNumber(exec, localeCompare(s, a0.toString(exec)));
    748748}
    749749
    750 JSValuePtr stringProtoFuncBig(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList&)
     750JSValue stringProtoFuncBig(ExecState* exec, JSObject*, JSValue thisValue, const ArgList&)
    751751{
    752752    UString s = thisValue.toThisString(exec);
     
    754754}
    755755
    756 JSValuePtr stringProtoFuncSmall(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList&)
     756JSValue stringProtoFuncSmall(ExecState* exec, JSObject*, JSValue thisValue, const ArgList&)
    757757{
    758758    UString s = thisValue.toThisString(exec);
     
    760760}
    761761
    762 JSValuePtr stringProtoFuncBlink(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList&)
     762JSValue stringProtoFuncBlink(ExecState* exec, JSObject*, JSValue thisValue, const ArgList&)
    763763{
    764764    UString s = thisValue.toThisString(exec);
     
    766766}
    767767
    768 JSValuePtr stringProtoFuncBold(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList&)
     768JSValue stringProtoFuncBold(ExecState* exec, JSObject*, JSValue thisValue, const ArgList&)
    769769{
    770770    UString s = thisValue.toThisString(exec);
     
    772772}
    773773
    774 JSValuePtr stringProtoFuncFixed(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList&)
     774JSValue stringProtoFuncFixed(ExecState* exec, JSObject*, JSValue thisValue, const ArgList&)
    775775{
    776776    UString s = thisValue.toThisString(exec);
     
    778778}
    779779
    780 JSValuePtr stringProtoFuncItalics(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList&)
     780JSValue stringProtoFuncItalics(ExecState* exec, JSObject*, JSValue thisValue, const ArgList&)
    781781{
    782782    UString s = thisValue.toThisString(exec);
     
    784784}
    785785
    786 JSValuePtr stringProtoFuncStrike(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList&)
     786JSValue stringProtoFuncStrike(ExecState* exec, JSObject*, JSValue thisValue, const ArgList&)
    787787{
    788788    UString s = thisValue.toThisString(exec);
     
    790790}
    791791
    792 JSValuePtr stringProtoFuncSub(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList&)
     792JSValue stringProtoFuncSub(ExecState* exec, JSObject*, JSValue thisValue, const ArgList&)
    793793{
    794794    UString s = thisValue.toThisString(exec);
     
    796796}
    797797
    798 JSValuePtr stringProtoFuncSup(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList&)
     798JSValue stringProtoFuncSup(ExecState* exec, JSObject*, JSValue thisValue, const ArgList&)
    799799{
    800800    UString s = thisValue.toThisString(exec);
     
    802802}
    803803
    804 JSValuePtr stringProtoFuncFontcolor(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
    805 {
    806     UString s = thisValue.toThisString(exec);
    807     JSValuePtr a0 = args.at(0);
     804JSValue stringProtoFuncFontcolor(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
     805{
     806    UString s = thisValue.toThisString(exec);
     807    JSValue a0 = args.at(0);
    808808    return jsNontrivialString(exec, "<font color=\"" + a0.toString(exec) + "\">" + s + "</font>");
    809809}
    810810
    811 JSValuePtr stringProtoFuncFontsize(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
    812 {
    813     UString s = thisValue.toThisString(exec);
    814     JSValuePtr a0 = args.at(0);
     811JSValue stringProtoFuncFontsize(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
     812{
     813    UString s = thisValue.toThisString(exec);
     814    JSValue a0 = args.at(0);
    815815
    816816    uint32_t smallInteger;
     
    850850}
    851851
    852 JSValuePtr stringProtoFuncAnchor(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
    853 {
    854     UString s = thisValue.toThisString(exec);
    855     JSValuePtr a0 = args.at(0);
     852JSValue stringProtoFuncAnchor(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
     853{
     854    UString s = thisValue.toThisString(exec);
     855    JSValue a0 = args.at(0);
    856856    return jsNontrivialString(exec, "<a name=\"" + a0.toString(exec) + "\">" + s + "</a>");
    857857}
    858858
    859 JSValuePtr stringProtoFuncLink(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
    860 {
    861     UString s = thisValue.toThisString(exec);
    862     JSValuePtr a0 = args.at(0);
     859JSValue stringProtoFuncLink(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
     860{
     861    UString s = thisValue.toThisString(exec);
     862    JSValue a0 = args.at(0);
    863863    UString linkText = a0.toString(exec);
    864864
  • trunk/JavaScriptCore/runtime/Structure.cpp

    r42606 r43122  
    121121}
    122122
    123 Structure::Structure(JSValuePtr prototype, const TypeInfo& typeInfo)
     123Structure::Structure(JSValue prototype, const TypeInfo& typeInfo)
    124124    : m_typeInfo(typeInfo)
    125125    , m_prototype(prototype)
     
    419419}
    420420
    421 PassRefPtr<Structure> Structure::changePrototypeTransition(Structure* structure, JSValuePtr prototype)
     421PassRefPtr<Structure> Structure::changePrototypeTransition(Structure* structure, JSValue prototype)
    422422{
    423423    RefPtr<Structure> transition = create(prototype, structure->typeInfo());
  • trunk/JavaScriptCore/runtime/Structure.h

    r41232 r43122  
    5252    public:
    5353        friend class JIT;
    54         static PassRefPtr<Structure> create(JSValuePtr prototype, const TypeInfo& typeInfo)
     54        static PassRefPtr<Structure> create(JSValue prototype, const TypeInfo& typeInfo)
    5555        {
    5656            return adoptRef(new Structure(prototype, typeInfo));
     
    6565        static PassRefPtr<Structure> addPropertyTransitionToExistingStructure(Structure*, const Identifier& propertyName, unsigned attributes, size_t& offset);
    6666        static PassRefPtr<Structure> removePropertyTransition(Structure*, const Identifier& propertyName, size_t& offset);
    67         static PassRefPtr<Structure> changePrototypeTransition(Structure*, JSValuePtr prototype);
     67        static PassRefPtr<Structure> changePrototypeTransition(Structure*, JSValue prototype);
    6868        static PassRefPtr<Structure> getterSetterTransition(Structure*);
    6969        static PassRefPtr<Structure> toDictionaryTransition(Structure*);
     
    8181        size_t addPropertyWithoutTransition(const Identifier& propertyName, unsigned attributes);
    8282        size_t removePropertyWithoutTransition(const Identifier& propertyName);
    83         void setPrototypeWithoutTransition(JSValuePtr prototype) { m_prototype = prototype; }
     83        void setPrototypeWithoutTransition(JSValue prototype) { m_prototype = prototype; }
    8484
    8585        bool isDictionary() const { return m_isDictionary; }
     
    8787        const TypeInfo& typeInfo() const { return m_typeInfo; }
    8888
    89         JSValuePtr storedPrototype() const { return m_prototype; }
    90         JSValuePtr prototypeForLookup(ExecState*) const;
     89        JSValue storedPrototype() const { return m_prototype; }
     90        JSValue prototypeForLookup(ExecState*) const;
    9191        StructureChain* prototypeChain(ExecState*) const;
    9292
     
    107107
    108108    private:
    109         Structure(JSValuePtr prototype, const TypeInfo&);
     109        Structure(JSValue prototype, const TypeInfo&);
    110110
    111111        size_t put(const Identifier& propertyName, unsigned attributes);
     
    154154        TypeInfo m_typeInfo;
    155155
    156         JSValuePtr m_prototype;
     156        JSValue m_prototype;
    157157        mutable RefPtr<StructureChain> m_cachedPrototypeChain;
    158158
Note: See TracChangeset for help on using the changeset viewer.