mirror of
https://github.com/servo/servo.git
synced 2025-08-14 18:05:36 +01:00
Box more specified values to bring SpecifiedValue/PropertyDeclaration sizes down to 24/32 bytes.
MozReview-Commit-ID: xstAfjVQqi
This commit is contained in:
parent
8f3f8098c3
commit
97dd3a1b08
12 changed files with 58 additions and 50 deletions
|
@ -2451,7 +2451,7 @@ macro_rules! longhand_properties_idents {
|
|||
pub fn test_size_of_property_declaration() {
|
||||
use std::mem::size_of;
|
||||
|
||||
let old = 40;
|
||||
let old = 32;
|
||||
let new = size_of::<PropertyDeclaration>();
|
||||
if new < old {
|
||||
panic!("Your changes have decreased the stack size of PropertyDeclaration enum from {} to {}. \
|
||||
|
@ -2471,7 +2471,7 @@ pub fn test_size_of_property_declaration() {
|
|||
#[cfg(feature = "testing")]
|
||||
pub fn test_size_of_specified_values() {
|
||||
use std::mem::size_of;
|
||||
let threshold = 32;
|
||||
let threshold = 24;
|
||||
|
||||
let mut longhands = vec![];
|
||||
% for property in data.longhands:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue