| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 3133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3144 void Map::set_owns_descriptors(bool is_shared) { | 3144 void Map::set_owns_descriptors(bool is_shared) { |
| 3145 set_bit_field3(OwnsDescriptors::update(bit_field3(), is_shared)); | 3145 set_bit_field3(OwnsDescriptors::update(bit_field3(), is_shared)); |
| 3146 } | 3146 } |
| 3147 | 3147 |
| 3148 | 3148 |
| 3149 bool Map::owns_descriptors() { | 3149 bool Map::owns_descriptors() { |
| 3150 return OwnsDescriptors::decode(bit_field3()); | 3150 return OwnsDescriptors::decode(bit_field3()); |
| 3151 } | 3151 } |
| 3152 | 3152 |
| 3153 | 3153 |
| 3154 void Map::set_is_observed(bool is_observed) { |
| 3155 set_bit_field3(IsObserved::update(bit_field3(), is_observed)); |
| 3156 } |
| 3157 |
| 3158 |
| 3159 bool Map::is_observed() { |
| 3160 return IsObserved::decode(bit_field3()); |
| 3161 } |
| 3162 |
| 3163 |
| 3154 void Code::set_flags(Code::Flags flags) { | 3164 void Code::set_flags(Code::Flags flags) { |
| 3155 STATIC_ASSERT(Code::NUMBER_OF_KINDS <= KindField::kMax + 1); | 3165 STATIC_ASSERT(Code::NUMBER_OF_KINDS <= KindField::kMax + 1); |
| 3156 // Make sure that all call stubs have an arguments count. | 3166 // Make sure that all call stubs have an arguments count. |
| 3157 ASSERT((ExtractKindFromFlags(flags) != CALL_IC && | 3167 ASSERT((ExtractKindFromFlags(flags) != CALL_IC && |
| 3158 ExtractKindFromFlags(flags) != KEYED_CALL_IC) || | 3168 ExtractKindFromFlags(flags) != KEYED_CALL_IC) || |
| 3159 ExtractArgumentsCountFromFlags(flags) >= 0); | 3169 ExtractArgumentsCountFromFlags(flags) >= 0); |
| 3160 WRITE_INT_FIELD(this, kFlagsOffset, flags); | 3170 WRITE_INT_FIELD(this, kFlagsOffset, flags); |
| 3161 } | 3171 } |
| 3162 | 3172 |
| 3163 | 3173 |
| (...skipping 2377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5541 #undef WRITE_UINT32_FIELD | 5551 #undef WRITE_UINT32_FIELD |
| 5542 #undef READ_SHORT_FIELD | 5552 #undef READ_SHORT_FIELD |
| 5543 #undef WRITE_SHORT_FIELD | 5553 #undef WRITE_SHORT_FIELD |
| 5544 #undef READ_BYTE_FIELD | 5554 #undef READ_BYTE_FIELD |
| 5545 #undef WRITE_BYTE_FIELD | 5555 #undef WRITE_BYTE_FIELD |
| 5546 | 5556 |
| 5547 | 5557 |
| 5548 } } // namespace v8::internal | 5558 } } // namespace v8::internal |
| 5549 | 5559 |
| 5550 #endif // V8_OBJECTS_INL_H_ | 5560 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |