gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-


From: Bastiaan Jacques
Subject: [Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-2083-g223b921
Date: Thu, 29 May 2014 13:31:28 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnash".

The branch, master has been updated
       via  223b921899d45f0c265ac0415c812dcbc1114632 (commit)
       via  e36e91e887f67bed92b1356564b178360b245e0d (commit)
       via  0dfed8c40f72ac97bbec69fd8b7ca670e5c4597d (commit)
      from  2aa7200d0ef574e43ce7581c540eaaed9598160c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit//commit/?id=223b921899d45f0c265ac0415c812dcbc1114632


commit 223b921899d45f0c265ac0415c812dcbc1114632
Author: Bastiaan Jacques <address@hidden>
Date:   Thu May 29 15:16:12 2014 +0200

    Mark some more constructors constexpr.

diff --git a/libbase/Point2d.h b/libbase/Point2d.h
index 4cb502e..6630980 100644
--- a/libbase/Point2d.h
+++ b/libbase/Point2d.h
@@ -53,7 +53,7 @@ public:
        }
 
        /// Construct a Point2d with given x and y ordinates
-       Point2d(std::int32_t cx, std::int32_t cy)
+       constexpr Point2d(std::int32_t cx, std::int32_t cy)
                :
                x(cx), y(cy)
        {
diff --git a/libcore/Geometry.h b/libcore/Geometry.h
index c86f707..d8ddcbb 100644
--- a/libcore/Geometry.h
+++ b/libcore/Geometry.h
@@ -49,26 +49,26 @@ public:
     point cp; // control point, TWIPS
     point ap; // anchor    point, TWIPS
 
-    Edge() 
+    constexpr Edge()
         :
         cp(0, 0),
         ap(0, 0)
     {}
     
-    Edge(std::int32_t cx, std::int32_t cy, std::int32_t ax,
-            std::int32_t ay)
+    constexpr Edge(std::int32_t cx, std::int32_t cy, std::int32_t ax,
+                   std::int32_t ay)
         :
         cp(cx, cy),
         ap(ax, ay)
     {}
 
-    Edge(const Edge& from)
+    constexpr Edge(const Edge& from)
         : 
         cp(from.cp),
         ap(from.ap)
     {}
 
-    Edge(const point& ncp, const point& nap)
+    constexpr Edge(const point& ncp, const point& nap)
         :
         cp(ncp),
         ap(nap)

http://git.savannah.gnu.org/cgit//commit/?id=e36e91e887f67bed92b1356564b178360b245e0d


commit e36e91e887f67bed92b1356564b178360b245e0d
Author: Bastiaan Jacques <address@hidden>
Date:   Thu May 29 15:09:44 2014 +0200

    Given Container<T>, replace push_back(T(...)) with emplace_back(...).
    
    This allows the optimizer to do a better job.

diff --git a/libbase/URL.cpp b/libbase/URL.cpp
index 02c29e3..d74edbd 100644
--- a/libbase/URL.cpp
+++ b/libbase/URL.cpp
@@ -77,7 +77,7 @@ URL::normalize_path(std::string& path)
         }
     }
     // add last component 
-    components.push_back(std::string(prev+1, path.end()));
+    components.emplace_back(prev+1, path.end());
     
     path = "";
     for (std::vector<std::string>::const_iterator i=components.begin(),
diff --git a/libcore/Font.cpp b/libcore/Font.cpp
index 4f0edab..3587ca7 100644
--- a/libcore/Font.cpp
+++ b/libcore/Font.cpp
@@ -306,7 +306,7 @@ Font::add_os_glyph(std::uint16_t code)
     // Add the new glyph id
     _deviceCodeTable[code] = newOffset;
 
-    _deviceGlyphTable.push_back(GlyphInfo(std::move(sh), advance));
+    _deviceGlyphTable.emplace_back(std::move(sh), advance);
 
     return newOffset;
 }
diff --git a/libcore/Function.h b/libcore/Function.h
index b5eda36..bb0223c 100644
--- a/libcore/Function.h
+++ b/libcore/Function.h
@@ -110,7 +110,7 @@ public:
     /// @param reg      The register for the argument.
     /// @param name     The name of the argument.
        void add_arg(std::uint8_t reg, const ObjectURI& name) {
-        _args.push_back(Argument(reg, name));
+            _args.emplace_back(reg, name);
        }
 
     /// Set the length in bytes of the function code.
diff --git a/libcore/Geometry.h b/libcore/Geometry.h
index 6926708..c86f707 100644
--- a/libcore/Geometry.h
+++ b/libcore/Geometry.h
@@ -330,7 +330,7 @@ public:
     void 
     drawLineTo(std::int32_t dx, std::int32_t dy)
     {
-        m_edges.push_back(Edge(dx, dy, dx, dy)); 
+        m_edges.emplace_back(dx, dy, dx, dy);
     }
 
     /// Draw a curve.
@@ -353,7 +353,7 @@ public:
     void 
     drawCurveTo(std::int32_t cdx, std::int32_t cdy, std::int32_t adx, 
std::int32_t ady)
     {
-        m_edges.push_back(Edge(cdx, cdy, adx, ady)); 
+        m_edges.emplace_back(cdx, cdy, adx, ady);
     }
 
     /// Remove all edges and reset style infomation 
@@ -382,8 +382,7 @@ public:
         const Edge& lastedge = m_edges.back();
         if ( lastedge.ap != ap )
         {
-            Edge newedge(ap, ap);
-            m_edges.push_back(newedge);
+            m_edges.emplace_back(ap, ap);
         }
     }
 
diff --git a/libcore/asobj/Array_as.cpp b/libcore/asobj/Array_as.cpp
index 5d270fd..ed94e55 100644
--- a/libcore/asobj/Array_as.cpp
+++ b/libcore/asobj/Array_as.cpp
@@ -155,7 +155,7 @@ class PushToIndexedVector
 public:
     PushToIndexedVector(std::vector<indexed_as_value>& v) : _v(v), _i(0) {}
     void operator()(const as_value& val) {
-        _v.push_back(indexed_as_value(val, _i));
+        _v.emplace_back(val, _i);
         ++_i;
     }
 private:
diff --git a/libcore/asobj/MovieClip_as.cpp b/libcore/asobj/MovieClip_as.cpp
index f958054..da68096 100644
--- a/libcore/asobj/MovieClip_as.cpp
+++ b/libcore/asobj/MovieClip_as.cpp
@@ -1843,7 +1843,7 @@ movieclip_beginGradientFill(const fn_call& fn)
         color.parseRGB(col);
         color.m_a = alp;
 
-        gradients.push_back(GradientRecord(rat, color));
+        gradients.emplace_back(rat, color);
     }
 
     // Make sure we don't try to construct a GradientFill with only 1 stop!
diff --git a/libcore/asobj/flash/display/BitmapData_as.cpp 
b/libcore/asobj/flash/display/BitmapData_as.cpp
index 86bf502..34b4287 100644
--- a/libcore/asobj/flash/display/BitmapData_as.cpp
+++ b/libcore/asobj/flash/display/BitmapData_as.cpp
@@ -586,7 +586,7 @@ struct VectorPusher
         as_value x, y;
         if (!p->get_member(NSV::PROP_X, &x)) return;
         if (!p->get_member(NSV::PROP_Y, &y)) return;
-        _offsets.push_back(Vector(toInt(x, _vm), toInt(y, _vm)));
+        _offsets.emplace_back(toInt(x, _vm), toInt(y, _vm));
     }
 
 private:
diff --git a/libcore/movie_root.cpp b/libcore/movie_root.cpp
index 73bd036..441fe6f 100644
--- a/libcore/movie_root.cpp
+++ b/libcore/movie_root.cpp
@@ -1458,7 +1458,7 @@ void
 movie_root::addLoadableObject(as_object* obj, std::unique_ptr<IOChannel> str)
 {
     std::shared_ptr<IOChannel> io(str.release());
-    _loadCallbacks.push_back(LoadCallback(io, obj));
+    _loadCallbacks.emplace_back(io, obj);
 }
 
 void
@@ -2201,34 +2201,34 @@ movie_root::getURL(const std::string& urlstr, const 
std::string& target,
     /// This is when there is a hosting application.
     std::vector<as_value> fnargs;
     // The first argument we push on the stack is the URL
-    fnargs.push_back(as_value(urlstr));
+    fnargs.emplace_back(urlstr);
     
     // The second argument we push is the method
     switch (method) {
       case MovieClip::METHOD_POST:
-          fnargs.push_back(as_value("POST"));
+          fnargs.emplace_back("POST");
           break;
       case MovieClip::METHOD_GET:
-          fnargs.push_back(as_value("GET"));
+          fnargs.emplace_back("GET");
           break;
       case MovieClip::METHOD_NONE:
       default:
-          fnargs.push_back(as_value("GET"));
+          fnargs.emplace_back("GET");
           break;
     }
 
     // The third argument is the target, which is something like _blank
     // or _self.
     if (!target.empty()) {
-        fnargs.push_back(as_value(target));
+        fnargs.emplace_back(target);
     }
     // Add any data as the optional 4th argument
     if (!data.empty()) {
         // We have to write a value here so the data field is the fourth
         if (target.empty()) {
-            fnargs.push_back(as_value("none"));
+            fnargs.emplace_back("none");
         }
-        fnargs.push_back(as_value(data));
+        fnargs.emplace_back(data);
     }
 
     // TODO: should mutex-protect this ?
diff --git a/libcore/vm/VM.cpp b/libcore/vm/VM.cpp
index 6c13142..f6f13e9 100644
--- a/libcore/vm/VM.cpp
+++ b/libcore/vm/VM.cpp
@@ -253,7 +253,7 @@ VM::pushCallFrame(UserFunction& func)
         throw ActionLimitException(ss.str()); 
     }
 
-    _callStack.push_back(CallFrame(&func));
+    _callStack.emplace_back(&func);
     return _callStack.back();
 }
 
diff --git a/librender/cairo/PathParser.cpp b/librender/cairo/PathParser.cpp
index 1dcca6a..2fbba9a 100644
--- a/librender/cairo/PathParser.cpp
+++ b/librender/cairo/PathParser.cpp
@@ -63,12 +63,12 @@ PathParser::run(const SWFCxForm& cx, const SWFMatrix& 
/*mat*/)
 
     int leftfill = _paths[i].getLeftFill();
     if (leftfill) {
-      unipathvec[leftfill-1].push_front(UnivocalPath(&_paths[i], 
UnivocalPath::FILL_LEFT));
+      unipathvec[leftfill-1].emplace_front(&_paths[i], 
UnivocalPath::FILL_LEFT);
     }
 
     int rightfill = _paths[i].getRightFill();
     if (rightfill) {
-      unipathvec[rightfill-1].push_front(UnivocalPath(&_paths[i], 
UnivocalPath::FILL_RIGHT));
+      unipathvec[rightfill-1].emplace_front(&_paths[i], 
UnivocalPath::FILL_RIGHT);
     }
   }
 
diff --git a/libsound/StreamingSoundData.cpp b/libsound/StreamingSoundData.cpp
index f5b9ef0..1e10fc8 100644
--- a/libsound/StreamingSoundData.cpp
+++ b/libsound/StreamingSoundData.cpp
@@ -40,7 +40,7 @@ StreamingSoundData::append(std::unique_ptr<SimpleBuffer> data,
 {
     assert(data.get());
     _buffers.push_back(data.release());
-    _blockData.push_back(BlockData(sampleCount, seekSamples));
+    _blockData.emplace_back(sampleCount, seekSamples);
     assert(_blockData.size() == _buffers.size());
     return _buffers.size() - 1;
 }

http://git.savannah.gnu.org/cgit//commit/?id=0dfed8c40f72ac97bbec69fd8b7ca670e5c4597d


commit 0dfed8c40f72ac97bbec69fd8b7ca670e5c4597d
Author: Bastiaan Jacques <address@hidden>
Date:   Thu May 29 11:59:10 2014 +0200

    Note GCC dependency and plugin fixes.

diff --git a/NEWS b/NEWS
index b950974..dc3d70a 100644
--- a/NEWS
+++ b/NEWS
@@ -4,15 +4,18 @@ YYYY/MM/DD
 Caveats:
 * The in-tree copy of jemalloc has been removed in preference to linking
   the system-installed jemalloc library.
-* The minimum required version of FFMPEG/libavcodec (if available) is 53.35.0.
+* The minimum required version of FFMPEG/libavcodec (if available) is
+  53.35.0.
 * Extensions support is now disabled by default.
+* The minimum GCC version required to build Gnash is 4.6.0.
 
 Improvements since 0.8.10 release are:
 
  * Fix opening of external URL with Gnash Standalone (#31833)
  * Stability fixes in image handling, (CVE-2012-1175, #39388, #37629).
- * Stability fixes in parsing (#34686) and ActionScript handling (#39385, 
#39404).
- * NPAPI Plugin stability fix (#36002).
+ * Stability fixes in parsing (#34686) and ActionScript handling (#39385,
+   #39404).
+ * NPAPI Plugin stability fix (#36002, #42199) and a file descriptor leak.
  * Improved NetStream ActionScript class support.
  * Add support for IPv6 [TODO: affects Socket/XML, and what else?].
  * Fix build against recent Boost, FFMPEG and libav.

-----------------------------------------------------------------------

Summary of changes:
 NEWS                                          |    9 ++++++---
 libbase/Point2d.h                             |    2 +-
 libbase/URL.cpp                               |    2 +-
 libcore/Font.cpp                              |    2 +-
 libcore/Function.h                            |    2 +-
 libcore/Geometry.h                            |   17 ++++++++---------
 libcore/asobj/Array_as.cpp                    |    2 +-
 libcore/asobj/MovieClip_as.cpp                |    2 +-
 libcore/asobj/flash/display/BitmapData_as.cpp |    2 +-
 libcore/movie_root.cpp                        |   16 ++++++++--------
 libcore/vm/VM.cpp                             |    2 +-
 librender/cairo/PathParser.cpp                |    4 ++--
 libsound/StreamingSoundData.cpp               |    2 +-
 13 files changed, 33 insertions(+), 31 deletions(-)


hooks/post-receive
-- 
Gnash



reply via email to

[Prev in Thread] Current Thread [Next in Thread]