Hey, 

Recently we started to get an error when building the main branch on debug 
mode.
The error we get:

```
../../src/wasm/wasm-module.cc:618:3: error: static assertion failed due to 
requirement 'sizeof(v8::internal::wasm::WasmModule) == 848': Update 
{EstimateCurrentMemoryConsumption} when adding fields to WasmModule
  618 |   UPDATE_WHEN_CLASS_CHANGES(WasmModule, 848);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../src/wasm/std-object-sizes.h:69:17: note: expanded from macro 
'UPDATE_WHEN_CLASS_CHANGES'
   69 |   static_assert(sizeof(classname) == size,                         
      \
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~
../../src/wasm/wasm-module.cc:618:3: note: expression evaluates to '896 == 
848'
  618 |   UPDATE_WHEN_CLASS_CHANGES(WasmModule, 848);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../src/wasm/std-object-sizes.h:69:35: note: expanded from macro 
'UPDATE_WHEN_CLASS_CHANGES'
   69 |   static_assert(sizeof(classname) == size,                         
      \
      |                 ~~~~~~~~~~~~~~~~~~^~~~~~~
../../src/wasm/wasm-module.cc:673:3: error: static assertion failed due to 
requirement 'sizeof(v8::internal::wasm::TypeFeedbackStorage) == 160': 
Update {EstimateCurrentMemoryConsumption} when adding fields to 
TypeFeedbackStorage
  673 |   UPDATE_WHEN_CLASS_CHANGES(TypeFeedbackStorage, 160);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../src/wasm/std-object-sizes.h:69:17: note: expanded from macro 
'UPDATE_WHEN_CLASS_CHANGES'
   69 |   static_assert(sizeof(classname) == size,                         
      \
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~
../../src/wasm/wasm-module.cc:673:3: note: expression evaluates to '176 == 
160'
  673 |   UPDATE_WHEN_CLASS_CHANGES(TypeFeedbackStorage, 160);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../src/wasm/std-object-sizes.h:69:35: note: expanded from macro 
'UPDATE_WHEN_CLASS_CHANGES'
   69 |   static_assert(sizeof(classname) == size,                         
      \
      |                 ~~~~~~~~~~~~~~~~~~^~~~~~~
../../src/wasm/wasm-module.cc:691:3: error: static assertion failed due to 
requirement 'sizeof(v8::internal::wasm::WasmModule) == 848': Update 
{EstimateCurrentMemoryConsumption} when adding fields to WasmModule
  691 |   UPDATE_WHEN_CLASS_CHANGES(WasmModule, 848);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../src/wasm/std-object-sizes.h:69:17: note: expanded from macro 
'UPDATE_WHEN_CLASS_CHANGES'
   69 |   static_assert(sizeof(classname) == size,                         
      \
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~
../../src/wasm/wasm-module.cc:691:3: note: expression evaluates to '896 == 
848'
  691 |   UPDATE_WHEN_CLASS_CHANGES(WasmModule, 848);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../src/wasm/std-object-sizes.h:69:35: note: expanded from macro 
'UPDATE_WHEN_CLASS_CHANGES'
   69 |   static_assert(sizeof(classname) == size,                         
      \
      |                 ~~~~~~~~~~~~~~~~~~^~~~~~~
3 errors generated.
```

We do not get this error on official version or on release build. I was 
wondering if we are doing something wrong or is it something that is broken 
currently?

Thanks,
Meir.

Disclaimer

The information contained in this communication from the sender is 
confidential. It is intended solely for use by the recipient and others 
authorized to receive it. If you are not the recipient, you are hereby notified 
that any disclosure, copying, distribution or taking action in relation of the 
contents of this information is strictly prohibited and may be unlawful.

This email has been scanned for viruses and malware, and may have been 
automatically archived by Mimecast Ltd, an innovator in Software as a Service 
(SaaS) for business. Providing a safer and more useful place for your human 
generated data. Specializing in; Security, archiving and compliance. To find 
out more visit the Mimecast website.

-- 
-- 
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- 
You received this message because you are subscribed to the Google Groups 
"v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/v8-dev/4f3e1cfa-7329-4d69-bbd4-54861b03ed23n%40googlegroups.com.

Reply via email to