| 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 4661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4672 | 4672 |
| 4673 bool Code::marked_for_deoptimization() { | 4673 bool Code::marked_for_deoptimization() { |
| 4674 ASSERT(kind() == OPTIMIZED_FUNCTION); | 4674 ASSERT(kind() == OPTIMIZED_FUNCTION); |
| 4675 return MarkedForDeoptimizationField::decode( | 4675 return MarkedForDeoptimizationField::decode( |
| 4676 READ_UINT32_FIELD(this, kKindSpecificFlags1Offset)); | 4676 READ_UINT32_FIELD(this, kKindSpecificFlags1Offset)); |
| 4677 } | 4677 } |
| 4678 | 4678 |
| 4679 | 4679 |
| 4680 void Code::set_marked_for_deoptimization(bool flag) { | 4680 void Code::set_marked_for_deoptimization(bool flag) { |
| 4681 ASSERT(kind() == OPTIMIZED_FUNCTION); | 4681 ASSERT(kind() == OPTIMIZED_FUNCTION); |
| 4682 ASSERT(!flag || AllowDeoptimization::IsAllowed(GetIsolate())); |
| 4682 int previous = READ_UINT32_FIELD(this, kKindSpecificFlags1Offset); | 4683 int previous = READ_UINT32_FIELD(this, kKindSpecificFlags1Offset); |
| 4683 int updated = MarkedForDeoptimizationField::update(previous, flag); | 4684 int updated = MarkedForDeoptimizationField::update(previous, flag); |
| 4684 WRITE_UINT32_FIELD(this, kKindSpecificFlags1Offset, updated); | 4685 WRITE_UINT32_FIELD(this, kKindSpecificFlags1Offset, updated); |
| 4685 } | 4686 } |
| 4686 | 4687 |
| 4687 | 4688 |
| 4688 bool Code::is_weak_stub() { | 4689 bool Code::is_weak_stub() { |
| 4689 return CanBeWeakStub() && WeakStubField::decode( | 4690 return CanBeWeakStub() && WeakStubField::decode( |
| 4690 READ_UINT32_FIELD(this, kKindSpecificFlags1Offset)); | 4691 READ_UINT32_FIELD(this, kKindSpecificFlags1Offset)); |
| 4691 } | 4692 } |
| (...skipping 2343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7035 #undef READ_SHORT_FIELD | 7036 #undef READ_SHORT_FIELD |
| 7036 #undef WRITE_SHORT_FIELD | 7037 #undef WRITE_SHORT_FIELD |
| 7037 #undef READ_BYTE_FIELD | 7038 #undef READ_BYTE_FIELD |
| 7038 #undef WRITE_BYTE_FIELD | 7039 #undef WRITE_BYTE_FIELD |
| 7039 #undef NOBARRIER_READ_BYTE_FIELD | 7040 #undef NOBARRIER_READ_BYTE_FIELD |
| 7040 #undef NOBARRIER_WRITE_BYTE_FIELD | 7041 #undef NOBARRIER_WRITE_BYTE_FIELD |
| 7041 | 7042 |
| 7042 } } // namespace v8::internal | 7043 } } // namespace v8::internal |
| 7043 | 7044 |
| 7044 #endif // V8_OBJECTS_INL_H_ | 7045 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |