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 3757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3768 | 3768 |
3769 | 3769 |
3770 inline void Code::set_is_crankshafted(bool value) { | 3770 inline void Code::set_is_crankshafted(bool value) { |
3771 int previous = READ_UINT32_FIELD(this, kKindSpecificFlags2Offset); | 3771 int previous = READ_UINT32_FIELD(this, kKindSpecificFlags2Offset); |
3772 int updated = IsCrankshaftedField::update(previous, value); | 3772 int updated = IsCrankshaftedField::update(previous, value); |
3773 WRITE_UINT32_FIELD(this, kKindSpecificFlags2Offset, updated); | 3773 WRITE_UINT32_FIELD(this, kKindSpecificFlags2Offset, updated); |
3774 } | 3774 } |
3775 | 3775 |
3776 | 3776 |
3777 int Code::major_key() { | 3777 int Code::major_key() { |
3778 ASSERT(kind() == STUB || | 3778 ASSERT(kind() == STUB || |
ulan
2013/09/30 13:35:00
Missing kind() == HANDLER ||
Toon Verwaest
2013/09/30 13:51:14
Done.
| |
3779 kind() == BINARY_OP_IC || | 3779 kind() == BINARY_OP_IC || |
3780 kind() == COMPARE_IC || | 3780 kind() == COMPARE_IC || |
3781 kind() == COMPARE_NIL_IC || | 3781 kind() == COMPARE_NIL_IC || |
3782 kind() == STORE_IC || | 3782 kind() == STORE_IC || |
3783 kind() == LOAD_IC || | 3783 kind() == LOAD_IC || |
3784 kind() == KEYED_LOAD_IC || | 3784 kind() == KEYED_LOAD_IC || |
3785 kind() == TO_BOOLEAN_IC); | 3785 kind() == TO_BOOLEAN_IC); |
3786 return StubMajorKeyField::decode( | 3786 return StubMajorKeyField::decode( |
3787 READ_UINT32_FIELD(this, kKindSpecificFlags2Offset)); | 3787 READ_UINT32_FIELD(this, kKindSpecificFlags2Offset)); |
3788 } | 3788 } |
3789 | 3789 |
3790 | 3790 |
3791 void Code::set_major_key(int major) { | 3791 void Code::set_major_key(int major) { |
3792 ASSERT(kind() == STUB || | 3792 ASSERT(kind() == STUB || |
3793 kind() == HANDLER || | |
3793 kind() == BINARY_OP_IC || | 3794 kind() == BINARY_OP_IC || |
3794 kind() == COMPARE_IC || | 3795 kind() == COMPARE_IC || |
3795 kind() == COMPARE_NIL_IC || | 3796 kind() == COMPARE_NIL_IC || |
3796 kind() == LOAD_IC || | 3797 kind() == LOAD_IC || |
3797 kind() == KEYED_LOAD_IC || | 3798 kind() == KEYED_LOAD_IC || |
3798 kind() == STORE_IC || | 3799 kind() == STORE_IC || |
3799 kind() == KEYED_STORE_IC || | 3800 kind() == KEYED_STORE_IC || |
3800 kind() == TO_BOOLEAN_IC); | 3801 kind() == TO_BOOLEAN_IC); |
3801 ASSERT(0 <= major && major < 256); | 3802 ASSERT(0 <= major && major < 256); |
3802 int previous = READ_UINT32_FIELD(this, kKindSpecificFlags2Offset); | 3803 int previous = READ_UINT32_FIELD(this, kKindSpecificFlags2Offset); |
(...skipping 2448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
6251 #undef WRITE_UINT32_FIELD | 6252 #undef WRITE_UINT32_FIELD |
6252 #undef READ_SHORT_FIELD | 6253 #undef READ_SHORT_FIELD |
6253 #undef WRITE_SHORT_FIELD | 6254 #undef WRITE_SHORT_FIELD |
6254 #undef READ_BYTE_FIELD | 6255 #undef READ_BYTE_FIELD |
6255 #undef WRITE_BYTE_FIELD | 6256 #undef WRITE_BYTE_FIELD |
6256 | 6257 |
6257 | 6258 |
6258 } } // namespace v8::internal | 6259 } } // namespace v8::internal |
6259 | 6260 |
6260 #endif // V8_OBJECTS_INL_H_ | 6261 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |