Bug 1317033 - Baldr: give OpIter Vectors an inline capacity (r=sunfish)
authorLuke Wagner <luke@mozilla.com>
Sun, 13 Nov 2016 13:20:28 -0600
changeset 352416 ee685bfbb7d557a2b5feba3843e6ac8e986c3db4
parent 352415 7ed370dd32f5c20a5ce2f3e1c7fc4a124cf6646d
child 352417 8c158c99496d1f9dd0d7d2c434429b1831db3155
push id6795
push userjlund@mozilla.com
push dateMon, 23 Jan 2017 14:19:46 +0000
treeherdermozilla-esr52@76101b503191 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssunfish
bugs1317033
milestone52.0a1
Bug 1317033 - Baldr: give OpIter Vectors an inline capacity (r=sunfish) MozReview-Commit-ID: L22p9PXHF0O
js/src/wasm/WasmBinaryIterator.h
--- a/js/src/wasm/WasmBinaryIterator.h
+++ b/js/src/wasm/WasmBinaryIterator.h
@@ -260,18 +260,18 @@ class MOZ_STACK_CLASS OpIter : private P
     static const bool Validate = Policy::Validate;
     static const bool Output = Policy::Output;
     typedef typename Policy::Value Value;
     typedef typename Policy::ControlItem ControlItem;
 
     Decoder& d_;
     const size_t offsetInModule_;
 
-    Vector<TypeAndValue<Value>, 0, SystemAllocPolicy> valueStack_;
-    Vector<ControlStackEntry<ControlItem>, 0, SystemAllocPolicy> controlStack_;
+    Vector<TypeAndValue<Value>, 8, SystemAllocPolicy> valueStack_;
+    Vector<ControlStackEntry<ControlItem>, 8, SystemAllocPolicy> controlStack_;
     bool reachable_;
 
     DebugOnly<Op> op_;
     size_t offsetOfExpr_;
 
     MOZ_MUST_USE bool readFixedU8(uint8_t* out) {
         if (Validate)
             return d_.readFixedU8(out);