[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677
mjs
mjs at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 07:05:14 UTC 2009
The following commit has been merged in the debian/unstable branch:
commit c562dc6bd1743e7b11b9d960af7df613bbc7fda5
Author: mjs <mjs at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Thu Nov 21 00:21:24 2002 +0000
Reduced the size of ValueImp by 8 bytes for a .5% speedup.
* kjs/value.h: Removed destructed flag. Made refcount and flag 16
bits each.
* kjs/value.cpp:
(ValueImp::~ValueImp): Don't set destructed flag.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2791 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/JavaScriptCore/ChangeLog b/JavaScriptCore/ChangeLog
index bb6b433..891869c 100644
--- a/JavaScriptCore/ChangeLog
+++ b/JavaScriptCore/ChangeLog
@@ -1,3 +1,12 @@
+2002-11-20 Maciej Stachowiak <mjs at apple.com>
+
+ Reduced the size of ValueImp by 8 bytes for a .5% speedup.
+
+ * kjs/value.h: Removed destructed flag. Made refcount and flag 16
+ bits each.
+ * kjs/value.cpp:
+ (ValueImp::~ValueImp): Don't set destructed flag.
+
2002-11-20 Darin Adler <darin at apple.com>
* kjs/types.cpp: Keep ref count for the whole lists of nodes.
diff --git a/JavaScriptCore/ChangeLog-2002-12-03 b/JavaScriptCore/ChangeLog-2002-12-03
index bb6b433..891869c 100644
--- a/JavaScriptCore/ChangeLog-2002-12-03
+++ b/JavaScriptCore/ChangeLog-2002-12-03
@@ -1,3 +1,12 @@
+2002-11-20 Maciej Stachowiak <mjs at apple.com>
+
+ Reduced the size of ValueImp by 8 bytes for a .5% speedup.
+
+ * kjs/value.h: Removed destructed flag. Made refcount and flag 16
+ bits each.
+ * kjs/value.cpp:
+ (ValueImp::~ValueImp): Don't set destructed flag.
+
2002-11-20 Darin Adler <darin at apple.com>
* kjs/types.cpp: Keep ref count for the whole lists of nodes.
diff --git a/JavaScriptCore/ChangeLog-2003-10-25 b/JavaScriptCore/ChangeLog-2003-10-25
index bb6b433..891869c 100644
--- a/JavaScriptCore/ChangeLog-2003-10-25
+++ b/JavaScriptCore/ChangeLog-2003-10-25
@@ -1,3 +1,12 @@
+2002-11-20 Maciej Stachowiak <mjs at apple.com>
+
+ Reduced the size of ValueImp by 8 bytes for a .5% speedup.
+
+ * kjs/value.h: Removed destructed flag. Made refcount and flag 16
+ bits each.
+ * kjs/value.cpp:
+ (ValueImp::~ValueImp): Don't set destructed flag.
+
2002-11-20 Darin Adler <darin at apple.com>
* kjs/types.cpp: Keep ref count for the whole lists of nodes.
diff --git a/JavaScriptCore/kjs/value.cpp b/JavaScriptCore/kjs/value.cpp
index 6637ddb..d0cdf00 100644
--- a/JavaScriptCore/kjs/value.cpp
+++ b/JavaScriptCore/kjs/value.cpp
@@ -53,7 +53,6 @@ ValueImp::ValueImp() :
ValueImp::~ValueImp()
{
//fprintf(stderr,"ValueImp::~ValueImp %p\n",(void*)this);
- _flags |= VI_DESTRUCTED;
}
void ValueImp::mark()
diff --git a/JavaScriptCore/kjs/value.h b/JavaScriptCore/kjs/value.h
index 8474077..7d8a9d2 100644
--- a/JavaScriptCore/kjs/value.h
+++ b/JavaScriptCore/kjs/value.h
@@ -95,7 +95,6 @@ namespace KJS {
ValueImp* ref() { if (!SimpleNumber::is(this)) refcount++; return this; }
bool deref() { if (SimpleNumber::is(this)) return false; else return (!--refcount); }
- unsigned int refcount;
virtual void mark();
bool marked() const;
@@ -127,7 +126,11 @@ namespace KJS {
bool dispatchToUInt32(unsigned&) const;
Object dispatchToObject(ExecState *exec) const;
+ unsigned short int refcount;
+
private:
+ unsigned short int _flags;
+
virtual Type type() const = 0;
// The conversion operations
@@ -142,13 +145,9 @@ namespace KJS {
enum {
VI_MARKED = 1,
VI_GCALLOWED = 2,
- VI_CREATED = 4,
- VI_DESTRUCTED = 8
+ VI_CREATED = 4
}; // VI means VALUEIMPL
- ValueImpPrivate *_vd;
- unsigned int _flags;
-
// Give a compile time error if we try to copy one of these.
ValueImp(const ValueImp&);
ValueImp& operator=(const ValueImp&);
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list