diff options
author | Ms2ger <ms2ger@gmail.com> | 2015-04-01 19:35:16 +0200 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2015-04-02 09:47:30 +0200 |
commit | bc8ed81dc1c7d37209693461bcd24d8ea386597c (patch) | |
tree | aa447069c468872e950a2ae2603dbe003513cf84 /components/script/dom | |
parent | 879c3710f4bbeda31c8a08f99e45931973f91f1c (diff) | |
download | servo-bc8ed81dc1c7d37209693461bcd24d8ea386597c.tar.gz servo-bc8ed81dc1c7d37209693461bcd24d8ea386597c.zip |
Use a larger small vector.
Diffstat (limited to 'components/script/dom')
-rw-r--r-- | components/script/dom/bindings/js.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/bindings/js.rs b/components/script/dom/bindings/js.rs index 84644a8428f..687bd59e6b0 100644 --- a/components/script/dom/bindings/js.rs +++ b/components/script/dom/bindings/js.rs @@ -57,7 +57,7 @@ use js::jsval::JSVal; use layout_interface::TrustedNodeAddress; use script_task::STACK_ROOTS; -use util::smallvec::{SmallVec, SmallVec24}; +use util::smallvec::{SmallVec, SmallVec32}; use core::nonzero::NonZero; use std::cell::{Cell, UnsafeCell}; @@ -610,7 +610,7 @@ impl<T: Assignable<U>, U: Reflectable> TemporaryPushable<T> for Vec<JS<U>> { /// See also [*Exact Stack Rooting - Storing a GCPointer on the CStack*] /// (https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Internals/GC/Exact_Stack_Rooting). pub struct RootCollection { - roots: UnsafeCell<SmallVec24<*mut JSObject>>, + roots: UnsafeCell<SmallVec32<*mut JSObject>>, } /// A pointer to a RootCollection, for use in global variables. @@ -622,7 +622,7 @@ impl RootCollection { /// Create an empty collection of roots pub fn new() -> RootCollection { RootCollection { - roots: UnsafeCell::new(SmallVec24::new()), + roots: UnsafeCell::new(SmallVec32::new()), } } |