Revision: 23146
Author: [email protected]
Date: Mon Aug 18 09:12:12 2014 UTC
Log: Work-around weird GCC 4.6 linker issue with SmiTagging template.
[email protected]
Review URL: https://codereview.chromium.org/485653002
http://code.google.com/p/v8/source/detail?r=23146
Modified:
/branches/bleeding_edge/src/compiler/change-lowering.cc
=======================================
--- /branches/bleeding_edge/src/compiler/change-lowering.cc Mon Aug 18
06:54:07 2014 UTC
+++ /branches/bleeding_edge/src/compiler/change-lowering.cc Mon Aug 18
09:12:12 2014 UTC
@@ -42,8 +42,14 @@
Node* ChangeLowering::SmiShiftBitsConstant() {
- const int smi_shift_size = (machine()->is64() ?
SmiTagging<8>::kSmiShiftSize
- :
SmiTagging<4>::kSmiShiftSize);
+ // TODO(turbofan): Work-around for weird GCC 4.6 linker issue:
+ // src/compiler/change-lowering.cc:46: undefined reference to
+ // `v8::internal::SmiTagging<4u>::kSmiShiftSize'
+ // src/compiler/change-lowering.cc:46: undefined reference to
+ // `v8::internal::SmiTagging<8u>::kSmiShiftSize'
+ STATIC_ASSERT(SmiTagging<4>::kSmiShiftSize == 0);
+ STATIC_ASSERT(SmiTagging<8>::kSmiShiftSize == 31);
+ const int smi_shift_size = machine()->is64() ? 31 : 0;
return jsgraph()->Int32Constant(smi_shift_size + kSmiTagSize);
}
--
--
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].
For more options, visit https://groups.google.com/d/optout.