source: webkit/trunk/JavaScriptCore/API/JSCallbackObjectFunctions.h@ 37333

Last change on this file since 37333 was 36766, checked in by [email protected], 17 years ago

JavaScriptCore:

2008-09-22 Maciej Stachowiak <[email protected]>

Reviewed by Cameron Zwarich.


  • speed up instanceof operator by replacing implementsHasInstance method with a TypeInfo flag

Partial work towards <https://bugs.webkit.org/show_bug.cgi?id=20818>


2.2% speedup on EarleyBoyer benchmark.

  • API/JSCallbackConstructor.cpp:
  • API/JSCallbackConstructor.h: (JSC::JSCallbackConstructor::createStructureID):
  • API/JSCallbackFunction.cpp:
  • API/JSCallbackFunction.h: (JSC::JSCallbackFunction::createStructureID):
  • API/JSCallbackObject.h: (JSC::JSCallbackObject::createStructureID):
  • API/JSCallbackObjectFunctions.h: (JSC::::hasInstance):
  • API/JSValueRef.cpp: (JSValueIsInstanceOfConstructor):
  • JavaScriptCore.exp:
  • VM/Machine.cpp: (JSC::Machine::privateExecute): (JSC::Machine::cti_op_instanceof):
  • kjs/InternalFunction.cpp:
  • kjs/InternalFunction.h: (JSC::InternalFunction::createStructureID):
  • kjs/JSObject.cpp:
  • kjs/JSObject.h:
  • kjs/TypeInfo.h: (JSC::TypeInfo::implementsHasInstance):

WebCore:

2008-09-22 Maciej Stachowiak <[email protected]>

Reviewed by Cameron Zwarich.

  • speed up instanceof operator by replacing implementsHasInstance method with a TypeInfo flag

Partial work towards <https://bugs.webkit.org/show_bug.cgi?id=20818>


2.2% speedup on EarleyBoyer benchmark.

  • bindings/js/JSQuarantinedObjectWrapper.cpp:
  • bindings/js/JSQuarantinedObjectWrapper.h: (WebCore::JSQuarantinedObjectWrapper::createStructureID):
  • bindings/scripts/CodeGeneratorJS.pm:
  • Property svn:eol-style set to native
File size: 20.3 KB
Line 
1/*
2 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2007 Eric Seidel <[email protected]>
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 *
14 * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
15 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
17 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
18 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
19 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
20 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
21 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */
26
27#include "APICast.h"
28#include "Error.h"
29#include "JSCallbackFunction.h"
30#include "JSClassRef.h"
31#include "JSGlobalObject.h"
32#include "JSLock.h"
33#include "JSObjectRef.h"
34#include "JSString.h"
35#include "JSStringRef.h"
36#include "OpaqueJSString.h"
37#include "PropertyNameArray.h"
38#include <wtf/Vector.h>
39
40namespace JSC {
41
42template <class Base>
43JSCallbackObject<Base>::JSCallbackObject(ExecState* exec, PassRefPtr<StructureID> structure, JSClassRef jsClass, void* data)
44 : Base(structure)
45 , m_callbackObjectData(new JSCallbackObjectData(data, jsClass))
46{
47 init(exec);
48}
49
50// Global object constructor.
51// FIXME: Move this into a separate JSGlobalCallbackObject class derived from this one.
52template <class Base>
53JSCallbackObject<Base>::JSCallbackObject(JSGlobalData* globalData, JSClassRef jsClass)
54 : Base(globalData)
55 , m_callbackObjectData(new JSCallbackObjectData(0, jsClass))
56{
57 ASSERT(Base::isGlobalObject());
58 init(static_cast<JSGlobalObject*>(this)->globalExec());
59}
60
61template <class Base>
62void JSCallbackObject<Base>::init(ExecState* exec)
63{
64 ASSERT(exec);
65
66 Vector<JSObjectInitializeCallback, 16> initRoutines;
67 JSClassRef jsClass = classRef();
68 do {
69 if (JSObjectInitializeCallback initialize = jsClass->initialize)
70 initRoutines.append(initialize);
71 } while ((jsClass = jsClass->parentClass));
72
73 // initialize from base to derived
74 for (int i = static_cast<int>(initRoutines.size()) - 1; i >= 0; i--) {
75 JSLock::DropAllLocks dropAllLocks(exec);
76 JSObjectInitializeCallback initialize = initRoutines[i];
77 initialize(toRef(exec), toRef(this));
78 }
79}
80
81template <class Base>
82JSCallbackObject<Base>::~JSCallbackObject()
83{
84 JSObjectRef thisRef = toRef(this);
85
86 for (JSClassRef jsClass = classRef(); jsClass; jsClass = jsClass->parentClass)
87 if (JSObjectFinalizeCallback finalize = jsClass->finalize)
88 finalize(thisRef);
89}
90
91template <class Base>
92UString JSCallbackObject<Base>::className() const
93{
94 UString thisClassName = classRef()->className();
95 if (!thisClassName.isNull())
96 return thisClassName;
97
98 return Base::className();
99}
100
101template <class Base>
102bool JSCallbackObject<Base>::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
103{
104 JSContextRef ctx = toRef(exec);
105 JSObjectRef thisRef = toRef(this);
106 RefPtr<OpaqueJSString> propertyNameRef;
107
108 for (JSClassRef jsClass = classRef(); jsClass; jsClass = jsClass->parentClass) {
109 // optional optimization to bypass getProperty in cases when we only need to know if the property exists
110 if (JSObjectHasPropertyCallback hasProperty = jsClass->hasProperty) {
111 if (!propertyNameRef)
112 propertyNameRef = OpaqueJSString::create(propertyName.ustring());
113 JSLock::DropAllLocks dropAllLocks(exec);
114 if (hasProperty(ctx, thisRef, propertyNameRef.get())) {
115 slot.setCustom(this, callbackGetter);
116 return true;
117 }
118 } else if (JSObjectGetPropertyCallback getProperty = jsClass->getProperty) {
119 if (!propertyNameRef)
120 propertyNameRef = OpaqueJSString::create(propertyName.ustring());
121 JSLock::DropAllLocks dropAllLocks(exec);
122 if (JSValueRef value = getProperty(ctx, thisRef, propertyNameRef.get(), toRef(exec->exceptionSlot()))) {
123 // cache the value so we don't have to compute it again
124 // FIXME: This violates the PropertySlot design a little bit.
125 // We should either use this optimization everywhere, or nowhere.
126 slot.setCustom(reinterpret_cast<JSObject*>(toJS(value)), cachedValueGetter);
127 return true;
128 }
129 }
130
131 if (OpaqueJSClassStaticValuesTable* staticValues = jsClass->staticValues(exec)) {
132 if (staticValues->contains(propertyName.ustring().rep())) {
133 slot.setCustom(this, staticValueGetter);
134 return true;
135 }
136 }
137
138 if (OpaqueJSClassStaticFunctionsTable* staticFunctions = jsClass->staticFunctions(exec)) {
139 if (staticFunctions->contains(propertyName.ustring().rep())) {
140 slot.setCustom(this, staticFunctionGetter);
141 return true;
142 }
143 }
144 }
145
146 return Base::getOwnPropertySlot(exec, propertyName, slot);
147}
148
149template <class Base>
150bool JSCallbackObject<Base>::getOwnPropertySlot(ExecState* exec, unsigned propertyName, PropertySlot& slot)
151{
152 return getOwnPropertySlot(exec, Identifier::from(exec, propertyName), slot);
153}
154
155template <class Base>
156void JSCallbackObject<Base>::put(ExecState* exec, const Identifier& propertyName, JSValue* value, PutPropertySlot& slot)
157{
158 JSContextRef ctx = toRef(exec);
159 JSObjectRef thisRef = toRef(this);
160 RefPtr<OpaqueJSString> propertyNameRef;
161 JSValueRef valueRef = toRef(value);
162
163 for (JSClassRef jsClass = classRef(); jsClass; jsClass = jsClass->parentClass) {
164 if (JSObjectSetPropertyCallback setProperty = jsClass->setProperty) {
165 if (!propertyNameRef)
166 propertyNameRef = OpaqueJSString::create(propertyName.ustring());
167 JSLock::DropAllLocks dropAllLocks(exec);
168 if (setProperty(ctx, thisRef, propertyNameRef.get(), valueRef, toRef(exec->exceptionSlot())))
169 return;
170 }
171
172 if (OpaqueJSClassStaticValuesTable* staticValues = jsClass->staticValues(exec)) {
173 if (StaticValueEntry* entry = staticValues->get(propertyName.ustring().rep())) {
174 if (entry->attributes & kJSPropertyAttributeReadOnly)
175 return;
176 if (JSObjectSetPropertyCallback setProperty = entry->setProperty) {
177 if (!propertyNameRef)
178 propertyNameRef = OpaqueJSString::create(propertyName.ustring());
179 JSLock::DropAllLocks dropAllLocks(exec);
180 if (setProperty(ctx, thisRef, propertyNameRef.get(), valueRef, toRef(exec->exceptionSlot())))
181 return;
182 } else
183 throwError(exec, ReferenceError, "Attempt to set a property that is not settable.");
184 }
185 }
186
187 if (OpaqueJSClassStaticFunctionsTable* staticFunctions = jsClass->staticFunctions(exec)) {
188 if (StaticFunctionEntry* entry = staticFunctions->get(propertyName.ustring().rep())) {
189 if (entry->attributes & kJSPropertyAttributeReadOnly)
190 return;
191 JSCallbackObject<Base>::putDirect(propertyName, value); // put as override property
192 return;
193 }
194 }
195 }
196
197 return Base::put(exec, propertyName, value, slot);
198}
199
200template <class Base>
201bool JSCallbackObject<Base>::deleteProperty(ExecState* exec, const Identifier& propertyName)
202{
203 JSContextRef ctx = toRef(exec);
204 JSObjectRef thisRef = toRef(this);
205 RefPtr<OpaqueJSString> propertyNameRef;
206
207 for (JSClassRef jsClass = classRef(); jsClass; jsClass = jsClass->parentClass) {
208 if (JSObjectDeletePropertyCallback deleteProperty = jsClass->deleteProperty) {
209 if (!propertyNameRef)
210 propertyNameRef = OpaqueJSString::create(propertyName.ustring());
211 JSLock::DropAllLocks dropAllLocks(exec);
212 if (deleteProperty(ctx, thisRef, propertyNameRef.get(), toRef(exec->exceptionSlot())))
213 return true;
214 }
215
216 if (OpaqueJSClassStaticValuesTable* staticValues = jsClass->staticValues(exec)) {
217 if (StaticValueEntry* entry = staticValues->get(propertyName.ustring().rep())) {
218 if (entry->attributes & kJSPropertyAttributeDontDelete)
219 return false;
220 return true;
221 }
222 }
223
224 if (OpaqueJSClassStaticFunctionsTable* staticFunctions = jsClass->staticFunctions(exec)) {
225 if (StaticFunctionEntry* entry = staticFunctions->get(propertyName.ustring().rep())) {
226 if (entry->attributes & kJSPropertyAttributeDontDelete)
227 return false;
228 return true;
229 }
230 }
231 }
232
233 return Base::deleteProperty(exec, propertyName);
234}
235
236template <class Base>
237bool JSCallbackObject<Base>::deleteProperty(ExecState* exec, unsigned propertyName)
238{
239 return deleteProperty(exec, Identifier::from(exec, propertyName));
240}
241
242template <class Base>
243ConstructType JSCallbackObject<Base>::getConstructData(ConstructData& constructData)
244{
245 for (JSClassRef jsClass = classRef(); jsClass; jsClass = jsClass->parentClass) {
246 if (jsClass->callAsConstructor) {
247 constructData.native.function = construct;
248 return ConstructTypeHost;
249 }
250 }
251 return ConstructTypeNone;
252}
253
254template <class Base>
255JSObject* JSCallbackObject<Base>::construct(ExecState* exec, JSObject* constructor, const ArgList& args)
256{
257 JSContextRef execRef = toRef(exec);
258 JSObjectRef constructorRef = toRef(constructor);
259
260 for (JSClassRef jsClass = static_cast<JSCallbackObject<Base>*>(constructor)->classRef(); jsClass; jsClass = jsClass->parentClass) {
261 if (JSObjectCallAsConstructorCallback callAsConstructor = jsClass->callAsConstructor) {
262 int argumentCount = static_cast<int>(args.size());
263 Vector<JSValueRef, 16> arguments(argumentCount);
264 for (int i = 0; i < argumentCount; i++)
265 arguments[i] = toRef(args.at(exec, i));
266 JSLock::DropAllLocks dropAllLocks(exec);
267 return toJS(callAsConstructor(execRef, constructorRef, argumentCount, arguments.data(), toRef(exec->exceptionSlot())));
268 }
269 }
270
271 ASSERT_NOT_REACHED(); // getConstructData should prevent us from reaching here
272 return 0;
273}
274
275template <class Base>
276bool JSCallbackObject<Base>::hasInstance(ExecState* exec, JSValue* value, JSValue*)
277{
278 JSContextRef execRef = toRef(exec);
279 JSObjectRef thisRef = toRef(this);
280
281 for (JSClassRef jsClass = classRef(); jsClass; jsClass = jsClass->parentClass) {
282 if (JSObjectHasInstanceCallback hasInstance = jsClass->hasInstance) {
283 JSLock::DropAllLocks dropAllLocks(exec);
284 return hasInstance(execRef, thisRef, toRef(value), toRef(exec->exceptionSlot()));
285 }
286 }
287 return false;
288}
289
290template <class Base>
291CallType JSCallbackObject<Base>::getCallData(CallData& callData)
292{
293 for (JSClassRef jsClass = classRef(); jsClass; jsClass = jsClass->parentClass) {
294 if (jsClass->callAsFunction) {
295 callData.native.function = call;
296 return CallTypeHost;
297 }
298 }
299 return CallTypeNone;
300}
301
302template <class Base>
303JSValue* JSCallbackObject<Base>::call(ExecState* exec, JSObject* functionObject, JSValue* thisValue, const ArgList& args)
304{
305 JSContextRef execRef = toRef(exec);
306 JSObjectRef functionRef = toRef(functionObject);
307 JSObjectRef thisObjRef = toRef(thisValue->toThisObject(exec));
308
309 for (JSClassRef jsClass = static_cast<JSCallbackObject<Base>*>(functionObject)->classRef(); jsClass; jsClass = jsClass->parentClass) {
310 if (JSObjectCallAsFunctionCallback callAsFunction = jsClass->callAsFunction) {
311 int argumentCount = static_cast<int>(args.size());
312 Vector<JSValueRef, 16> arguments(argumentCount);
313 for (int i = 0; i < argumentCount; i++)
314 arguments[i] = toRef(args.at(exec, i));
315 JSLock::DropAllLocks dropAllLocks(exec);
316 return toJS(callAsFunction(execRef, functionRef, thisObjRef, argumentCount, arguments.data(), toRef(exec->exceptionSlot())));
317 }
318 }
319
320 ASSERT_NOT_REACHED(); // getCallData should prevent us from reaching here
321 return 0;
322}
323
324template <class Base>
325void JSCallbackObject<Base>::getPropertyNames(ExecState* exec, PropertyNameArray& propertyNames)
326{
327 JSContextRef execRef = toRef(exec);
328 JSObjectRef thisRef = toRef(this);
329
330 for (JSClassRef jsClass = classRef(); jsClass; jsClass = jsClass->parentClass) {
331 if (JSObjectGetPropertyNamesCallback getPropertyNames = jsClass->getPropertyNames) {
332 JSLock::DropAllLocks dropAllLocks(exec);
333 getPropertyNames(execRef, thisRef, toRef(&propertyNames));
334 }
335
336 if (OpaqueJSClassStaticValuesTable* staticValues = jsClass->staticValues(exec)) {
337 typedef OpaqueJSClassStaticValuesTable::const_iterator iterator;
338 iterator end = staticValues->end();
339 for (iterator it = staticValues->begin(); it != end; ++it) {
340 UString::Rep* name = it->first.get();
341 StaticValueEntry* entry = it->second;
342 if (entry->getProperty && !(entry->attributes & kJSPropertyAttributeDontEnum))
343 propertyNames.add(Identifier(exec, name));
344 }
345 }
346
347 if (OpaqueJSClassStaticFunctionsTable* staticFunctions = jsClass->staticFunctions(exec)) {
348 typedef OpaqueJSClassStaticFunctionsTable::const_iterator iterator;
349 iterator end = staticFunctions->end();
350 for (iterator it = staticFunctions->begin(); it != end; ++it) {
351 UString::Rep* name = it->first.get();
352 StaticFunctionEntry* entry = it->second;
353 if (!(entry->attributes & kJSPropertyAttributeDontEnum))
354 propertyNames.add(Identifier(exec, name));
355 }
356 }
357 }
358
359 Base::getPropertyNames(exec, propertyNames);
360}
361
362template <class Base>
363double JSCallbackObject<Base>::toNumber(ExecState* exec) const
364{
365 // We need this check to guard against the case where this object is rhs of
366 // a binary expression where lhs threw an exception in its conversion to
367 // primitive
368 if (exec->hadException())
369 return NaN;
370 JSContextRef ctx = toRef(exec);
371 JSObjectRef thisRef = toRef(this);
372
373 for (JSClassRef jsClass = classRef(); jsClass; jsClass = jsClass->parentClass)
374 if (JSObjectConvertToTypeCallback convertToType = jsClass->convertToType) {
375 JSLock::DropAllLocks dropAllLocks(exec);
376 if (JSValueRef value = convertToType(ctx, thisRef, kJSTypeNumber, toRef(exec->exceptionSlot())))
377 return toJS(value)->getNumber();
378 }
379
380 return Base::toNumber(exec);
381}
382
383template <class Base>
384UString JSCallbackObject<Base>::toString(ExecState* exec) const
385{
386 JSContextRef ctx = toRef(exec);
387 JSObjectRef thisRef = toRef(this);
388
389 for (JSClassRef jsClass = classRef(); jsClass; jsClass = jsClass->parentClass)
390 if (JSObjectConvertToTypeCallback convertToType = jsClass->convertToType) {
391 JSValueRef value;
392 {
393 JSLock::DropAllLocks dropAllLocks(exec);
394 value = convertToType(ctx, thisRef, kJSTypeString, toRef(exec->exceptionSlot()));
395 }
396 if (value)
397 return toJS(value)->getString();
398 }
399
400 return Base::toString(exec);
401}
402
403template <class Base>
404void JSCallbackObject<Base>::setPrivate(void* data)
405{
406 m_callbackObjectData->privateData = data;
407}
408
409template <class Base>
410void* JSCallbackObject<Base>::getPrivate()
411{
412 return m_callbackObjectData->privateData;
413}
414
415template <class Base>
416bool JSCallbackObject<Base>::inherits(JSClassRef c) const
417{
418 for (JSClassRef jsClass = classRef(); jsClass; jsClass = jsClass->parentClass)
419 if (jsClass == c)
420 return true;
421
422 return false;
423}
424
425template <class Base>
426JSValue* JSCallbackObject<Base>::cachedValueGetter(ExecState*, const Identifier&, const PropertySlot& slot)
427{
428 JSValue* v = slot.slotBase();
429 ASSERT(v);
430 return v;
431}
432
433template <class Base>
434JSValue* JSCallbackObject<Base>::staticValueGetter(ExecState* exec, const Identifier& propertyName, const PropertySlot& slot)
435{
436 ASSERT(slot.slotBase()->isObject(&JSCallbackObject::info));
437 JSCallbackObject* thisObj = static_cast<JSCallbackObject*>(slot.slotBase());
438
439 JSObjectRef thisRef = toRef(thisObj);
440 RefPtr<OpaqueJSString> propertyNameRef;
441
442 for (JSClassRef jsClass = thisObj->classRef(); jsClass; jsClass = jsClass->parentClass)
443 if (OpaqueJSClassStaticValuesTable* staticValues = jsClass->staticValues(exec))
444 if (StaticValueEntry* entry = staticValues->get(propertyName.ustring().rep()))
445 if (JSObjectGetPropertyCallback getProperty = entry->getProperty) {
446 if (!propertyNameRef)
447 propertyNameRef = OpaqueJSString::create(propertyName.ustring());
448 JSLock::DropAllLocks dropAllLocks(exec);
449 if (JSValueRef value = getProperty(toRef(exec), thisRef, propertyNameRef.get(), toRef(exec->exceptionSlot())))
450 return toJS(value);
451 }
452
453 return throwError(exec, ReferenceError, "Static value property defined with NULL getProperty callback.");
454}
455
456template <class Base>
457JSValue* JSCallbackObject<Base>::staticFunctionGetter(ExecState* exec, const Identifier& propertyName, const PropertySlot& slot)
458{
459 ASSERT(slot.slotBase()->isObject(&JSCallbackObject::info));
460 JSCallbackObject* thisObj = static_cast<JSCallbackObject*>(slot.slotBase());
461
462 // Check for cached or override property.
463 PropertySlot slot2(thisObj);
464 if (thisObj->Base::getOwnPropertySlot(exec, propertyName, slot2))
465 return slot2.getValue(exec, propertyName);
466
467 for (JSClassRef jsClass = thisObj->classRef(); jsClass; jsClass = jsClass->parentClass) {
468 if (OpaqueJSClassStaticFunctionsTable* staticFunctions = jsClass->staticFunctions(exec)) {
469 if (StaticFunctionEntry* entry = staticFunctions->get(propertyName.ustring().rep())) {
470 if (JSObjectCallAsFunctionCallback callAsFunction = entry->callAsFunction) {
471 JSObject* o = new (exec) JSCallbackFunction(exec, callAsFunction, propertyName);
472 thisObj->putDirect(propertyName, o, entry->attributes);
473 return o;
474 }
475 }
476 }
477 }
478
479 return throwError(exec, ReferenceError, "Static function property defined with NULL callAsFunction callback.");
480}
481
482template <class Base>
483JSValue* JSCallbackObject<Base>::callbackGetter(ExecState* exec, const Identifier& propertyName, const PropertySlot& slot)
484{
485 ASSERT(slot.slotBase()->isObject(&JSCallbackObject::info));
486 JSCallbackObject* thisObj = static_cast<JSCallbackObject*>(slot.slotBase());
487
488 JSObjectRef thisRef = toRef(thisObj);
489 RefPtr<OpaqueJSString> propertyNameRef;
490
491 for (JSClassRef jsClass = thisObj->classRef(); jsClass; jsClass = jsClass->parentClass)
492 if (JSObjectGetPropertyCallback getProperty = jsClass->getProperty) {
493 if (!propertyNameRef)
494 propertyNameRef = OpaqueJSString::create(propertyName.ustring());
495 JSLock::DropAllLocks dropAllLocks(exec);
496 if (JSValueRef value = getProperty(toRef(exec), thisRef, propertyNameRef.get(), toRef(exec->exceptionSlot())))
497 return toJS(value);
498 }
499
500 return throwError(exec, ReferenceError, "hasProperty callback returned true for a property that doesn't exist.");
501}
502
503} // namespace JSC
Note: See TracBrowser for help on using the repository browser.