@@ -41,7 +41,7 @@ class DfunctionConstructor : Dfunction
4141{
4242 this (CallContext* cc)
4343 {
44- super (cc, 1 , Dfunction_prototype);
44+ super (cc, 1 , cc.tc. Dfunction_prototype);
4545
4646 // Actually put in later by Dfunction::initialize()
4747 // unsigned attributes = DontEnum | DontDelete | ReadOnly;
@@ -261,13 +261,13 @@ class DfunctionPrototype : Dfunction
261261{
262262 this (CallContext* cc)
263263 {
264- super (cc, 0 , Dobject_prototype);
264+ super (cc, 0 , cc.tc. Dobject_prototype);
265265
266266 uint attributes = DontEnum;
267267
268268 classname = TEXT_Function;
269269 name = " prototype" ;
270- Put(cc, TEXT_constructor, Dfunction_constructor, attributes);
270+ Put(cc, TEXT_constructor, cc.tc. Dfunction_constructor, attributes);
271271
272272 static enum NativeFunctionData[] nfd =
273273 [
@@ -297,7 +297,7 @@ class Dfunction : Dobject
297297
298298 this (CallContext* cc, d_uint32 length)
299299 {
300- this (cc, length, Dfunction.getPrototype());
300+ this (cc, length, Dfunction.getPrototype(cc ));
301301 }
302302
303303 this (CallContext* cc, d_uint32 length, Dobject prototype)
@@ -375,24 +375,24 @@ class Dfunction : Dobject
375375 }
376376
377377
378- static Dfunction getConstructor ()
378+ static Dfunction getConstructor (CallContext * cc )
379379 {
380- return Dfunction_constructor;
380+ return cc.tc. Dfunction_constructor;
381381 }
382382
383- static Dobject getPrototype ()
383+ static Dobject getPrototype (CallContext * cc )
384384 {
385- return Dfunction_prototype;
385+ return cc.tc. Dfunction_prototype;
386386 }
387387
388388 static void initialize (CallContext* cc)
389389 {
390- Dfunction_constructor = new DfunctionConstructor(cc);
391- Dfunction_prototype = new DfunctionPrototype(cc);
390+ cc.tc. Dfunction_constructor = new DfunctionConstructor(cc);
391+ cc.tc. Dfunction_prototype = new DfunctionPrototype(cc);
392392
393- Dfunction_constructor.Put(cc, TEXT_prototype, Dfunction_prototype, DontEnum | DontDelete | ReadOnly);
393+ cc.tc. Dfunction_constructor.Put(cc, TEXT_prototype, cc.tc. Dfunction_prototype, DontEnum | DontDelete | ReadOnly);
394394
395- Dfunction_constructor.internal_prototype = Dfunction_prototype;
396- Dfunction_constructor.proptable.previous = Dfunction_prototype.proptable;
395+ cc.tc. Dfunction_constructor.internal_prototype = cc.tc. Dfunction_prototype;
396+ cc.tc. Dfunction_constructor.proptable.previous = cc.tc. Dfunction_prototype.proptable;
397397 }
398398}
0 commit comments