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 4778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4789 return Smi::cast(value)->value(); | 4789 return Smi::cast(value)->value(); |
4790 } | 4790 } |
4791 | 4791 |
4792 | 4792 |
4793 void Code::set_stub_info(int value) { | 4793 void Code::set_stub_info(int value) { |
4794 ASSERT(kind() == COMPARE_IC || kind() == BINARY_OP_IC); | 4794 ASSERT(kind() == COMPARE_IC || kind() == BINARY_OP_IC); |
4795 WRITE_FIELD(this, kTypeFeedbackInfoOffset, Smi::FromInt(value)); | 4795 WRITE_FIELD(this, kTypeFeedbackInfoOffset, Smi::FromInt(value)); |
4796 } | 4796 } |
4797 | 4797 |
4798 | 4798 |
| 4799 void Code::set_deoptimizing_functions(Object* value) { |
| 4800 ASSERT(kind() == OPTIMIZED_FUNCTION); |
| 4801 WRITE_FIELD(this, kTypeFeedbackInfoOffset, value); |
| 4802 } |
| 4803 |
| 4804 |
| 4805 Object* Code::deoptimizing_functions() { |
| 4806 ASSERT(kind() == OPTIMIZED_FUNCTION); |
| 4807 return Object::cast(READ_FIELD(this, kTypeFeedbackInfoOffset)); |
| 4808 } |
| 4809 |
| 4810 |
4799 ACCESSORS(Code, gc_metadata, Object, kGCMetadataOffset) | 4811 ACCESSORS(Code, gc_metadata, Object, kGCMetadataOffset) |
4800 INT_ACCESSORS(Code, ic_age, kICAgeOffset) | 4812 INT_ACCESSORS(Code, ic_age, kICAgeOffset) |
4801 | 4813 |
4802 | 4814 |
4803 byte* Code::instruction_start() { | 4815 byte* Code::instruction_start() { |
4804 return FIELD_ADDR(this, kHeaderSize); | 4816 return FIELD_ADDR(this, kHeaderSize); |
4805 } | 4817 } |
4806 | 4818 |
4807 | 4819 |
4808 byte* Code::instruction_end() { | 4820 byte* Code::instruction_end() { |
(...skipping 930 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5739 #undef WRITE_UINT32_FIELD | 5751 #undef WRITE_UINT32_FIELD |
5740 #undef READ_SHORT_FIELD | 5752 #undef READ_SHORT_FIELD |
5741 #undef WRITE_SHORT_FIELD | 5753 #undef WRITE_SHORT_FIELD |
5742 #undef READ_BYTE_FIELD | 5754 #undef READ_BYTE_FIELD |
5743 #undef WRITE_BYTE_FIELD | 5755 #undef WRITE_BYTE_FIELD |
5744 | 5756 |
5745 | 5757 |
5746 } } // namespace v8::internal | 5758 } } // namespace v8::internal |
5747 | 5759 |
5748 #endif // V8_OBJECTS_INL_H_ | 5760 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |