Changeset 33979 in webkit for trunk/JavaScriptCore/kjs/function.h
- Timestamp:
- May 21, 2008, 6:20:45 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/function.h
r33972 r33979 27 27 28 28 #include "JSVariableObject.h" 29 #include "LocalStorageEntry.h"30 29 #include "SymbolTable.h" 31 30 #include "nodes.h" … … 34 33 namespace KJS { 35 34 36 class ActivationImp;37 35 class FunctionBodyNode; 38 36 class FunctionPrototype; 37 class JSActivation; 39 38 class JSGlobalObject; 40 39 … … 44 43 InternalFunctionImp(FunctionPrototype*, const Identifier&); 45 44 46 virtual bool implementsCall() const; 45 virtual CallType getCallData(CallData&); 46 47 47 virtual JSValue* callAsFunction(ExecState*, JSObject* thisObjec, const List& args) = 0; 48 48 virtual bool implementsHasInstance() const; … … 57 57 58 58 class FunctionImp : public InternalFunctionImp { 59 friend class ActivationImp;60 59 public: 61 FunctionImp(ExecState*, const Identifier& name, FunctionBodyNode*, const ScopeChain&);60 FunctionImp(ExecState*, const Identifier&, FunctionBodyNode*, ScopeChainNode*); 62 61 63 62 virtual bool getOwnPropertySlot(ExecState*, const Identifier&, PropertySlot&); … … 65 64 virtual bool deleteProperty(ExecState*, const Identifier& propertyName); 66 65 67 virtual bool implementsConstruct() const { return true; }66 virtual ConstructType getConstructData(ConstructData&); 68 67 virtual JSObject* construct(ExecState*, const List& args); 69 68 69 virtual CallType getCallData(CallData&); 70 70 virtual JSValue* callAsFunction(ExecState*, JSObject* thisObj, const List& args); 71 71 … … 80 80 81 81 void setScope(const ScopeChain& s) { _scope = s; } 82 const ScopeChain& scope() const{ return _scope; }82 ScopeChain& scope() { return _scope; } 83 83 84 84 virtual void mark(); … … 108 108 class Arguments : public JSObject { 109 109 public: 110 Arguments(ExecState*, FunctionImp* func, const List& args, ActivationImp* act);110 Arguments(ExecState*, FunctionImp* func, const List& args, JSActivation* act); 111 111 virtual void mark(); 112 112 virtual bool getOwnPropertySlot(ExecState*, const Identifier&, PropertySlot&); … … 118 118 static JSValue* mappedIndexGetter(ExecState*, JSObject*, const Identifier&, const PropertySlot& slot); 119 119 120 ActivationImp* _activationObject;120 JSActivation* _activationObject; 121 121 mutable IndexToNameMap indexToNameMap; 122 122 }; … … 169 169 #endif 170 170 171 JSValue* eval(ExecState*, const ScopeChain&, JSVariableObject*, JSGlobalObject*, JSObject* thisObj, const List& args);172 173 171 static const double mantissaOverflowLowerBound = 9007199254740992.0; 174 172 double parseIntOverflow(const char*, int length, int radix);
Note:
See TracChangeset
for help on using the changeset viewer.