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 3769 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3780 WRITE_UINT32_FIELD(this, kKindSpecificFlags2Offset, updated); | 3780 WRITE_UINT32_FIELD(this, kKindSpecificFlags2Offset, updated); |
3781 } | 3781 } |
3782 | 3782 |
3783 | 3783 |
3784 int Code::major_key() { | 3784 int Code::major_key() { |
3785 ASSERT(kind() == STUB || | 3785 ASSERT(kind() == STUB || |
3786 kind() == UNARY_OP_IC || | 3786 kind() == UNARY_OP_IC || |
3787 kind() == BINARY_OP_IC || | 3787 kind() == BINARY_OP_IC || |
3788 kind() == COMPARE_IC || | 3788 kind() == COMPARE_IC || |
3789 kind() == COMPARE_NIL_IC || | 3789 kind() == COMPARE_NIL_IC || |
3790 kind() == STORE_IC || | |
3791 kind() == LOAD_IC || | 3790 kind() == LOAD_IC || |
3792 kind() == KEYED_LOAD_IC || | 3791 kind() == KEYED_LOAD_IC || |
3793 kind() == TO_BOOLEAN_IC); | 3792 kind() == TO_BOOLEAN_IC); |
3794 return StubMajorKeyField::decode( | 3793 return StubMajorKeyField::decode( |
3795 READ_UINT32_FIELD(this, kKindSpecificFlags2Offset)); | 3794 READ_UINT32_FIELD(this, kKindSpecificFlags2Offset)); |
3796 } | 3795 } |
3797 | 3796 |
3798 | 3797 |
3799 void Code::set_major_key(int major) { | 3798 void Code::set_major_key(int major) { |
3800 ASSERT(kind() == STUB || | 3799 ASSERT(kind() == STUB || |
(...skipping 2378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6179 #undef WRITE_UINT32_FIELD | 6178 #undef WRITE_UINT32_FIELD |
6180 #undef READ_SHORT_FIELD | 6179 #undef READ_SHORT_FIELD |
6181 #undef WRITE_SHORT_FIELD | 6180 #undef WRITE_SHORT_FIELD |
6182 #undef READ_BYTE_FIELD | 6181 #undef READ_BYTE_FIELD |
6183 #undef WRITE_BYTE_FIELD | 6182 #undef WRITE_BYTE_FIELD |
6184 | 6183 |
6185 | 6184 |
6186 } } // namespace v8::internal | 6185 } } // namespace v8::internal |
6187 | 6186 |
6188 #endif // V8_OBJECTS_INL_H_ | 6187 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |