[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/avm2 r9574: Move asMethod::initPrototype()
From: |
Tom Stellard |
Subject: |
[Gnash-commit] /srv/bzr/gnash/avm2 r9574: Move asMethod::initPrototype() to asClass.cpp. |
Date: |
Tue, 30 Sep 2008 21:59:24 +0800 |
User-agent: |
Bazaar (1.5) |
------------------------------------------------------------
revno: 9574
committer: Tom Stellard <address@hidden>
branch nick: gnash_dev
timestamp: Tue 2008-09-30 21:59:24 +0800
message:
Move asMethod::initPrototype() to asClass.cpp.
modified:
libcore/asClass.cpp
libcore/asClass.h
=== modified file 'libcore/asClass.cpp'
--- a/libcore/asClass.cpp 2008-09-28 13:23:03 +0000
+++ b/libcore/asClass.cpp 2008-09-30 13:59:24 +0000
@@ -139,6 +139,12 @@
return addValue(name, ns, slotId, &a, b, false);
}
+void
+asMethod::initPrototype(Machine* machine)
+{
+ mPrototype = new abc_function(this,machine);
+}
+
bool
asClass::addSlotFunction(string_table::key name, asNamespace *ns,
boost::uint32_t slotId, asMethod *method, bool isstatic)
=== modified file 'libcore/asClass.h'
--- a/libcore/asClass.h 2008-09-28 13:23:03 +0000
+++ b/libcore/asClass.h 2008-09-30 13:59:24 +0000
@@ -26,7 +26,6 @@
#include "CodeStream.h"
#include "Property.h"
#include "as_function.h"
-#include "abc_function.h"
#include "abc_block.h"
@@ -47,6 +46,7 @@
class Property;
class asName;
class Machine;
+class abc_function;
namespace abc_parsing{
class abc_Trait;
@@ -357,7 +357,7 @@
public:
- void initPrototype(Machine* machine){ mPrototype = new
abc_function(this,machine);}
+ void initPrototype(Machine* machine);
boost::uint32_t getMaxRegisters(){ return mMaxRegisters;}
@@ -369,7 +369,7 @@
void setBodyLength(boost::uint32_t length){ mBodyLength = length;}
- as_function* getPrototype() { return mPrototype; }
+ abc_function* getPrototype() { return mPrototype; }
asBinding* getBinding(string_table::key name);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/avm2 r9574: Move asMethod::initPrototype() to asClass.cpp.,
Tom Stellard <=