 Chromium Code Reviews
 Chromium Code Reviews Issue 22184004:
  Desugar bitwise negation into XOR and kill all UnaryOp stuff.  (Closed) 
  Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
    
  
    Issue 22184004:
  Desugar bitwise negation into XOR and kill all UnaryOp stuff.  (Closed) 
  Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge| Index: src/objects.h | 
| diff --git a/src/objects.h b/src/objects.h | 
| index 3c7037dbe83bba2a49e3dcb40a5013d69f72dc80..d50e8ee7a5853d051ab6430430f58677843bc9df 100644 | 
| --- a/src/objects.h | 
| +++ b/src/objects.h | 
| @@ -4990,10 +4990,6 @@ class Code: public HeapObject { | 
| inline CheckType check_type(); | 
| inline void set_check_type(CheckType value); | 
| - // [type-recording unary op type]: For kind UNARY_OP_IC. | 
| 
Michael Starzinger
2013/08/06 08:12:06
It should be possible to remove the UNARY_OP_IC fr
 
Sven Panne
2013/08/06 13:33:38
Done.
 | 
| - inline byte unary_op_type(); | 
| - inline void set_unary_op_type(byte value); | 
| - | 
| // [to_boolean_foo]: For kind TO_BOOLEAN_IC tells what state the stub is in. | 
| inline byte to_boolean_state(); | 
| @@ -5232,9 +5228,6 @@ class Code: public HeapObject { | 
| // KindSpecificFlags1 layout (STUB and OPTIMIZED_FUNCTION) | 
| static const int kStackSlotsFirstBit = 0; | 
| static const int kStackSlotsBitCount = 24; | 
| - static const int kUnaryOpTypeFirstBit = | 
| - kStackSlotsFirstBit + kStackSlotsBitCount; | 
| - static const int kUnaryOpTypeBitCount = 3; | 
| static const int kHasFunctionCacheFirstBit = | 
| kStackSlotsFirstBit + kStackSlotsBitCount; | 
| static const int kHasFunctionCacheBitCount = 1; | 
| @@ -5243,15 +5236,12 @@ class Code: public HeapObject { | 
| static const int kMarkedForDeoptimizationBitCount = 1; | 
| STATIC_ASSERT(kStackSlotsFirstBit + kStackSlotsBitCount <= 32); | 
| - STATIC_ASSERT(kUnaryOpTypeFirstBit + kUnaryOpTypeBitCount <= 32); | 
| STATIC_ASSERT(kHasFunctionCacheFirstBit + kHasFunctionCacheBitCount <= 32); | 
| STATIC_ASSERT(kMarkedForDeoptimizationFirstBit + | 
| kMarkedForDeoptimizationBitCount <= 32); | 
| class StackSlotsField: public BitField<int, | 
| kStackSlotsFirstBit, kStackSlotsBitCount> {}; // NOLINT | 
| - class UnaryOpTypeField: public BitField<int, | 
| - kUnaryOpTypeFirstBit, kUnaryOpTypeBitCount> {}; // NOLINT | 
| class HasFunctionCacheField: public BitField<bool, | 
| kHasFunctionCacheFirstBit, kHasFunctionCacheBitCount> {}; // NOLINT | 
| class MarkedForDeoptimizationField: public BitField<bool, |