Ignore:
Timestamp:
Jan 19, 2009, 4:54:18 PM (16 years ago)
Author:
[email protected]
Message:

JavaScriptCore:

2009-01-19 Sam Weinig <[email protected]>

Rubber-stamped by Gavin Barraclough.

Remove temporary operator-> from JSValuePtr.

  • API/JSCallbackFunction.cpp: (JSC::JSCallbackFunction::call):
  • API/JSCallbackObjectFunctions.h: (JSC::::call): (JSC::::toNumber): (JSC::::toString):
  • API/JSObjectRef.cpp: (JSObjectSetPrototype):
  • API/JSValueRef.cpp: (JSValueGetType): (JSValueIsUndefined): (JSValueIsNull): (JSValueIsBoolean): (JSValueIsNumber): (JSValueIsString): (JSValueIsObject): (JSValueIsObjectOfClass): (JSValueToBoolean): (JSValueToNumber): (JSValueToStringCopy): (JSValueToObject):
  • bytecode/CodeBlock.cpp: (JSC::valueToSourceString): (JSC::CodeBlock::mark):
  • bytecode/CodeBlock.h: (JSC::CodeBlock::isKnownNotImmediate):
  • bytecompiler/BytecodeGenerator.cpp: (JSC::BytecodeGenerator::emitEqualityOp): (JSC::keyForImmediateSwitch):
  • interpreter/Interpreter.cpp: (JSC::jsLess): (JSC::jsLessEq): (JSC::jsAddSlowCase): (JSC::jsAdd): (JSC::jsTypeStringForValue): (JSC::jsIsObjectType): (JSC::jsIsFunctionType): (JSC::isNotObject): (JSC::Interpreter::callEval): (JSC::Interpreter::throwException): (JSC::cachePrototypeChain): (JSC::Interpreter::tryCachePutByID): (JSC::countPrototypeChainEntriesAndCheckForProxies): (JSC::Interpreter::tryCacheGetByID): (JSC::Interpreter::privateExecute): (JSC::Interpreter::tryCTICachePutByID): (JSC::Interpreter::tryCTICacheGetByID): (JSC::Interpreter::cti_op_convert_this): (JSC::Interpreter::cti_op_add): (JSC::Interpreter::cti_op_pre_inc): (JSC::Interpreter::cti_op_put_by_id_generic): (JSC::Interpreter::cti_op_get_by_id_generic): (JSC::Interpreter::cti_op_put_by_id): (JSC::Interpreter::cti_op_put_by_id_second): (JSC::Interpreter::cti_op_put_by_id_fail): (JSC::Interpreter::cti_op_get_by_id): (JSC::Interpreter::cti_op_get_by_id_second): (JSC::Interpreter::cti_op_get_by_id_self_fail): (JSC::Interpreter::cti_op_get_by_id_proto_list): (JSC::Interpreter::cti_op_get_by_id_proto_list_full): (JSC::Interpreter::cti_op_get_by_id_proto_fail): (JSC::Interpreter::cti_op_get_by_id_array_fail): (JSC::Interpreter::cti_op_get_by_id_string_fail): (JSC::Interpreter::cti_op_instanceof): (JSC::Interpreter::cti_op_del_by_id): (JSC::Interpreter::cti_op_mul): (JSC::Interpreter::cti_op_call_JSFunction): (JSC::Interpreter::cti_op_call_NotJSFunction): (JSC::Interpreter::cti_op_construct_JSConstruct): (JSC::Interpreter::cti_op_construct_NotJSConstruct): (JSC::Interpreter::cti_op_get_by_val): (JSC::Interpreter::cti_op_get_by_val_byte_array): (JSC::Interpreter::cti_op_sub): (JSC::Interpreter::cti_op_put_by_val): (JSC::Interpreter::cti_op_put_by_val_array): (JSC::Interpreter::cti_op_put_by_val_byte_array): (JSC::Interpreter::cti_op_loop_if_true): (JSC::Interpreter::cti_op_negate): (JSC::Interpreter::cti_op_div): (JSC::Interpreter::cti_op_pre_dec): (JSC::Interpreter::cti_op_not): (JSC::Interpreter::cti_op_jtrue): (JSC::Interpreter::cti_op_post_inc): (JSC::Interpreter::cti_op_lshift): (JSC::Interpreter::cti_op_bitand): (JSC::Interpreter::cti_op_rshift): (JSC::Interpreter::cti_op_bitnot): (JSC::Interpreter::cti_op_mod): (JSC::Interpreter::cti_op_post_dec): (JSC::Interpreter::cti_op_urshift): (JSC::Interpreter::cti_op_bitxor): (JSC::Interpreter::cti_op_bitor): (JSC::Interpreter::cti_op_push_scope): (JSC::Interpreter::cti_op_is_undefined): (JSC::Interpreter::cti_op_is_boolean): (JSC::Interpreter::cti_op_is_number): (JSC::Interpreter::cti_op_to_jsnumber): (JSC::Interpreter::cti_op_in): (JSC::Interpreter::cti_op_put_by_index): (JSC::Interpreter::cti_op_switch_imm): (JSC::Interpreter::cti_op_switch_char): (JSC::Interpreter::cti_op_switch_string): (JSC::Interpreter::cti_op_del_by_val): (JSC::Interpreter::cti_op_put_getter): (JSC::Interpreter::cti_op_put_setter): (JSC::Interpreter::cti_op_new_error):
  • interpreter/Interpreter.h: (JSC::Interpreter::isJSArray): (JSC::Interpreter::isJSString): (JSC::Interpreter::isJSByteArray):
  • interpreter/Register.h: (JSC::Register::marked): (JSC::Register::mark):
  • jit/JITInlineMethods.h: (JSC::JIT::getConstantOperandImmediateInt): (JSC::JIT::isOperandConstantImmediateInt):
  • jsc.cpp: (functionPrint): (functionDebug): (functionRun): (functionLoad): (runWithScripts): (runInteractive):
  • parser/Nodes.cpp: (JSC::processClauseList):
  • profiler/ProfileGenerator.cpp: (JSC::ProfileGenerator::addParentForConsoleStart):
  • profiler/Profiler.cpp: (JSC::Profiler::createCallIdentifier):
  • runtime/ArrayConstructor.cpp: (JSC::constructArrayWithSizeQuirk):
  • runtime/ArrayPrototype.cpp: (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::arrayProtoFuncIndexOf): (JSC::arrayProtoFuncLastIndexOf):
  • runtime/BooleanConstructor.cpp: (JSC::constructBoolean): (JSC::callBooleanConstructor):
  • runtime/BooleanPrototype.cpp: (JSC::booleanProtoFuncToString): (JSC::booleanProtoFuncValueOf):
  • runtime/Collector.cpp: (JSC::Heap::protect): (JSC::Heap::unprotect): (JSC::Heap::heap): (JSC::Heap::collect): (JSC::typeName):
  • runtime/Completion.cpp: (JSC::evaluate):
  • runtime/DateConstructor.cpp: (JSC::constructDate): (JSC::dateParse): (JSC::dateUTC):
  • runtime/DateInstance.h: (JSC::DateInstance::internalNumber):
  • runtime/DatePrototype.cpp: (JSC::formatLocaleDate): (JSC::fillStructuresUsingTimeArgs): (JSC::fillStructuresUsingDateArgs): (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::dateProtoFuncSetYear): (JSC::dateProtoFuncGetYear):
  • runtime/ErrorConstructor.cpp: (JSC::constructError):
  • runtime/ErrorPrototype.cpp: (JSC::errorProtoFuncToString):
  • runtime/ExceptionHelpers.cpp: (JSC::createError): (JSC::createErrorMessage):
  • runtime/FunctionConstructor.cpp: (JSC::constructFunction):
  • runtime/FunctionPrototype.cpp: (JSC::functionProtoFuncToString): (JSC::functionProtoFuncApply): (JSC::functionProtoFuncCall):
  • runtime/GetterSetter.cpp: (JSC::GetterSetter::toObject):
  • runtime/JSActivation.cpp: (JSC::JSActivation::getOwnPropertySlot):
  • runtime/JSArray.cpp: (JSC::JSArray::put): (JSC::JSArray::mark): (JSC::JSArray::sort): (JSC::AVLTreeAbstractorForArrayCompare::compare_key_key): (JSC::JSArray::compactForSorting):
  • runtime/JSByteArray.h: (JSC::JSByteArray::setIndex):
  • runtime/JSCell.h: (JSC::asCell):
  • runtime/JSFunction.cpp: (JSC::JSFunction::call): (JSC::JSFunction::construct):
  • runtime/JSGlobalObject.cpp: (JSC::markIfNeeded): (JSC::lastInPrototypeChain):
  • runtime/JSGlobalObjectFunctions.cpp: (JSC::encode): (JSC::decode): (JSC::globalFuncEval): (JSC::globalFuncParseInt): (JSC::globalFuncParseFloat): (JSC::globalFuncIsNaN): (JSC::globalFuncIsFinite): (JSC::globalFuncEscape): (JSC::globalFuncUnescape): (JSC::globalFuncJSCPrint):
  • runtime/JSImmediate.cpp: (JSC::JSImmediate::toThisObject): (JSC::JSImmediate::toObject): (JSC::JSImmediate::prototype): (JSC::JSImmediate::toString):
  • runtime/JSImmediate.h:
  • runtime/JSObject.cpp: (JSC::JSObject::mark): (JSC::JSObject::put): (JSC::callDefaultValueFunction): (JSC::JSObject::getPrimitiveNumber): (JSC::JSObject::defineGetter): (JSC::JSObject::defineSetter): (JSC::JSObject::lookupGetter): (JSC::JSObject::lookupSetter): (JSC::JSObject::hasInstance): (JSC::JSObject::toNumber): (JSC::JSObject::toString):
  • runtime/JSObject.h: (JSC::JSObject::JSObject): (JSC::JSObject::inlineGetOwnPropertySlot): (JSC::JSObject::getOwnPropertySlotForWrite): (JSC::JSObject::getPropertySlot): (JSC::JSValuePtr::get):
  • runtime/JSPropertyNameIterator.h: (JSC::JSPropertyNameIterator::create):
  • runtime/JSString.cpp: (JSC::JSString::getOwnPropertySlot):
  • runtime/JSValue.h:
  • runtime/JSWrapperObject.cpp: (JSC::JSWrapperObject::mark):
  • runtime/JSWrapperObject.h: (JSC::JSWrapperObject::setInternalValue):
  • 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::mathProtoFuncRound): (JSC::mathProtoFuncSin): (JSC::mathProtoFuncSqrt): (JSC::mathProtoFuncTan):
  • runtime/NativeErrorConstructor.cpp: (JSC::NativeErrorConstructor::NativeErrorConstructor): (JSC::NativeErrorConstructor::construct):
  • runtime/NumberConstructor.cpp: (JSC::constructWithNumberConstructor): (JSC::callNumberConstructor):
  • runtime/NumberPrototype.cpp: (JSC::numberProtoFuncToString): (JSC::numberProtoFuncToLocaleString): (JSC::numberProtoFuncValueOf): (JSC::numberProtoFuncToFixed): (JSC::numberProtoFuncToExponential): (JSC::numberProtoFuncToPrecision):
  • runtime/ObjectConstructor.cpp: (JSC::constructObject):
  • runtime/ObjectPrototype.cpp: (JSC::objectProtoFuncValueOf): (JSC::objectProtoFuncHasOwnProperty): (JSC::objectProtoFuncIsPrototypeOf): (JSC::objectProtoFuncDefineGetter): (JSC::objectProtoFuncDefineSetter): (JSC::objectProtoFuncLookupGetter): (JSC::objectProtoFuncLookupSetter): (JSC::objectProtoFuncPropertyIsEnumerable): (JSC::objectProtoFuncToLocaleString): (JSC::objectProtoFuncToString):
  • runtime/Operations.h: (JSC::JSValuePtr::equalSlowCaseInline): (JSC::JSValuePtr::strictEqual): (JSC::JSValuePtr::strictEqualSlowCaseInline):
  • runtime/Protect.h: (JSC::gcProtect): (JSC::gcUnprotect):
  • runtime/RegExpConstructor.cpp: (JSC::setRegExpConstructorInput): (JSC::setRegExpConstructorMultiline): (JSC::constructRegExp):
  • runtime/RegExpObject.cpp: (JSC::setRegExpObjectLastIndex): (JSC::RegExpObject::match):
  • runtime/RegExpPrototype.cpp: (JSC::regExpProtoFuncTest): (JSC::regExpProtoFuncExec): (JSC::regExpProtoFuncCompile): (JSC::regExpProtoFuncToString):
  • runtime/StringConstructor.cpp: (JSC::stringFromCharCodeSlowCase): (JSC::stringFromCharCode): (JSC::constructWithStringConstructor): (JSC::callStringConstructor):
  • 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::getEnumerablePropertyNames): (JSC::Structure::createCachedPrototypeChain):
  • runtime/Structure.h: (JSC::Structure::mark):
  • runtime/StructureChain.cpp: (JSC::StructureChain::StructureChain):

JavaScriptGlue:

2009-01-19 Sam Weinig <[email protected]>

Rubber-stamped by Gavin Barraclough.

Remove temporary operator-> from JSValuePtr.

  • JSUtils.cpp: (KJSValueToJSObject): (KJSValueToCFTypeInternal):
  • JSValueWrapper.cpp: (JSValueWrapper::JSObjectCopyPropertyNames): (JSValueWrapper::JSObjectCopyProperty): (JSValueWrapper::JSObjectSetProperty): (JSValueWrapper::JSObjectCallFunction): (JSValueWrapper::JSObjectMark):
  • UserObjectImp.cpp: (UserObjectImp::getOwnPropertySlot):

WebCore:

2009-01-19 Sam Weinig <[email protected]>

Rubber-stamped by Gavin Barraclough.

Remove temporary operator-> from JSValuePtr.

  • WebCore.xcodeproj/project.pbxproj:
  • bindings/js/JSAudioConstructor.cpp: (WebCore::constructAudio):
  • bindings/js/JSCanvasRenderingContext2DCustom.cpp: (WebCore::toHTMLCanvasStyle): (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::clearData): (WebCore::JSClipboard::getData): (WebCore::JSClipboard::setData): (WebCore::JSClipboard::setDragImage):
  • 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/JSCustomXPathNSResolver.cpp: (WebCore::JSCustomXPathNSResolver::create): (WebCore::JSCustomXPathNSResolver::lookupNamespaceURI):
  • bindings/js/JSDOMApplicationCacheCustom.cpp: (WebCore::JSDOMApplicationCache::hasItem): (WebCore::JSDOMApplicationCache::add): (WebCore::JSDOMApplicationCache::remove): (WebCore::JSDOMApplicationCache::addEventListener): (WebCore::JSDOMApplicationCache::removeEventListener):
  • bindings/js/JSDOMBinding.cpp: (WebCore::valueToStringWithNullCheck): (WebCore::valueToStringWithUndefinedOrNullCheck): (WebCore::reportException):
  • bindings/js/JSDOMGlobalObject.cpp: (WebCore::JSDOMGlobalObject::findJSEventListener): (WebCore::JSDOMGlobalObject::findOrCreateJSEventListener): (WebCore::JSDOMGlobalObject::findJSUnprotectedEventListener): (WebCore::JSDOMGlobalObject::findOrCreateJSUnprotectedEventListener):
  • bindings/js/JSDOMStringListCustom.cpp: (WebCore::JSDOMStringList::item):
  • bindings/js/JSDOMWindowBase.cpp: (WebCore::JSDOMWindowBase::getOwnPropertySlot): (windowProtoFuncOpen): (WebCore::toJSDOMWindow):
  • bindings/js/JSDOMWindowCustom.cpp: (WebCore::JSDOMWindow::setLocation): (WebCore::JSDOMWindow::postMessage): (WebCore::setTimeoutOrInterval): (WebCore::JSDOMWindow::clearTimeout): (WebCore::JSDOMWindow::clearInterval): (WebCore::JSDOMWindow::atob): (WebCore::JSDOMWindow::btoa): (WebCore::JSDOMWindow::addEventListener): (WebCore::JSDOMWindow::removeEventListener): (WebCore::toDOMWindow):
  • bindings/js/JSDatabaseCustom.cpp: (WebCore::JSDatabase::changeVersion): (WebCore::JSDatabase::transaction):
  • bindings/js/JSDocumentCustom.cpp: (WebCore::JSDocument::setLocation):
  • bindings/js/JSElementCustom.cpp: (WebCore::JSElement::setAttribute): (WebCore::JSElement::setAttributeNS):
  • bindings/js/JSEventListener.cpp: (WebCore::JSAbstractEventListener::handleEvent): (WebCore::JSLazyEventListener::parseCode):
  • bindings/js/JSEventTargetNodeCustom.cpp: (WebCore::JSEventTargetNode::addEventListener): (WebCore::JSEventTargetNode::removeEventListener):
  • bindings/js/JSGeolocationCustom.cpp: (WebCore::createPositionOptions): (WebCore::JSGeolocation::getCurrentPosition): (WebCore::JSGeolocation::watchPosition):
  • bindings/js/JSHTMLCollectionCustom.cpp: (WebCore::callHTMLCollection): (WebCore::JSHTMLCollection::canGetItemsForName): (WebCore::JSHTMLCollection::item): (WebCore::JSHTMLCollection::namedItem):
  • bindings/js/JSHTMLDocumentCustom.cpp: (WebCore::JSHTMLDocument::open): (WebCore::writeHelper):
  • bindings/js/JSHTMLOptionsCollectionCustom.cpp: (WebCore::JSHTMLOptionsCollection::setLength): (WebCore::JSHTMLOptionsCollection::add):
  • bindings/js/JSHTMLSelectElementCustom.cpp: (WebCore::JSHTMLSelectElement::remove): (WebCore::selectIndexSetter):
  • bindings/js/JSImageConstructor.cpp: (WebCore::constructImage):
  • bindings/js/JSInspectedObjectWrapper.cpp: (WebCore::JSInspectedObjectWrapper::wrap): (WebCore::JSInspectedObjectWrapper::prepareIncomingValue):
  • bindings/js/JSInspectorCallbackWrapper.cpp: (WebCore::JSInspectorCallbackWrapper::wrap):
  • bindings/js/JSJavaScriptCallFrameCustom.cpp: (WebCore::JSJavaScriptCallFrame::evaluate):
  • bindings/js/JSLocationCustom.cpp: (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::assign):
  • bindings/js/JSMessageChannelConstructor.cpp: (WebCore::JSMessageChannelConstructor::mark):
  • bindings/js/JSMessagePortCustom.cpp: (WebCore::JSMessagePort::startConversation): (WebCore::JSMessagePort::addEventListener): (WebCore::JSMessagePort::removeEventListener):
  • bindings/js/JSNodeFilterCondition.cpp: (WebCore::JSNodeFilterCondition::mark): (WebCore::JSNodeFilterCondition::acceptNode):
  • bindings/js/JSNodeFilterCondition.h:
  • bindings/js/JSNodeFilterCustom.cpp: (WebCore::toNodeFilter):
  • bindings/js/JSNodeListCustom.cpp: (WebCore::callNodeList):
  • bindings/js/JSOptionConstructor.cpp: (WebCore::constructHTMLOptionElement):
  • bindings/js/JSQuarantinedObjectWrapper.cpp: (WebCore::JSQuarantinedObjectWrapper::asWrapper): (WebCore::JSQuarantinedObjectWrapper::construct):
  • bindings/js/JSSQLResultSetRowListCustom.cpp: (WebCore::JSSQLResultSetRowList::item):
  • bindings/js/JSSQLTransactionCustom.cpp: (WebCore::JSSQLTransaction::executeSql):
  • bindings/js/JSSVGElementInstanceCustom.cpp: (WebCore::JSSVGElementInstance::addEventListener): (WebCore::JSSVGElementInstance::removeEventListener):
  • bindings/js/JSSVGLengthCustom.cpp: (WebCore::JSSVGLength::convertToSpecifiedUnits):
  • bindings/js/JSSVGMatrixCustom.cpp: (WebCore::JSSVGMatrix::translate): (WebCore::JSSVGMatrix::scale): (WebCore::JSSVGMatrix::scaleNonUniform): (WebCore::JSSVGMatrix::rotate): (WebCore::JSSVGMatrix::rotateFromVector): (WebCore::JSSVGMatrix::skewX): (WebCore::JSSVGMatrix::skewY):
  • bindings/js/JSSVGPathSegListCustom.cpp: (WebCore::JSSVGPathSegList::getItem): (WebCore::JSSVGPathSegList::insertItemBefore): (WebCore::JSSVGPathSegList::replaceItem): (WebCore::JSSVGPathSegList::removeItem):
  • bindings/js/JSSVGPointListCustom.cpp: (WebCore::JSSVGPointList::getItem): (WebCore::JSSVGPointList::insertItemBefore): (WebCore::JSSVGPointList::replaceItem): (WebCore::JSSVGPointList::removeItem):
  • bindings/js/JSSVGTransformListCustom.cpp: (WebCore::JSSVGTransformList::getItem): (WebCore::JSSVGTransformList::insertItemBefore): (WebCore::JSSVGTransformList::replaceItem): (WebCore::JSSVGTransformList::removeItem):
  • bindings/js/JSStorageCustom.cpp: (WebCore::JSStorage::deleteProperty): (WebCore::JSStorage::customPut):
  • bindings/js/JSWebKitCSSMatrixConstructor.cpp: (WebCore::constructWebKitCSSMatrix):
  • bindings/js/JSWorkerConstructor.cpp: (WebCore::constructWorker):
  • bindings/js/JSWorkerContextCustom.cpp: (WebCore::JSWorkerContext::addEventListener): (WebCore::JSWorkerContext::removeEventListener):
  • 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):
  • 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::executeFunctionInContext):
  • bindings/js/ScriptCallStack.cpp: (WebCore::ScriptCallStack::initialize):
  • bindings/js/ScriptController.cpp: (WebCore::ScriptController::createScriptObjectForPluginElement):
  • bindings/js/ScriptValue.cpp: (WebCore::ScriptValue::getString): (WebCore::ScriptValue::isNull): (WebCore::ScriptValue::isUndefined):
  • bindings/objc/WebScriptObject.mm: (-[WebScriptObject callWebScriptMethod:withArguments:]): (+[WebScriptObject _convertValueToObjcValue:originRootObject:rootObject:]):
  • bindings/scripts/CodeGeneratorJS.pm:
  • bridge/NP_jsobject.cpp: (_NPN_InvokeDefault): (_NPN_Invoke): (_NPN_HasMethod): (_NPN_Construct):
  • bridge/c/c_utility.cpp: (JSC::Bindings::convertValueToNPVariant):
  • bridge/jni/jni_instance.cpp: (JavaInstance::invokeMethod):
  • bridge/jni/jni_jsobject.mm: (JavaJSObject::call): (JavaJSObject::convertValueToJObject):
  • bridge/jni/jni_runtime.cpp: (JavaField::dispatchValueFromInstance): (JavaField::valueFromInstance): (JavaField::dispatchSetValueToInstance): (JavaField::setValueToInstance):
  • bridge/jni/jni_utility.cpp: (JSC::Bindings::convertArrayInstanceToJavaArray): (JSC::Bindings::convertValueToJValue):
  • bridge/objc/objc_runtime.mm: (JSC::Bindings::callObjCFallbackObject):
  • bridge/objc/objc_utility.mm: (JSC::Bindings::convertValueToObjcValue):
  • bridge/runtime_method.cpp: (JSC::callRuntimeMethod):
  • bridge/runtime_object.cpp: (JSC::RuntimeObjectImp::getOwnPropertySlot): (JSC::callRuntimeConstructor):

WebKit/mac:

2009-01-19 Sam Weinig <[email protected]>

Rubber-stamped by Gavin Barraclough.

Remove temporary operator-> from JSValuePtr.

  • Plugins/Hosted/NetscapePluginInstanceProxy.mm: (WebKit::NetscapePluginInstanceProxy::invoke): (WebKit::NetscapePluginInstanceProxy::hasMethod): (WebKit::NetscapePluginInstanceProxy::marshalValue):
  • WebView/WebFrame.mm: (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
  • WebView/WebView.mm: (aeDescFromJSValue):

WebKit/win:

2009-01-19 Sam Weinig <[email protected]>

Rubber-stamped by Gavin Barraclough.

Remove temporary operator-> from JSValuePtr.

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

WebKit/wx:

2009-01-19 Sam Weinig <[email protected]>

Rubber-stamped by Gavin Barraclough.

Remove temporary operator-> from JSValuePtr.

  • WebFrame.cpp: (wxWebFrame::RunScript):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/interpreter/Interpreter.cpp

    r39958 r40046  
    111111{
    112112    if (JSValuePtr::areBothInt32Fast(v1, v2))
    113         return v1->getInt32Fast() < v2->getInt32Fast();
     113        return v1.getInt32Fast() < v2.getInt32Fast();
    114114
    115115    double n1;
    116116    double n2;
    117     if (v1->getNumber(n1) && v2->getNumber(n2))
     117    if (v1.getNumber(n1) && v2.getNumber(n2))
    118118        return n1 < n2;
    119119
     
    124124    JSValuePtr p1;
    125125    JSValuePtr p2;
    126     bool wasNotString1 = v1->getPrimitiveNumber(callFrame, n1, p1);
    127     bool wasNotString2 = v2->getPrimitiveNumber(callFrame, n2, p2);
     126    bool wasNotString1 = v1.getPrimitiveNumber(callFrame, n1, p1);
     127    bool wasNotString2 = v2.getPrimitiveNumber(callFrame, n2, p2);
    128128
    129129    if (wasNotString1 | wasNotString2)
     
    136136{
    137137    if (JSValuePtr::areBothInt32Fast(v1, v2))
    138         return v1->getInt32Fast() <= v2->getInt32Fast();
     138        return v1.getInt32Fast() <= v2.getInt32Fast();
    139139
    140140    double n1;
    141141    double n2;
    142     if (v1->getNumber(n1) && v2->getNumber(n2))
     142    if (v1.getNumber(n1) && v2.getNumber(n2))
    143143        return n1 <= n2;
    144144
     
    149149    JSValuePtr p1;
    150150    JSValuePtr p2;
    151     bool wasNotString1 = v1->getPrimitiveNumber(callFrame, n1, p1);
    152     bool wasNotString2 = v2->getPrimitiveNumber(callFrame, n2, p2);
     151    bool wasNotString1 = v1.getPrimitiveNumber(callFrame, n1, p1);
     152    bool wasNotString2 = v2.getPrimitiveNumber(callFrame, n2, p2);
    153153
    154154    if (wasNotString1 | wasNotString2)
     
    161161{
    162162    // exception for the Date exception in defaultValue()
    163     JSValuePtr p1 = v1->toPrimitive(callFrame);
    164     JSValuePtr p2 = v2->toPrimitive(callFrame);
    165 
    166     if (p1->isString() || p2->isString()) {
    167         RefPtr<UString::Rep> value = concatenate(p1->toString(callFrame).rep(), p2->toString(callFrame).rep());
     163    JSValuePtr p1 = v1.toPrimitive(callFrame);
     164    JSValuePtr p2 = v2.toPrimitive(callFrame);
     165
     166    if (p1.isString() || p2.isString()) {
     167        RefPtr<UString::Rep> value = concatenate(p1.toString(callFrame).rep(), p2.toString(callFrame).rep());
    168168        if (!value)
    169169            return throwOutOfMemoryError(callFrame);
     
    171171    }
    172172
    173     return jsNumber(callFrame, p1->toNumber(callFrame) + p2->toNumber(callFrame));
     173    return jsNumber(callFrame, p1.toNumber(callFrame) + p2.toNumber(callFrame));
    174174}
    175175
     
    188188    double right = 0.0;
    189189
    190     bool rightIsNumber = v2->getNumber(right);
    191     if (rightIsNumber && v1->getNumber(left))
     190    bool rightIsNumber = v2.getNumber(right);
     191    if (rightIsNumber && v1.getNumber(left))
    192192        return jsNumber(callFrame, left + right);
    193193   
    194     bool leftIsString = v1->isString();
    195     if (leftIsString && v2->isString()) {
     194    bool leftIsString = v1.isString();
     195    if (leftIsString && v2.isString()) {
    196196        RefPtr<UString::Rep> value = concatenate(asString(v1)->value().rep(), asString(v2)->value().rep());
    197197        if (!value)
     
    201201
    202202    if (rightIsNumber & leftIsString) {
    203         RefPtr<UString::Rep> value = v2->isInt32Fast() ?
    204             concatenate(asString(v1)->value().rep(), v2->getInt32Fast()) :
     203        RefPtr<UString::Rep> value = v2.isInt32Fast() ?
     204            concatenate(asString(v1)->value().rep(), v2.getInt32Fast()) :
    205205            concatenate(asString(v1)->value().rep(), right);
    206206
     
    216216static JSValuePtr jsTypeStringForValue(CallFrame* callFrame, JSValuePtr v)
    217217{
    218     if (v->isUndefined())
     218    if (v.isUndefined())
    219219        return jsNontrivialString(callFrame, "undefined");
    220     if (v->isBoolean())
     220    if (v.isBoolean())
    221221        return jsNontrivialString(callFrame, "boolean");
    222     if (v->isNumber())
     222    if (v.isNumber())
    223223        return jsNontrivialString(callFrame, "number");
    224     if (v->isString())
     224    if (v.isString())
    225225        return jsNontrivialString(callFrame, "string");
    226     if (v->isObject()) {
     226    if (v.isObject()) {
    227227        // Return "undefined" for objects that should be treated
    228228        // as null when doing comparisons.
     
    238238static bool jsIsObjectType(JSValuePtr v)
    239239{
    240     if (!v->isCell())
    241         return v->isNull();
     240    if (!v.isCell())
     241        return v.isNull();
    242242
    243243    JSType type = asCell(v)->structure()->typeInfo().type();
     
    256256static bool jsIsFunctionType(JSValuePtr v)
    257257{
    258     if (v->isObject()) {
     258    if (v.isObject()) {
    259259        CallData callData;
    260260        if (asObject(v)->getCallData(callData) != CallTypeNone)
     
    515515static NEVER_INLINE bool isNotObject(CallFrame* callFrame, bool forInstanceOf, CodeBlock* codeBlock, const Instruction* vPC, JSValuePtr value, JSValuePtr& exceptionData)
    516516{
    517     if (value->isObject())
     517    if (value.isObject())
    518518        return false;
    519519    exceptionData = createInvalidParamError(callFrame, forInstanceOf ? "instanceof" : "in" , value, vPC - codeBlock->instructions().begin(), codeBlock);
     
    528528    JSValuePtr program = argv[1].jsValue(callFrame);
    529529
    530     if (!program->isString())
     530    if (!program.isString())
    531531        return program;
    532532
     
    539539    JSValuePtr result = jsUndefined();
    540540    if (evalNode)
    541         result = callFrame->globalData().interpreter->execute(evalNode.get(), callFrame, callFrame->thisValue()->toThisObject(callFrame), callFrame->registers() - registerFile->start() + registerOffset, scopeChain, &exceptionValue);
     541        result = callFrame->globalData().interpreter->execute(evalNode.get(), callFrame, callFrame->thisValue().toThisObject(callFrame), callFrame->registers() - registerFile->start() + registerOffset, scopeChain, &exceptionValue);
    542542
    543543    return result;
     
    743743
    744744    CodeBlock* codeBlock = callFrame->codeBlock();
    745     if (exceptionValue->isObject()) {
     745    if (exceptionValue.isObject()) {
    746746        JSObject* exception = asObject(exceptionValue);
    747747        if (exception->isNotAnObjectErrorStub()) {
     
    11681168{
    11691169    JSValuePtr prototype = structure->prototypeForLookup(callFrame);
    1170     if (!prototype->isCell())
     1170    if (!prototype.isCell())
    11711171        return 0;
    11721172    RefPtr<StructureChain> chain = StructureChain::create(asObject(prototype)->structure());
     
    11811181        return;
    11821182
    1183     if (!baseValue->isCell())
     1183    if (!baseValue.isCell())
    11841184        return;
    11851185
     
    12631263        // must be a proxy for another object.
    12641264
    1265         if (v->isNull())
     1265        if (v.isNull())
    12661266            return 0;
    12671267
     
    12901290
    12911291    // FIXME: Cache property access for immediates.
    1292     if (!baseValue->isCell()) {
     1292    if (!baseValue.isCell()) {
    12931293        vPC[0] = getOpcode(op_get_by_id_generic);
    12941294        return;
     
    13431343
    13441344    if (slot.slotBase() == structure->prototypeForLookup(callFrame)) {
    1345         ASSERT(slot.slotBase()->isObject());
     1345        ASSERT(slot.slotBase().isObject());
    13461346
    13471347        JSObject* baseObject = asObject(slot.slotBase());
     
    15541554        JSValuePtr src = callFrame[(++vPC)->u.operand].jsValue(callFrame);
    15551555
    1556         if (src->isUndefinedOrNull()) {
     1556        if (src.isUndefinedOrNull()) {
    15571557            callFrame[dst] = jsBoolean(true);
    15581558            ++vPC;
     
    15601560        }
    15611561       
    1562         callFrame[dst] = jsBoolean(src->isCell() && src->asCell()->structure()->typeInfo().masqueradesAsUndefined());
     1562        callFrame[dst] = jsBoolean(src.isCell() && src.asCell()->structure()->typeInfo().masqueradesAsUndefined());
    15631563        ++vPC;
    15641564        NEXT_INSTRUCTION();
     
    15941594        JSValuePtr src = callFrame[(++vPC)->u.operand].jsValue(callFrame);
    15951595
    1596         if (src->isUndefinedOrNull()) {
     1596        if (src.isUndefinedOrNull()) {
    15971597            callFrame[dst] = jsBoolean(false);
    15981598            ++vPC;
     
    16001600        }
    16011601       
    1602         callFrame[dst] = jsBoolean(!src->isCell() || !asCell(src)->structure()->typeInfo().masqueradesAsUndefined());
     1602        callFrame[dst] = jsBoolean(!src.isCell() || !asCell(src)->structure()->typeInfo().masqueradesAsUndefined());
    16031603        ++vPC;
    16041604        NEXT_INSTRUCTION();
     
    16791679            callFrame[srcDst] = JSValuePtr(JSFastMath::incImmediateNumber(v));
    16801680        else {
    1681             JSValuePtr result = jsNumber(callFrame, v->toNumber(callFrame) + 1);
     1681            JSValuePtr result = jsNumber(callFrame, v.toNumber(callFrame) + 1);
    16821682            CHECK_FOR_EXCEPTION();
    16831683            callFrame[srcDst] = result;
     
    16981698            callFrame[srcDst] = JSValuePtr(JSFastMath::decImmediateNumber(v));
    16991699        else {
    1700             JSValuePtr result = jsNumber(callFrame, v->toNumber(callFrame) - 1);
     1700            JSValuePtr result = jsNumber(callFrame, v.toNumber(callFrame) - 1);
    17011701            CHECK_FOR_EXCEPTION();
    17021702            callFrame[srcDst] = result;
     
    17201720            callFrame[srcDst] = JSValuePtr(JSFastMath::incImmediateNumber(v));
    17211721        } else {
    1722             JSValuePtr number = callFrame[srcDst].jsValue(callFrame)->toJSNumber(callFrame);
     1722            JSValuePtr number = callFrame[srcDst].jsValue(callFrame).toJSNumber(callFrame);
    17231723            CHECK_FOR_EXCEPTION();
    17241724            callFrame[dst] = number;
    1725             callFrame[srcDst] = JSValuePtr(jsNumber(callFrame, number->uncheckedGetNumber() + 1));
     1725            callFrame[srcDst] = JSValuePtr(jsNumber(callFrame, number.uncheckedGetNumber() + 1));
    17261726        }
    17271727
     
    17431743            callFrame[srcDst] = JSValuePtr(JSFastMath::decImmediateNumber(v));
    17441744        } else {
    1745             JSValuePtr number = callFrame[srcDst].jsValue(callFrame)->toJSNumber(callFrame);
     1745            JSValuePtr number = callFrame[srcDst].jsValue(callFrame).toJSNumber(callFrame);
    17461746            CHECK_FOR_EXCEPTION();
    17471747            callFrame[dst] = number;
    1748             callFrame[srcDst] = JSValuePtr(jsNumber(callFrame, number->uncheckedGetNumber() - 1));
     1748            callFrame[srcDst] = JSValuePtr(jsNumber(callFrame, number.uncheckedGetNumber() - 1));
    17491749        }
    17501750
     
    17631763        JSValuePtr srcVal = callFrame[src].jsValue(callFrame);
    17641764
    1765         if (LIKELY(srcVal->isNumber()))
     1765        if (LIKELY(srcVal.isNumber()))
    17661766            callFrame[dst] = callFrame[src];
    17671767        else {
    1768             JSValuePtr result = srcVal->toJSNumber(callFrame);
     1768            JSValuePtr result = srcVal.toJSNumber(callFrame);
    17691769            CHECK_FOR_EXCEPTION();
    17701770            callFrame[dst] = result;
     
    17841784        ++vPC;
    17851785        double v;
    1786         if (src->getNumber(v))
     1786        if (src.getNumber(v))
    17871787            callFrame[dst] = JSValuePtr(jsNumber(callFrame, -v));
    17881788        else {
    1789             JSValuePtr result = jsNumber(callFrame, -src->toNumber(callFrame));
     1789            JSValuePtr result = jsNumber(callFrame, -src.toNumber(callFrame));
    17901790            CHECK_FOR_EXCEPTION();
    17911791            callFrame[dst] = result;
     
    18261826        double right;
    18271827        if (JSValuePtr::areBothInt32Fast(src1, src2)) {
    1828             int32_t left = src1->getInt32Fast();
    1829             int32_t right = src2->getInt32Fast();
     1828            int32_t left = src1.getInt32Fast();
     1829            int32_t right = src2.getInt32Fast();
    18301830            if ((left | right) >> 15 == 0)
    18311831                callFrame[dst] = JSValuePtr(jsNumber(callFrame, left * right));
    18321832            else
    18331833                callFrame[dst] = JSValuePtr(jsNumber(callFrame, static_cast<double>(left) * static_cast<double>(right)));
    1834         } else if (src1->getNumber(left) && src2->getNumber(right))
     1834        } else if (src1.getNumber(left) && src2.getNumber(right))
    18351835            callFrame[dst] = JSValuePtr(jsNumber(callFrame, left * right));
    18361836        else {
    1837             JSValuePtr result = jsNumber(callFrame, src1->toNumber(callFrame) * src2->toNumber(callFrame));
     1837            JSValuePtr result = jsNumber(callFrame, src1.toNumber(callFrame) * src2.toNumber(callFrame));
    18381838            CHECK_FOR_EXCEPTION();
    18391839            callFrame[dst] = result;
     
    18551855        double left;
    18561856        double right;
    1857         if (dividend->getNumber(left) && divisor->getNumber(right))
     1857        if (dividend.getNumber(left) && divisor.getNumber(right))
    18581858            callFrame[dst] = JSValuePtr(jsNumber(callFrame, left / right));
    18591859        else {
    1860             JSValuePtr result = jsNumber(callFrame, dividend->toNumber(callFrame) / divisor->toNumber(callFrame));
     1860            JSValuePtr result = jsNumber(callFrame, dividend.toNumber(callFrame) / divisor.toNumber(callFrame));
    18611861            CHECK_FOR_EXCEPTION();
    18621862            callFrame[dst] = result;
     
    18821882            // We expect the result of the modulus of a number that was representable as an int32 to also be representable
    18831883            // as an int32.
    1884             JSValuePtr result = JSValuePtr::makeInt32Fast(dividendValue->getInt32Fast() % divisorValue->getInt32Fast());
     1884            JSValuePtr result = JSValuePtr::makeInt32Fast(dividendValue.getInt32Fast() % divisorValue.getInt32Fast());
    18851885            ASSERT(result);
    18861886            callFrame[dst] = result;
     
    18891889        }
    18901890
    1891         double d = dividendValue->toNumber(callFrame);
    1892         JSValuePtr result = jsNumber(callFrame, fmod(d, divisorValue->toNumber(callFrame)));
     1891        double d = dividendValue.toNumber(callFrame);
     1892        JSValuePtr result = jsNumber(callFrame, fmod(d, divisorValue.toNumber(callFrame)));
    18931893        CHECK_FOR_EXCEPTION();
    18941894        callFrame[dst] = result;
     
    19101910        if (JSFastMath::canDoFastAdditiveOperations(src1, src2))
    19111911            callFrame[dst] = JSValuePtr(JSFastMath::subImmediateNumbers(src1, src2));
    1912         else if (src1->getNumber(left) && src2->getNumber(right))
     1912        else if (src1.getNumber(left) && src2.getNumber(right))
    19131913            callFrame[dst] = JSValuePtr(jsNumber(callFrame, left - right));
    19141914        else {
    1915             JSValuePtr result = jsNumber(callFrame, src1->toNumber(callFrame) - src2->toNumber(callFrame));
     1915            JSValuePtr result = jsNumber(callFrame, src1.toNumber(callFrame) - src2.toNumber(callFrame));
    19161916            CHECK_FOR_EXCEPTION();
    19171917            callFrame[dst] = result;
     
    19331933        uint32_t right;
    19341934        if (JSValuePtr::areBothInt32Fast(val, shift))
    1935             callFrame[dst] = JSValuePtr(jsNumber(callFrame, val->getInt32Fast() << (shift->getInt32Fast() & 0x1f)));
    1936         else if (val->numberToInt32(left) && shift->numberToUInt32(right))
     1935            callFrame[dst] = JSValuePtr(jsNumber(callFrame, val.getInt32Fast() << (shift.getInt32Fast() & 0x1f)));
     1936        else if (val.numberToInt32(left) && shift.numberToUInt32(right))
    19371937            callFrame[dst] = JSValuePtr(jsNumber(callFrame, left << (right & 0x1f)));
    19381938        else {
    1939             JSValuePtr result = jsNumber(callFrame, (val->toInt32(callFrame)) << (shift->toUInt32(callFrame) & 0x1f));
     1939            JSValuePtr result = jsNumber(callFrame, (val.toInt32(callFrame)) << (shift.toUInt32(callFrame) & 0x1f));
    19401940            CHECK_FOR_EXCEPTION();
    19411941            callFrame[dst] = result;
     
    19591959        if (JSFastMath::canDoFastRshift(val, shift))
    19601960            callFrame[dst] = JSValuePtr(JSFastMath::rightShiftImmediateNumbers(val, shift));
    1961         else if (val->numberToInt32(left) && shift->numberToUInt32(right))
     1961        else if (val.numberToInt32(left) && shift.numberToUInt32(right))
    19621962            callFrame[dst] = JSValuePtr(jsNumber(callFrame, left >> (right & 0x1f)));
    19631963        else {
    1964             JSValuePtr result = jsNumber(callFrame, (val->toInt32(callFrame)) >> (shift->toUInt32(callFrame) & 0x1f));
     1964            JSValuePtr result = jsNumber(callFrame, (val.toInt32(callFrame)) >> (shift.toUInt32(callFrame) & 0x1f));
    19651965            CHECK_FOR_EXCEPTION();
    19661966            callFrame[dst] = result;
     
    19831983            callFrame[dst] = JSValuePtr(JSFastMath::rightShiftImmediateNumbers(val, shift));
    19841984        else {
    1985             JSValuePtr result = jsNumber(callFrame, (val->toUInt32(callFrame)) >> (shift->toUInt32(callFrame) & 0x1f));
     1985            JSValuePtr result = jsNumber(callFrame, (val.toUInt32(callFrame)) >> (shift.toUInt32(callFrame) & 0x1f));
    19861986            CHECK_FOR_EXCEPTION();
    19871987            callFrame[dst] = result;
     
    20052005        if (JSFastMath::canDoFastBitwiseOperations(src1, src2))
    20062006            callFrame[dst] = JSValuePtr(JSFastMath::andImmediateNumbers(src1, src2));
    2007         else if (src1->numberToInt32(left) && src2->numberToInt32(right))
     2007        else if (src1.numberToInt32(left) && src2.numberToInt32(right))
    20082008            callFrame[dst] = JSValuePtr(jsNumber(callFrame, left & right));
    20092009        else {
    2010             JSValuePtr result = jsNumber(callFrame, src1->toInt32(callFrame) & src2->toInt32(callFrame));
     2010            JSValuePtr result = jsNumber(callFrame, src1.toInt32(callFrame) & src2.toInt32(callFrame));
    20112011            CHECK_FOR_EXCEPTION();
    20122012            callFrame[dst] = result;
     
    20302030        if (JSFastMath::canDoFastBitwiseOperations(src1, src2))
    20312031            callFrame[dst] = JSValuePtr(JSFastMath::xorImmediateNumbers(src1, src2));
    2032         else if (src1->numberToInt32(left) && src2->numberToInt32(right))
     2032        else if (src1.numberToInt32(left) && src2.numberToInt32(right))
    20332033            callFrame[dst] = JSValuePtr(jsNumber(callFrame, left ^ right));
    20342034        else {
    2035             JSValuePtr result = jsNumber(callFrame, src1->toInt32(callFrame) ^ src2->toInt32(callFrame));
     2035            JSValuePtr result = jsNumber(callFrame, src1.toInt32(callFrame) ^ src2.toInt32(callFrame));
    20362036            CHECK_FOR_EXCEPTION();
    20372037            callFrame[dst] = result;
     
    20552055        if (JSFastMath::canDoFastBitwiseOperations(src1, src2))
    20562056            callFrame[dst] = JSValuePtr(JSFastMath::orImmediateNumbers(src1, src2));
    2057         else if (src1->numberToInt32(left) && src2->numberToInt32(right))
     2057        else if (src1.numberToInt32(left) && src2.numberToInt32(right))
    20582058            callFrame[dst] = JSValuePtr(jsNumber(callFrame, left | right));
    20592059        else {
    2060             JSValuePtr result = jsNumber(callFrame, src1->toInt32(callFrame) | src2->toInt32(callFrame));
     2060            JSValuePtr result = jsNumber(callFrame, src1.toInt32(callFrame) | src2.toInt32(callFrame));
    20612061            CHECK_FOR_EXCEPTION();
    20622062            callFrame[dst] = result;
     
    20752075        JSValuePtr src = callFrame[(++vPC)->u.operand].jsValue(callFrame);
    20762076        int32_t value;
    2077         if (src->numberToInt32(value))
     2077        if (src.numberToInt32(value))
    20782078            callFrame[dst] = JSValuePtr(jsNumber(callFrame, ~value));
    20792079        else {
    2080             JSValuePtr result = jsNumber(callFrame, ~src->toInt32(callFrame));
     2080            JSValuePtr result = jsNumber(callFrame, ~src.toInt32(callFrame));
    20812081            CHECK_FOR_EXCEPTION();
    20822082            callFrame[dst] = result;
     
    20932093        int dst = (++vPC)->u.operand;
    20942094        int src = (++vPC)->u.operand;
    2095         JSValuePtr result = jsBoolean(!callFrame[src].jsValue(callFrame)->toBoolean(callFrame));
     2095        JSValuePtr result = jsBoolean(!callFrame[src].jsValue(callFrame).toBoolean(callFrame));
    20962096        CHECK_FOR_EXCEPTION();
    20972097        callFrame[dst] = result;
     
    21522152        int src = (++vPC)->u.operand;
    21532153        JSValuePtr v = callFrame[src].jsValue(callFrame);
    2154         callFrame[dst] = jsBoolean(v->isCell() ? v->asCell()->structure()->typeInfo().masqueradesAsUndefined() : v->isUndefined());
     2154        callFrame[dst] = jsBoolean(v.isCell() ? v.asCell()->structure()->typeInfo().masqueradesAsUndefined() : v.isUndefined());
    21552155
    21562156        ++vPC;
     
    21662166        int dst = (++vPC)->u.operand;
    21672167        int src = (++vPC)->u.operand;
    2168         callFrame[dst] = jsBoolean(callFrame[src].jsValue(callFrame)->isBoolean());
     2168        callFrame[dst] = jsBoolean(callFrame[src].jsValue(callFrame).isBoolean());
    21692169
    21702170        ++vPC;
     
    21802180        int dst = (++vPC)->u.operand;
    21812181        int src = (++vPC)->u.operand;
    2182         callFrame[dst] = jsBoolean(callFrame[src].jsValue(callFrame)->isNumber());
     2182        callFrame[dst] = jsBoolean(callFrame[src].jsValue(callFrame).isNumber());
    21832183
    21842184        ++vPC;
     
    21942194        int dst = (++vPC)->u.operand;
    21952195        int src = (++vPC)->u.operand;
    2196         callFrame[dst] = jsBoolean(callFrame[src].jsValue(callFrame)->isString());
     2196        callFrame[dst] = jsBoolean(callFrame[src].jsValue(callFrame).isString());
    21972197
    21982198        ++vPC;
     
    22492249
    22502250        uint32_t i;
    2251         if (propName->getUInt32(i))
     2251        if (propName.getUInt32(i))
    22522252            callFrame[dst] = jsBoolean(baseObj->hasProperty(callFrame, i));
    22532253        else {
    2254             Identifier property(callFrame, propName->toString(callFrame));
     2254            Identifier property(callFrame, propName.toString(callFrame));
    22552255            CHECK_FOR_EXCEPTION();
    22562256            callFrame[dst] = jsBoolean(baseObj->hasProperty(callFrame, property));
     
    24442444        JSValuePtr baseValue = callFrame[base].jsValue(callFrame);
    24452445        PropertySlot slot(baseValue);
    2446         JSValuePtr result = baseValue->get(callFrame, ident, slot);
     2446        JSValuePtr result = baseValue.get(callFrame, ident, slot);
    24472447        CHECK_FOR_EXCEPTION();
    24482448
     
    24632463        JSValuePtr baseValue = callFrame[base].jsValue(callFrame);
    24642464
    2465         if (LIKELY(baseValue->isCell())) {
     2465        if (LIKELY(baseValue.isCell())) {
    24662466            JSCell* baseCell = asCell(baseValue);
    24672467            Structure* structure = vPC[4].u.structure;
     
    24942494        JSValuePtr baseValue = callFrame[base].jsValue(callFrame);
    24952495
    2496         if (LIKELY(baseValue->isCell())) {
     2496        if (LIKELY(baseValue.isCell())) {
    24972497            JSCell* baseCell = asCell(baseValue);
    24982498            Structure* structure = vPC[4].u.structure;
    24992499
    25002500            if (LIKELY(baseCell->structure() == structure)) {
    2501                 ASSERT(structure->prototypeForLookup(callFrame)->isObject());
     2501                ASSERT(structure->prototypeForLookup(callFrame).isObject());
    25022502                JSObject* protoObject = asObject(structure->prototypeForLookup(callFrame));
    25032503                Structure* prototypeStructure = vPC[5].u.structure;
     
    25432543        JSValuePtr baseValue = callFrame[base].jsValue(callFrame);
    25442544
    2545         if (LIKELY(baseValue->isCell())) {
     2545        if (LIKELY(baseValue.isCell())) {
    25462546            JSCell* baseCell = asCell(baseValue);
    25472547            Structure* structure = vPC[4].u.structure;
     
    25882588        JSValuePtr baseValue = callFrame[base].jsValue(callFrame);
    25892589        PropertySlot slot(baseValue);
    2590         JSValuePtr result = baseValue->get(callFrame, ident, slot);
     2590        JSValuePtr result = baseValue.get(callFrame, ident, slot);
    25912591        CHECK_FOR_EXCEPTION();
    25922592
     
    26532653        Identifier& ident = codeBlock->identifier(property);
    26542654        PutPropertySlot slot;
    2655         baseValue->put(callFrame, ident, callFrame[value].jsValue(callFrame), slot);
     2655        baseValue.put(callFrame, ident, callFrame[value].jsValue(callFrame), slot);
    26562656        CHECK_FOR_EXCEPTION();
    26572657
     
    26752675        JSValuePtr baseValue = callFrame[base].jsValue(callFrame);
    26762676       
    2677         if (LIKELY(baseValue->isCell())) {
     2677        if (LIKELY(baseValue.isCell())) {
    26782678            JSCell* baseCell = asCell(baseValue);
    26792679            Structure* oldStructure = vPC[4].u.structure;
     
    26872687
    26882688                JSValuePtr proto = baseObject->structure()->prototypeForLookup(callFrame);
    2689                 while (!proto->isNull()) {
     2689                while (!proto.isNull()) {
    26902690                    if (UNLIKELY(asObject(proto)->structure() != (*it).get())) {
    26912691                        uncachePutByID(callFrame->codeBlock(), vPC);
     
    27252725        JSValuePtr baseValue = callFrame[base].jsValue(callFrame);
    27262726
    2727         if (LIKELY(baseValue->isCell())) {
     2727        if (LIKELY(baseValue.isCell())) {
    27282728            JSCell* baseCell = asCell(baseValue);
    27292729            Structure* structure = vPC[4].u.structure;
     
    27622762        Identifier& ident = callFrame->codeBlock()->identifier(property);
    27632763        PutPropertySlot slot;
    2764         baseValue->put(callFrame, ident, callFrame[value].jsValue(callFrame), slot);
     2764        baseValue.put(callFrame, ident, callFrame[value].jsValue(callFrame), slot);
    27652765        CHECK_FOR_EXCEPTION();
    27662766
     
    27802780        int property = (++vPC)->u.operand;
    27812781
    2782         JSObject* baseObj = callFrame[base].jsValue(callFrame)->toObject(callFrame);
     2782        JSObject* baseObj = callFrame[base].jsValue(callFrame).toObject(callFrame);
    27832783        Identifier& ident = callFrame->codeBlock()->identifier(property);
    27842784        JSValuePtr result = jsBoolean(baseObj->deleteProperty(callFrame, ident));
     
    28052805        JSValuePtr result;
    28062806
    2807         if (LIKELY(subscript->isUInt32Fast())) {
    2808             uint32_t i = subscript->getUInt32Fast();
     2807        if (LIKELY(subscript.isUInt32Fast())) {
     2808            uint32_t i = subscript.getUInt32Fast();
    28092809            if (isJSArray(baseValue)) {
    28102810                JSArray* jsArray = asArray(baseValue);
     
    28182818                result = asByteArray(baseValue)->getIndex(callFrame, i);
    28192819            else
    2820                 result = baseValue->get(callFrame, i);
     2820                result = baseValue.get(callFrame, i);
    28212821        } else {
    2822             Identifier property(callFrame, subscript->toString(callFrame));
    2823             result = baseValue->get(callFrame, property);
     2822            Identifier property(callFrame, subscript.toString(callFrame));
     2823            result = baseValue.get(callFrame, property);
    28242824        }
    28252825
     
    28472847        JSValuePtr subscript = callFrame[property].jsValue(callFrame);
    28482848
    2849         if (LIKELY(subscript->isUInt32Fast())) {
    2850             uint32_t i = subscript->getUInt32Fast();
     2849        if (LIKELY(subscript.isUInt32Fast())) {
     2850            uint32_t i = subscript.getUInt32Fast();
    28512851            if (isJSArray(baseValue)) {
    28522852                JSArray* jsArray = asArray(baseValue);
     
    28592859                double dValue = 0;
    28602860                JSValuePtr jsValue = callFrame[value].jsValue(callFrame);
    2861                 if (jsValue->isInt32Fast())
    2862                     jsByteArray->setIndex(i, jsValue->getInt32Fast());
    2863                 else if (jsValue->getNumber(dValue))
     2861                if (jsValue.isInt32Fast())
     2862                    jsByteArray->setIndex(i, jsValue.getInt32Fast());
     2863                else if (jsValue.getNumber(dValue))
    28642864                    jsByteArray->setIndex(i, dValue);
    28652865                else
    2866                     baseValue->put(callFrame, i, jsValue);
     2866                    baseValue.put(callFrame, i, jsValue);
    28672867            } else
    2868                 baseValue->put(callFrame, i, callFrame[value].jsValue(callFrame));
     2868                baseValue.put(callFrame, i, callFrame[value].jsValue(callFrame));
    28692869        } else {
    2870             Identifier property(callFrame, subscript->toString(callFrame));
     2870            Identifier property(callFrame, subscript.toString(callFrame));
    28712871            if (!globalData->exception) { // Don't put to an object if toString threw an exception.
    28722872                PutPropertySlot slot;
    2873                 baseValue->put(callFrame, property, callFrame[value].jsValue(callFrame), slot);
     2873                baseValue.put(callFrame, property, callFrame[value].jsValue(callFrame), slot);
    28742874            }
    28752875        }
     
    28912891        int property = (++vPC)->u.operand;
    28922892
    2893         JSObject* baseObj = callFrame[base].jsValue(callFrame)->toObject(callFrame); // may throw
     2893        JSObject* baseObj = callFrame[base].jsValue(callFrame).toObject(callFrame); // may throw
    28942894
    28952895        JSValuePtr subscript = callFrame[property].jsValue(callFrame);
    28962896        JSValuePtr result;
    28972897        uint32_t i;
    2898         if (subscript->getUInt32(i))
     2898        if (subscript.getUInt32(i))
    28992899            result = jsBoolean(baseObj->deleteProperty(callFrame, i));
    29002900        else {
    29012901            CHECK_FOR_EXCEPTION();
    2902             Identifier property(callFrame, subscript->toString(callFrame));
     2902            Identifier property(callFrame, subscript.toString(callFrame));
    29032903            CHECK_FOR_EXCEPTION();
    29042904            result = jsBoolean(baseObj->deleteProperty(callFrame, property));
     
    29262926        int value = (++vPC)->u.operand;
    29272927
    2928         callFrame[base].jsValue(callFrame)->put(callFrame, property, callFrame[value].jsValue(callFrame));
     2928        callFrame[base].jsValue(callFrame).put(callFrame, property, callFrame[value].jsValue(callFrame));
    29292929
    29302930        ++vPC;
     
    29732973        int cond = (++vPC)->u.operand;
    29742974        int target = (++vPC)->u.operand;
    2975         if (callFrame[cond].jsValue(callFrame)->toBoolean(callFrame)) {
     2975        if (callFrame[cond].jsValue(callFrame).toBoolean(callFrame)) {
    29762976            vPC += target;
    29772977            CHECK_FOR_TIMEOUT();
     
    29902990        int cond = (++vPC)->u.operand;
    29912991        int target = (++vPC)->u.operand;
    2992         if (callFrame[cond].jsValue(callFrame)->toBoolean(callFrame)) {
     2992        if (callFrame[cond].jsValue(callFrame).toBoolean(callFrame)) {
    29932993            vPC += target;
    29942994            NEXT_INSTRUCTION();
     
    30063006        int cond = (++vPC)->u.operand;
    30073007        int target = (++vPC)->u.operand;
    3008         if (!callFrame[cond].jsValue(callFrame)->toBoolean(callFrame)) {
     3008        if (!callFrame[cond].jsValue(callFrame).toBoolean(callFrame)) {
    30093009            vPC += target;
    30103010            NEXT_INSTRUCTION();
     
    30243024        JSValuePtr srcValue = callFrame[src].jsValue(callFrame);
    30253025
    3026         if (srcValue->isUndefinedOrNull() || (srcValue->isCell() && srcValue->asCell()->structure()->typeInfo().masqueradesAsUndefined())) {
     3026        if (srcValue.isUndefinedOrNull() || (srcValue.isCell() && srcValue.asCell()->structure()->typeInfo().masqueradesAsUndefined())) {
    30273027            vPC += target;
    30283028            NEXT_INSTRUCTION();
     
    30423042        JSValuePtr srcValue = callFrame[src].jsValue(callFrame);
    30433043
    3044         if (!srcValue->isUndefinedOrNull() || (srcValue->isCell() && !srcValue->asCell()->structure()->typeInfo().masqueradesAsUndefined())) {
     3044        if (!srcValue.isUndefinedOrNull() || (srcValue.isCell() && !srcValue.asCell()->structure()->typeInfo().masqueradesAsUndefined())) {
    30453045            vPC += target;
    30463046            NEXT_INSTRUCTION();
     
    31393139        int defaultOffset = (++vPC)->u.operand;
    31403140        JSValuePtr scrutinee = callFrame[(++vPC)->u.operand].jsValue(callFrame);
    3141         if (scrutinee->isInt32Fast())
    3142             vPC += callFrame->codeBlock()->immediateSwitchJumpTable(tableIndex).offsetForValue(scrutinee->getInt32Fast(), defaultOffset);
     3141        if (scrutinee.isInt32Fast())
     3142            vPC += callFrame->codeBlock()->immediateSwitchJumpTable(tableIndex).offsetForValue(scrutinee.getInt32Fast(), defaultOffset);
    31433143        else
    31443144            vPC += defaultOffset;
     
    31573157        int defaultOffset = (++vPC)->u.operand;
    31583158        JSValuePtr scrutinee = callFrame[(++vPC)->u.operand].jsValue(callFrame);
    3159         if (!scrutinee->isString())
     3159        if (!scrutinee.isString())
    31603160            vPC += defaultOffset;
    31613161        else {
     
    31803180        int defaultOffset = (++vPC)->u.operand;
    31813181        JSValuePtr scrutinee = callFrame[(++vPC)->u.operand].jsValue(callFrame);
    3182         if (!scrutinee->isString())
     3182        if (!scrutinee.isString())
    31833183            vPC += defaultOffset;
    31843184        else
     
    32753275
    32763276        CallData callData;
    3277         CallType callType = v->getCallData(callData);
     3277        CallType callType = v.getCallData(callData);
    32783278
    32793279        if (callType == CallTypeJS) {
     
    34683468        int thisRegister = (++vPC)->u.operand;
    34693469        JSValuePtr thisVal = callFrame[thisRegister].getJSValue();
    3470         if (thisVal->needsThisConversion())
    3471             callFrame[thisRegister] = JSValuePtr(thisVal->toThisObject(callFrame));
     3470        if (thisVal.needsThisConversion())
     3471            callFrame[thisRegister] = JSValuePtr(thisVal.toThisObject(callFrame));
    34723472
    34733473        ++vPC;
     
    35173517
    35183518        ConstructData constructData;
    3519         ConstructType constructType = v->getConstructData(constructData);
     3519        ConstructType constructType = v.getConstructData(constructData);
    35203520
    35213521        if (constructType == ConstructTypeJS) {
     
    35263526            Structure* structure;
    35273527            JSValuePtr prototype = callFrame[proto].jsValue(callFrame);
    3528             if (prototype->isObject())
     3528            if (prototype.isObject())
    35293529                structure = asObject(prototype)->inheritorID();
    35303530            else
     
    35853585
    35863586        int dst = vPC[1].u.operand;;
    3587         if (LIKELY(callFrame[dst].jsValue(callFrame)->isObject())) {
     3587        if (LIKELY(callFrame[dst].jsValue(callFrame).isObject())) {
    35883588            vPC += 3;
    35893589            NEXT_INSTRUCTION();
     
    36053605        int scope = (++vPC)->u.operand;
    36063606        JSValuePtr v = callFrame[scope].jsValue(callFrame);
    3607         JSObject* o = v->toObject(callFrame);
     3607        JSObject* o = v.toObject(callFrame);
    36083608        CHECK_FOR_EXCEPTION();
    36093609
     
    37653765
    37663766        CodeBlock* codeBlock = callFrame->codeBlock();
    3767         callFrame[dst] = JSValuePtr(Error::create(callFrame, (ErrorType)type, codeBlock->unexpectedConstant(message)->toString(callFrame), codeBlock->lineNumberForBytecodeOffset(callFrame, vPC - codeBlock->instructions().begin()), codeBlock->ownerNode()->sourceID(), codeBlock->ownerNode()->sourceURL()));
     3767        callFrame[dst] = JSValuePtr(Error::create(callFrame, (ErrorType)type, codeBlock->unexpectedConstant(message).toString(callFrame), codeBlock->lineNumberForBytecodeOffset(callFrame, vPC - codeBlock->instructions().begin()), codeBlock->ownerNode()->sourceID(), codeBlock->ownerNode()->sourceURL()));
    37683768
    37693769        ++vPC;
     
    38003800        int function = (++vPC)->u.operand;
    38013801
    3802         ASSERT(callFrame[base].jsValue(callFrame)->isObject());
     3802        ASSERT(callFrame[base].jsValue(callFrame).isObject());
    38033803        JSObject* baseObj = asObject(callFrame[base].jsValue(callFrame));
    38043804        Identifier& ident = callFrame->codeBlock()->identifier(property);
    3805         ASSERT(callFrame[function].jsValue(callFrame)->isObject());
     3805        ASSERT(callFrame[function].jsValue(callFrame).isObject());
    38063806        baseObj->defineGetter(callFrame, ident, asObject(callFrame[function].jsValue(callFrame)));
    38073807
     
    38243824        int function = (++vPC)->u.operand;
    38253825
    3826         ASSERT(callFrame[base].jsValue(callFrame)->isObject());
     3826        ASSERT(callFrame[base].jsValue(callFrame).isObject());
    38273827        JSObject* baseObj = asObject(callFrame[base].jsValue(callFrame));
    38283828        Identifier& ident = callFrame->codeBlock()->identifier(property);
    3829         ASSERT(callFrame[function].jsValue(callFrame)->isObject());
     3829        ASSERT(callFrame[function].jsValue(callFrame).isObject());
    38303830        baseObj->defineSetter(callFrame, ident, asObject(callFrame[function].jsValue(callFrame)));
    38313831
     
    40054005    // The interpreter checks for recursion here; I do not believe this can occur in CTI.
    40064006
    4007     if (!baseValue->isCell())
     4007    if (!baseValue.isCell())
    40084008        return;
    40094009
     
    40644064
    40654065    // FIXME: Cache property access for immediates.
    4066     if (!baseValue->isCell()) {
     4066    if (!baseValue.isCell()) {
    40674067        ctiPatchCallByReturnAddress(returnAddress, reinterpret_cast<void*>(cti_op_get_by_id_generic));
    40684068        return;
     
    41184118
    41194119    if (slot.slotBase() == structure->prototypeForLookup(callFrame)) {
    4120         ASSERT(slot.slotBase()->isObject());
     4120        ASSERT(slot.slotBase().isObject());
    41214121
    41224122        JSObject* slotBaseObject = asObject(slot.slotBase());
     
    42564256    CallFrame* callFrame = ARG_callFrame;
    42574257
    4258     JSObject* result = v1->toThisObject(callFrame);
     4258    JSObject* result = v1.toThisObject(callFrame);
    42594259    CHECK_FOR_EXCEPTION_AT_END();
    42604260    return result;
     
    42804280    double right = 0.0;
    42814281
    4282     bool rightIsNumber = v2->getNumber(right);
    4283     if (rightIsNumber && v1->getNumber(left))
     4282    bool rightIsNumber = v2.getNumber(right);
     4283    if (rightIsNumber && v1.getNumber(left))
    42844284        return JSValuePtr::encode(jsNumber(ARG_globalData, left + right));
    42854285   
    42864286    CallFrame* callFrame = ARG_callFrame;
    42874287
    4288     bool leftIsString = v1->isString();
    4289     if (leftIsString && v2->isString()) {
     4288    bool leftIsString = v1.isString();
     4289    if (leftIsString && v2.isString()) {
    42904290        RefPtr<UString::Rep> value = concatenate(asString(v1)->value().rep(), asString(v2)->value().rep());
    42914291        if (UNLIKELY(!value)) {
     
    42984298
    42994299    if (rightIsNumber & leftIsString) {
    4300         RefPtr<UString::Rep> value = v2->isInt32Fast() ?
    4301             concatenate(asString(v1)->value().rep(), v2->getInt32Fast()) :
     4300        RefPtr<UString::Rep> value = v2.isInt32Fast() ?
     4301            concatenate(asString(v1)->value().rep(), v2.getInt32Fast()) :
    43024302            concatenate(asString(v1)->value().rep(), right);
    43034303
     
    43224322
    43234323    CallFrame* callFrame = ARG_callFrame;
    4324     JSValuePtr result = jsNumber(ARG_globalData, v->toNumber(callFrame) + 1);
     4324    JSValuePtr result = jsNumber(ARG_globalData, v.toNumber(callFrame) + 1);
    43254325    CHECK_FOR_EXCEPTION_AT_END();
    43264326    return JSValuePtr::encode(result);
     
    43924392
    43934393    PutPropertySlot slot;
    4394     ARG_src1->put(ARG_callFrame, *ARG_id2, ARG_src3, slot);
     4394    ARG_src1.put(ARG_callFrame, *ARG_id2, ARG_src3, slot);
    43954395    CHECK_FOR_EXCEPTION_AT_END();
    43964396}
     
    44054405    JSValuePtr baseValue = ARG_src1;
    44064406    PropertySlot slot(baseValue);
    4407     JSValuePtr result = baseValue->get(callFrame, ident, slot);
     4407    JSValuePtr result = baseValue.get(callFrame, ident, slot);
    44084408
    44094409    CHECK_FOR_EXCEPTION_AT_END();
     
    44214421
    44224422    PutPropertySlot slot;
    4423     ARG_src1->put(callFrame, ident, ARG_src3, slot);
     4423    ARG_src1.put(callFrame, ident, ARG_src3, slot);
    44244424
    44254425    ctiPatchCallByReturnAddress(STUB_RETURN_ADDRESS, reinterpret_cast<void*>(cti_op_put_by_id_second));
     
    44334433
    44344434    PutPropertySlot slot;
    4435     ARG_src1->put(ARG_callFrame, *ARG_id2, ARG_src3, slot);
     4435    ARG_src1.put(ARG_callFrame, *ARG_id2, ARG_src3, slot);
    44364436    ARG_globalData->interpreter->tryCTICachePutByID(ARG_callFrame, ARG_callFrame->codeBlock(), STUB_RETURN_ADDRESS, ARG_src1, slot);
    44374437    CHECK_FOR_EXCEPTION_AT_END();
     
    44464446
    44474447    PutPropertySlot slot;
    4448     ARG_src1->put(callFrame, ident, ARG_src3, slot);
     4448    ARG_src1.put(callFrame, ident, ARG_src3, slot);
    44494449
    44504450    CHECK_FOR_EXCEPTION_AT_END();
     
    44604460    JSValuePtr baseValue = ARG_src1;
    44614461    PropertySlot slot(baseValue);
    4462     JSValuePtr result = baseValue->get(callFrame, ident, slot);
     4462    JSValuePtr result = baseValue.get(callFrame, ident, slot);
    44634463
    44644464    ctiPatchCallByReturnAddress(STUB_RETURN_ADDRESS, reinterpret_cast<void*>(cti_op_get_by_id_second));
     
    44774477    JSValuePtr baseValue = ARG_src1;
    44784478    PropertySlot slot(baseValue);
    4479     JSValuePtr result = baseValue->get(callFrame, ident, slot);
     4479    JSValuePtr result = baseValue.get(callFrame, ident, slot);
    44804480
    44814481    ARG_globalData->interpreter->tryCTICacheGetByID(callFrame, callFrame->codeBlock(), STUB_RETURN_ADDRESS, baseValue, ident, slot);
     
    44944494    JSValuePtr baseValue = ARG_src1;
    44954495    PropertySlot slot(baseValue);
    4496     JSValuePtr result = baseValue->get(callFrame, ident, slot);
     4496    JSValuePtr result = baseValue.get(callFrame, ident, slot);
    44974497
    44984498    CHECK_FOR_EXCEPTION();
    44994499
    4500     if (baseValue->isCell()
     4500    if (baseValue.isCell()
    45014501        && slot.isCacheable()
    45024502        && !asCell(baseValue)->structure()->isDictionary()
     
    45064506        StructureStubInfo* stubInfo = &codeBlock->getStubInfo(STUB_RETURN_ADDRESS);
    45074507
    4508         ASSERT(slot.slotBase()->isObject());
     4508        ASSERT(slot.slotBase().isObject());
    45094509
    45104510        PolymorphicAccessStructureList* polymorphicStructureList;
     
    45684568    JSValuePtr baseValue = ARG_src1;
    45694569    PropertySlot slot(baseValue);
    4570     JSValuePtr result = baseValue->get(callFrame, *ARG_id2, slot);
     4570    JSValuePtr result = baseValue.get(callFrame, *ARG_id2, slot);
    45714571
    45724572    CHECK_FOR_EXCEPTION();
    45734573
    4574     if (!baseValue->isCell() || !slot.isCacheable() || asCell(baseValue)->structure()->isDictionary()) {
     4574    if (!baseValue.isCell() || !slot.isCacheable() || asCell(baseValue)->structure()->isDictionary()) {
    45754575        ctiPatchCallByReturnAddress(STUB_RETURN_ADDRESS, reinterpret_cast<void*>(cti_op_get_by_id_proto_fail));
    45764576        return JSValuePtr::encode(result);
     
    45814581    StructureStubInfo* stubInfo = &codeBlock->getStubInfo(STUB_RETURN_ADDRESS);
    45824582
    4583     ASSERT(slot.slotBase()->isObject());
     4583    ASSERT(slot.slotBase().isObject());
    45844584    JSObject* slotBaseObject = asObject(slot.slotBase());
    45854585
     
    46274627    JSValuePtr baseValue = ARG_src1;
    46284628    PropertySlot slot(baseValue);
    4629     JSValuePtr result = baseValue->get(ARG_callFrame, *ARG_id2, slot);
     4629    JSValuePtr result = baseValue.get(ARG_callFrame, *ARG_id2, slot);
    46304630
    46314631    CHECK_FOR_EXCEPTION_AT_END();
     
    46394639    JSValuePtr baseValue = ARG_src1;
    46404640    PropertySlot slot(baseValue);
    4641     JSValuePtr result = baseValue->get(ARG_callFrame, *ARG_id2, slot);
     4641    JSValuePtr result = baseValue.get(ARG_callFrame, *ARG_id2, slot);
    46424642
    46434643    CHECK_FOR_EXCEPTION_AT_END();
     
    46514651    JSValuePtr baseValue = ARG_src1;
    46524652    PropertySlot slot(baseValue);
    4653     JSValuePtr result = baseValue->get(ARG_callFrame, *ARG_id2, slot);
     4653    JSValuePtr result = baseValue.get(ARG_callFrame, *ARG_id2, slot);
    46544654
    46554655    CHECK_FOR_EXCEPTION_AT_END();
     
    46634663    JSValuePtr baseValue = ARG_src1;
    46644664    PropertySlot slot(baseValue);
    4665     JSValuePtr result = baseValue->get(ARG_callFrame, *ARG_id2, slot);
     4665    JSValuePtr result = baseValue.get(ARG_callFrame, *ARG_id2, slot);
    46664666
    46674667    CHECK_FOR_EXCEPTION_AT_END();
     
    46814681
    46824682    // at least one of these checks must have failed to get to the slow case
    4683     ASSERT(!value->isCell() || !baseVal->isCell() || !proto->isCell()
    4684            || !value->isObject() || !baseVal->isObject() || !proto->isObject()
     4683    ASSERT(!value.isCell() || !baseVal.isCell() || !proto.isCell()
     4684           || !value.isObject() || !baseVal.isObject() || !proto.isObject()
    46854685           || (asObject(baseVal)->structure()->typeInfo().flags() & (ImplementsHasInstance | OverridesHasInstance)) != ImplementsHasInstance);
    46864686
    4687     if (!baseVal->isObject()) {
     4687    if (!baseVal.isObject()) {
    46884688        CallFrame* callFrame = ARG_callFrame;
    46894689        CodeBlock* codeBlock = callFrame->codeBlock();
     
    46964696        return JSValuePtr::encode(jsBoolean(false));
    46974697
    4698     if (!proto->isObject()) {
     4698    if (!proto.isObject()) {
    46994699        throwError(callFrame, TypeError, "instanceof called on an object with an invalid prototype property.");
    47004700        VM_THROW_EXCEPTION();
    47014701    }
    47024702       
    4703     if (!value->isObject())
     4703    if (!value.isObject())
    47044704        return JSValuePtr::encode(jsBoolean(false));
    47054705
     
    47164716    CallFrame* callFrame = ARG_callFrame;
    47174717   
    4718     JSObject* baseObj = ARG_src1->toObject(callFrame);
     4718    JSObject* baseObj = ARG_src1.toObject(callFrame);
    47194719
    47204720    JSValuePtr result = jsBoolean(baseObj->deleteProperty(callFrame, *ARG_id2));
     
    47324732    double left;
    47334733    double right;
    4734     if (src1->getNumber(left) && src2->getNumber(right))
     4734    if (src1.getNumber(left) && src2.getNumber(right))
    47354735        return JSValuePtr::encode(jsNumber(ARG_globalData, left * right));
    47364736
    47374737    CallFrame* callFrame = ARG_callFrame;
    4738     JSValuePtr result = jsNumber(ARG_globalData, src1->toNumber(callFrame) * src2->toNumber(callFrame));
     4738    JSValuePtr result = jsNumber(ARG_globalData, src1.toNumber(callFrame) * src2.toNumber(callFrame));
    47394739    CHECK_FOR_EXCEPTION_AT_END();
    47404740    return JSValuePtr::encode(result);
     
    47544754#ifndef NDEBUG
    47554755    CallData callData;
    4756     ASSERT(ARG_src1->getCallData(callData) == CallTypeJS);
     4756    ASSERT(ARG_src1.getCallData(callData) == CallTypeJS);
    47574757#endif
    47584758
     
    48564856
    48574857    CallData callData;
    4858     CallType callType = funcVal->getCallData(callData);
     4858    CallType callType = funcVal.getCallData(callData);
    48594859
    48604860    ASSERT(callType != CallTypeJS);
     
    50025002
    50035003    Structure* structure;
    5004     if (ARG_src4->isObject())
     5004    if (ARG_src4.isObject())
    50055005        structure = asObject(ARG_src4)->inheritorID();
    50065006    else
     
    50205020
    50215021    ConstructData constructData;
    5022     ConstructType constructType = constrVal->getConstructData(constructData);
     5022    ConstructType constructType = constrVal.getConstructData(constructData);
    50235023
    50245024    if (constructType == ConstructTypeHost) {
     
    50555055    JSValuePtr result;
    50565056
    5057     if (LIKELY(subscript->isUInt32Fast())) {
    5058         uint32_t i = subscript->getUInt32Fast();
     5057    if (LIKELY(subscript.isUInt32Fast())) {
     5058        uint32_t i = subscript.getUInt32Fast();
    50595059        if (interpreter->isJSArray(baseValue)) {
    50605060            JSArray* jsArray = asArray(baseValue);
     
    50705070            return JSValuePtr::encode(asByteArray(baseValue)->getIndex(callFrame, i));
    50715071        } else
    5072             result = baseValue->get(callFrame, i);
     5072            result = baseValue.get(callFrame, i);
    50735073    } else {
    5074         Identifier property(callFrame, subscript->toString(callFrame));
    5075         result = baseValue->get(callFrame, property);
     5074        Identifier property(callFrame, subscript.toString(callFrame));
     5075        result = baseValue.get(callFrame, property);
    50765076    }
    50775077
     
    50925092    JSValuePtr result;
    50935093
    5094     if (LIKELY(subscript->isUInt32Fast())) {
    5095         uint32_t i = subscript->getUInt32Fast();
     5094    if (LIKELY(subscript.isUInt32Fast())) {
     5095        uint32_t i = subscript.getUInt32Fast();
    50965096        if (interpreter->isJSByteArray(baseValue) && asByteArray(baseValue)->canAccessIndex(i)) {
    50975097            // All fast byte array accesses are safe from exceptions so return immediately to avoid exception checks.
     
    50995099        }
    51005100
    5101         result = baseValue->get(callFrame, i);
     5101        result = baseValue.get(callFrame, i);
    51025102        if (!interpreter->isJSByteArray(baseValue))
    51035103            ctiPatchCallByReturnAddress(STUB_RETURN_ADDRESS, reinterpret_cast<void*>(cti_op_get_by_val));
    51045104    } else {
    5105         Identifier property(callFrame, subscript->toString(callFrame));
    5106         result = baseValue->get(callFrame, property);
     5105        Identifier property(callFrame, subscript.toString(callFrame));
     5106        result = baseValue.get(callFrame, property);
    51075107    }
    51085108   
     
    51625162    double left;
    51635163    double right;
    5164     if (src1->getNumber(left) && src2->getNumber(right))
     5164    if (src1.getNumber(left) && src2.getNumber(right))
    51655165        return JSValuePtr::encode(jsNumber(ARG_globalData, left - right));
    51665166
    51675167    CallFrame* callFrame = ARG_callFrame;
    5168     JSValuePtr result = jsNumber(ARG_globalData, src1->toNumber(callFrame) - src2->toNumber(callFrame));
     5168    JSValuePtr result = jsNumber(ARG_globalData, src1.toNumber(callFrame) - src2.toNumber(callFrame));
    51695169    CHECK_FOR_EXCEPTION_AT_END();
    51705170    return JSValuePtr::encode(result);
     
    51825182    JSValuePtr value = ARG_src3;
    51835183
    5184     if (LIKELY(subscript->isUInt32Fast())) {
    5185         uint32_t i = subscript->getUInt32Fast();
     5184    if (LIKELY(subscript.isUInt32Fast())) {
     5185        uint32_t i = subscript.getUInt32Fast();
    51865186        if (interpreter->isJSArray(baseValue)) {
    51875187            JSArray* jsArray = asArray(baseValue);
     
    51945194            ctiPatchCallByReturnAddress(STUB_RETURN_ADDRESS, reinterpret_cast<void*>(cti_op_put_by_val_byte_array));
    51955195            // All fast byte array accesses are safe from exceptions so return immediately to avoid exception checks.
    5196             if (value->isInt32Fast()) {
    5197                 jsByteArray->setIndex(i, value->getInt32Fast());
     5196            if (value.isInt32Fast()) {
     5197                jsByteArray->setIndex(i, value.getInt32Fast());
    51985198                return;
    51995199            } else {
    52005200                double dValue = 0;
    5201                 if (value->getNumber(dValue)) {
     5201                if (value.getNumber(dValue)) {
    52025202                    jsByteArray->setIndex(i, dValue);
    52035203                    return;
     
    52055205            }
    52065206
    5207             baseValue->put(callFrame, i, value);
     5207            baseValue.put(callFrame, i, value);
    52085208        } else
    5209             baseValue->put(callFrame, i, value);
     5209            baseValue.put(callFrame, i, value);
    52105210    } else {
    5211         Identifier property(callFrame, subscript->toString(callFrame));
     5211        Identifier property(callFrame, subscript.toString(callFrame));
    52125212        if (!ARG_globalData->exception) { // Don't put to an object if toString threw an exception.
    52135213            PutPropertySlot slot;
    5214             baseValue->put(callFrame, property, value, slot);
     5214            baseValue.put(callFrame, property, value, slot);
    52155215        }
    52165216    }
     
    52365236        // This should work since we're re-boxing an immediate unboxed in JIT code.
    52375237        ASSERT(JSValuePtr::makeInt32Fast(i));
    5238         Identifier property(callFrame, JSValuePtr::makeInt32Fast(i)->toString(callFrame));
     5238        Identifier property(callFrame, JSValuePtr::makeInt32Fast(i).toString(callFrame));
    52395239        // FIXME: can toString throw an exception here?
    52405240        if (!ARG_globalData->exception) { // Don't put to an object if toString threw an exception.
    52415241            PutPropertySlot slot;
    5242             baseValue->put(callFrame, property, value, slot);
     5242            baseValue.put(callFrame, property, value, slot);
    52435243        }
    52445244    }
     
    52585258    JSValuePtr value = ARG_src3;
    52595259   
    5260     if (LIKELY(subscript->isUInt32Fast())) {
    5261         uint32_t i = subscript->getUInt32Fast();
     5260    if (LIKELY(subscript.isUInt32Fast())) {
     5261        uint32_t i = subscript.getUInt32Fast();
    52625262        if (interpreter->isJSByteArray(baseValue) && asByteArray(baseValue)->canAccessIndex(i)) {
    52635263            JSByteArray* jsByteArray = asByteArray(baseValue);
    52645264           
    52655265            // All fast byte array accesses are safe from exceptions so return immediately to avoid exception checks.
    5266             if (value->isInt32Fast()) {
    5267                 jsByteArray->setIndex(i, value->getInt32Fast());
     5266            if (value.isInt32Fast()) {
     5267                jsByteArray->setIndex(i, value.getInt32Fast());
    52685268                return;
    52695269            } else {
    52705270                double dValue = 0;               
    5271                 if (value->getNumber(dValue)) {
     5271                if (value.getNumber(dValue)) {
    52725272                    jsByteArray->setIndex(i, dValue);
    52735273                    return;
     
    52785278        if (!interpreter->isJSByteArray(baseValue))
    52795279            ctiPatchCallByReturnAddress(STUB_RETURN_ADDRESS, reinterpret_cast<void*>(cti_op_put_by_val));
    5280         baseValue->put(callFrame, i, value);
     5280        baseValue.put(callFrame, i, value);
    52815281    } else {
    5282         Identifier property(callFrame, subscript->toString(callFrame));
     5282        Identifier property(callFrame, subscript.toString(callFrame));
    52835283        if (!ARG_globalData->exception) { // Don't put to an object if toString threw an exception.
    52845284            PutPropertySlot slot;
    5285             baseValue->put(callFrame, property, value, slot);
     5285            baseValue.put(callFrame, property, value, slot);
    52865286        }
    52875287    }
     
    53085308    CallFrame* callFrame = ARG_callFrame;
    53095309
    5310     bool result = src1->toBoolean(callFrame);
     5310    bool result = src1.toBoolean(callFrame);
    53115311    CHECK_FOR_EXCEPTION_AT_END();
    53125312    return result;
     
    53205320
    53215321    double v;
    5322     if (src->getNumber(v))
     5322    if (src.getNumber(v))
    53235323        return JSValuePtr::encode(jsNumber(ARG_globalData, -v));
    53245324
    53255325    CallFrame* callFrame = ARG_callFrame;
    5326     JSValuePtr result = jsNumber(ARG_globalData, -src->toNumber(callFrame));
     5326    JSValuePtr result = jsNumber(ARG_globalData, -src.toNumber(callFrame));
    53275327    CHECK_FOR_EXCEPTION_AT_END();
    53285328    return JSValuePtr::encode(result);
     
    54105410    double left;
    54115411    double right;
    5412     if (src1->getNumber(left) && src2->getNumber(right))
     5412    if (src1.getNumber(left) && src2.getNumber(right))
    54135413        return JSValuePtr::encode(jsNumber(ARG_globalData, left / right));
    54145414
    54155415    CallFrame* callFrame = ARG_callFrame;
    5416     JSValuePtr result = jsNumber(ARG_globalData, src1->toNumber(callFrame) / src2->toNumber(callFrame));
     5416    JSValuePtr result = jsNumber(ARG_globalData, src1.toNumber(callFrame) / src2.toNumber(callFrame));
    54175417    CHECK_FOR_EXCEPTION_AT_END();
    54185418    return JSValuePtr::encode(result);
     
    54265426
    54275427    CallFrame* callFrame = ARG_callFrame;
    5428     JSValuePtr result = jsNumber(ARG_globalData, v->toNumber(callFrame) - 1);
     5428    JSValuePtr result = jsNumber(ARG_globalData, v.toNumber(callFrame) - 1);
    54295429    CHECK_FOR_EXCEPTION_AT_END();
    54305430    return JSValuePtr::encode(result);
     
    54525452    CallFrame* callFrame = ARG_callFrame;
    54535453
    5454     JSValuePtr result = jsBoolean(!src->toBoolean(callFrame));
     5454    JSValuePtr result = jsBoolean(!src.toBoolean(callFrame));
    54555455    CHECK_FOR_EXCEPTION_AT_END();
    54565456    return JSValuePtr::encode(result);
     
    54655465    CallFrame* callFrame = ARG_callFrame;
    54665466
    5467     bool result = src1->toBoolean(callFrame);
     5467    bool result = src1.toBoolean(callFrame);
    54685468    CHECK_FOR_EXCEPTION_AT_END();
    54695469    return result;
     
    54785478    CallFrame* callFrame = ARG_callFrame;
    54795479
    5480     JSValuePtr number = v->toJSNumber(callFrame);
     5480    JSValuePtr number = v.toJSNumber(callFrame);
    54815481    CHECK_FOR_EXCEPTION_AT_END();
    54825482
    5483     RETURN_PAIR(JSValuePtr::encode(number), JSValuePtr::encode(jsNumber(ARG_globalData, number->uncheckedGetNumber() + 1)));
     5483    RETURN_PAIR(JSValuePtr::encode(number), JSValuePtr::encode(jsNumber(ARG_globalData, number.uncheckedGetNumber() + 1)));
    54845484}
    54855485
     
    55095509    uint32_t right;
    55105510    if (JSValuePtr::areBothInt32Fast(val, shift))
    5511         return JSValuePtr::encode(jsNumber(ARG_globalData, val->getInt32Fast() << (shift->getInt32Fast() & 0x1f)));
    5512     if (val->numberToInt32(left) && shift->numberToUInt32(right))
     5511        return JSValuePtr::encode(jsNumber(ARG_globalData, val.getInt32Fast() << (shift.getInt32Fast() & 0x1f)));
     5512    if (val.numberToInt32(left) && shift.numberToUInt32(right))
    55135513        return JSValuePtr::encode(jsNumber(ARG_globalData, left << (right & 0x1f)));
    55145514
    55155515    CallFrame* callFrame = ARG_callFrame;
    5516     JSValuePtr result = jsNumber(ARG_globalData, (val->toInt32(callFrame)) << (shift->toUInt32(callFrame) & 0x1f));
     5516    JSValuePtr result = jsNumber(ARG_globalData, (val.toInt32(callFrame)) << (shift.toUInt32(callFrame) & 0x1f));
    55175517    CHECK_FOR_EXCEPTION_AT_END();
    55185518    return JSValuePtr::encode(result);
     
    55285528    int32_t left;
    55295529    int32_t right;
    5530     if (src1->numberToInt32(left) && src2->numberToInt32(right))
     5530    if (src1.numberToInt32(left) && src2.numberToInt32(right))
    55315531        return JSValuePtr::encode(jsNumber(ARG_globalData, left & right));
    55325532
    55335533    CallFrame* callFrame = ARG_callFrame;
    5534     JSValuePtr result = jsNumber(ARG_globalData, src1->toInt32(callFrame) & src2->toInt32(callFrame));
     5534    JSValuePtr result = jsNumber(ARG_globalData, src1.toInt32(callFrame) & src2.toInt32(callFrame));
    55355535    CHECK_FOR_EXCEPTION_AT_END();
    55365536    return JSValuePtr::encode(result);
     
    55485548    if (JSFastMath::canDoFastRshift(val, shift))
    55495549        return JSValuePtr::encode(JSFastMath::rightShiftImmediateNumbers(val, shift));
    5550     if (val->numberToInt32(left) && shift->numberToUInt32(right))
     5550    if (val.numberToInt32(left) && shift.numberToUInt32(right))
    55515551        return JSValuePtr::encode(jsNumber(ARG_globalData, left >> (right & 0x1f)));
    55525552
    55535553    CallFrame* callFrame = ARG_callFrame;
    5554     JSValuePtr result = jsNumber(ARG_globalData, (val->toInt32(callFrame)) >> (shift->toUInt32(callFrame) & 0x1f));
     5554    JSValuePtr result = jsNumber(ARG_globalData, (val.toInt32(callFrame)) >> (shift.toUInt32(callFrame) & 0x1f));
    55555555    CHECK_FOR_EXCEPTION_AT_END();
    55565556    return JSValuePtr::encode(result);
     
    55645564
    55655565    int value;
    5566     if (src->numberToInt32(value))
     5566    if (src.numberToInt32(value))
    55675567        return JSValuePtr::encode(jsNumber(ARG_globalData, ~value));
    55685568
    55695569    CallFrame* callFrame = ARG_callFrame;
    5570     JSValuePtr result = jsNumber(ARG_globalData, ~src->toInt32(callFrame));
     5570    JSValuePtr result = jsNumber(ARG_globalData, ~src.toInt32(callFrame));
    55715571    CHECK_FOR_EXCEPTION_AT_END();
    55725572    return JSValuePtr::encode(result);
     
    56225622
    56235623    CallFrame* callFrame = ARG_callFrame;
    5624     double d = dividendValue->toNumber(callFrame);
    5625     JSValuePtr result = jsNumber(ARG_globalData, fmod(d, divisorValue->toNumber(callFrame)));
     5624    double d = dividendValue.toNumber(callFrame);
     5625    JSValuePtr result = jsNumber(ARG_globalData, fmod(d, divisorValue.toNumber(callFrame)));
    56265626    CHECK_FOR_EXCEPTION_AT_END();
    56275627    return JSValuePtr::encode(result);
     
    56615661    CallFrame* callFrame = ARG_callFrame;
    56625662
    5663     JSValuePtr number = v->toJSNumber(callFrame);
     5663    JSValuePtr number = v.toJSNumber(callFrame);
    56645664    CHECK_FOR_EXCEPTION_AT_END();
    56655665
    5666     RETURN_PAIR(JSValuePtr::encode(number), JSValuePtr::encode(jsNumber(ARG_globalData, number->uncheckedGetNumber() - 1)));
     5666    RETURN_PAIR(JSValuePtr::encode(number), JSValuePtr::encode(jsNumber(ARG_globalData, number.uncheckedGetNumber() - 1)));
    56675667}
    56685668
     
    56795679        return JSValuePtr::encode(JSFastMath::rightShiftImmediateNumbers(val, shift));
    56805680    else {
    5681         JSValuePtr result = jsNumber(ARG_globalData, (val->toUInt32(callFrame)) >> (shift->toUInt32(callFrame) & 0x1f));
     5681        JSValuePtr result = jsNumber(ARG_globalData, (val.toUInt32(callFrame)) >> (shift.toUInt32(callFrame) & 0x1f));
    56825682        CHECK_FOR_EXCEPTION_AT_END();
    56835683        return JSValuePtr::encode(result);
     
    56945694    CallFrame* callFrame = ARG_callFrame;
    56955695
    5696     JSValuePtr result = jsNumber(ARG_globalData, src1->toInt32(callFrame) ^ src2->toInt32(callFrame));
     5696    JSValuePtr result = jsNumber(ARG_globalData, src1.toInt32(callFrame) ^ src2.toInt32(callFrame));
    56975697    CHECK_FOR_EXCEPTION_AT_END();
    56985698    return JSValuePtr::encode(result);
     
    57155715    CallFrame* callFrame = ARG_callFrame;
    57165716
    5717     JSValuePtr result = jsNumber(ARG_globalData, src1->toInt32(callFrame) | src2->toInt32(callFrame));
     5717    JSValuePtr result = jsNumber(ARG_globalData, src1.toInt32(callFrame) | src2.toInt32(callFrame));
    57185718    CHECK_FOR_EXCEPTION_AT_END();
    57195719    return JSValuePtr::encode(result);
     
    57995799    BEGIN_STUB_FUNCTION();
    58005800
    5801     JSObject* o = ARG_src1->toObject(ARG_callFrame);
     5801    JSObject* o = ARG_src1.toObject(ARG_callFrame);
    58025802    CHECK_FOR_EXCEPTION();
    58035803    ARG_callFrame->setScopeChain(ARG_callFrame->scopeChain()->push(o));
     
    58245824
    58255825    JSValuePtr v = ARG_src1;
    5826     return JSValuePtr::encode(jsBoolean(v->isCell() ? v->asCell()->structure()->typeInfo().masqueradesAsUndefined() : v->isUndefined()));
     5826    return JSValuePtr::encode(jsBoolean(v.isCell() ? v.asCell()->structure()->typeInfo().masqueradesAsUndefined() : v.isUndefined()));
    58275827}
    58285828
     
    58315831    BEGIN_STUB_FUNCTION();
    58325832
    5833     return JSValuePtr::encode(jsBoolean(ARG_src1->isBoolean()));
     5833    return JSValuePtr::encode(jsBoolean(ARG_src1.isBoolean()));
    58345834}
    58355835
     
    58385838    BEGIN_STUB_FUNCTION();
    58395839
    5840     return JSValuePtr::encode(jsBoolean(ARG_src1->isNumber()));
     5840    return JSValuePtr::encode(jsBoolean(ARG_src1.isNumber()));
    58415841}
    58425842
     
    58895889    CallFrame* callFrame = ARG_callFrame;
    58905890
    5891     JSValuePtr result = src->toJSNumber(callFrame);
     5891    JSValuePtr result = src.toJSNumber(callFrame);
    58925892    CHECK_FOR_EXCEPTION_AT_END();
    58935893    return JSValuePtr::encode(result);
     
    59015901    JSValuePtr baseVal = ARG_src2;
    59025902
    5903     if (!baseVal->isObject()) {
     5903    if (!baseVal.isObject()) {
    59045904        CallFrame* callFrame = ARG_callFrame;
    59055905        CodeBlock* codeBlock = callFrame->codeBlock();
     
    59135913
    59145914    uint32_t i;
    5915     if (propName->getUInt32(i))
     5915    if (propName.getUInt32(i))
    59165916        return JSValuePtr::encode(jsBoolean(baseObj->hasProperty(callFrame, i)));
    59175917
    5918     Identifier property(callFrame, propName->toString(callFrame));
     5918    Identifier property(callFrame, propName.toString(callFrame));
    59195919    CHECK_FOR_EXCEPTION();
    59205920    return JSValuePtr::encode(jsBoolean(baseObj->hasProperty(callFrame, property)));
     
    59525952    unsigned property = ARG_int2;
    59535953
    5954     ARG_src1->put(callFrame, property, ARG_src3);
     5954    ARG_src1.put(callFrame, property, ARG_src3);
    59555955}
    59565956
     
    59645964    CodeBlock* codeBlock = callFrame->codeBlock();
    59655965
    5966     if (scrutinee->isInt32Fast())
    5967         return codeBlock->immediateSwitchJumpTable(tableIndex).ctiForValue(scrutinee->getInt32Fast());
     5966    if (scrutinee.isInt32Fast())
     5967        return codeBlock->immediateSwitchJumpTable(tableIndex).ctiForValue(scrutinee.getInt32Fast());
    59685968
    59695969    return codeBlock->immediateSwitchJumpTable(tableIndex).ctiDefault;
     
    59815981    void* result = codeBlock->characterSwitchJumpTable(tableIndex).ctiDefault;
    59825982
    5983     if (scrutinee->isString()) {
     5983    if (scrutinee.isString()) {
    59845984        UString::Rep* value = asString(scrutinee)->value().rep();
    59855985        if (value->size() == 1)
     
    60016001    void* result = codeBlock->stringSwitchJumpTable(tableIndex).ctiDefault;
    60026002
    6003     if (scrutinee->isString()) {
     6003    if (scrutinee.isString()) {
    60046004        UString::Rep* value = asString(scrutinee)->value().rep();
    60056005        result = codeBlock->stringSwitchJumpTable(tableIndex).ctiForValue(value);
     
    60166016
    60176017    JSValuePtr baseValue = ARG_src1;
    6018     JSObject* baseObj = baseValue->toObject(callFrame); // may throw
     6018    JSObject* baseObj = baseValue.toObject(callFrame); // may throw
    60196019
    60206020    JSValuePtr subscript = ARG_src2;
    60216021    JSValuePtr result;
    60226022    uint32_t i;
    6023     if (subscript->getUInt32(i))
     6023    if (subscript.getUInt32(i))
    60246024        result = jsBoolean(baseObj->deleteProperty(callFrame, i));
    60256025    else {
    60266026        CHECK_FOR_EXCEPTION();
    6027         Identifier property(callFrame, subscript->toString(callFrame));
     6027        Identifier property(callFrame, subscript.toString(callFrame));
    60286028        CHECK_FOR_EXCEPTION();
    60296029        result = jsBoolean(baseObj->deleteProperty(callFrame, property));
     
    60406040    CallFrame* callFrame = ARG_callFrame;
    60416041
    6042     ASSERT(ARG_src1->isObject());
     6042    ASSERT(ARG_src1.isObject());
    60436043    JSObject* baseObj = asObject(ARG_src1);
    6044     ASSERT(ARG_src3->isObject());
     6044    ASSERT(ARG_src3.isObject());
    60456045    baseObj->defineGetter(callFrame, *ARG_id2, asObject(ARG_src3));
    60466046}
     
    60526052    CallFrame* callFrame = ARG_callFrame;
    60536053
    6054     ASSERT(ARG_src1->isObject());
     6054    ASSERT(ARG_src1.isObject());
    60556055    JSObject* baseObj = asObject(ARG_src1);
    6056     ASSERT(ARG_src3->isObject());
     6056    ASSERT(ARG_src3.isObject());
    60576057    baseObj->defineSetter(callFrame, *ARG_id2, asObject(ARG_src3));
    60586058}
     
    60696069
    60706070    unsigned lineNumber = codeBlock->lineNumberForBytecodeOffset(callFrame, bytecodeOffset);
    6071     return Error::create(callFrame, static_cast<ErrorType>(type), message->toString(callFrame), lineNumber, codeBlock->ownerNode()->sourceID(), codeBlock->ownerNode()->sourceURL());
     6071    return Error::create(callFrame, static_cast<ErrorType>(type), message.toString(callFrame), lineNumber, codeBlock->ownerNode()->sourceID(), codeBlock->ownerNode()->sourceURL());
    60726072}
    60736073
Note: See TracChangeset for help on using the changeset viewer.