OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 3865 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3876 | 3876 |
3877 JSMessageObject* JSMessageObject::cast(Object* obj) { | 3877 JSMessageObject* JSMessageObject::cast(Object* obj) { |
3878 ASSERT(obj->IsJSMessageObject()); | 3878 ASSERT(obj->IsJSMessageObject()); |
3879 ASSERT(HeapObject::cast(obj)->Size() == JSMessageObject::kSize); | 3879 ASSERT(HeapObject::cast(obj)->Size() == JSMessageObject::kSize); |
3880 return reinterpret_cast<JSMessageObject*>(obj); | 3880 return reinterpret_cast<JSMessageObject*>(obj); |
3881 } | 3881 } |
3882 | 3882 |
3883 | 3883 |
3884 INT_ACCESSORS(Code, instruction_size, kInstructionSizeOffset) | 3884 INT_ACCESSORS(Code, instruction_size, kInstructionSizeOffset) |
3885 ACCESSORS(Code, relocation_info, ByteArray, kRelocationInfoOffset) | 3885 ACCESSORS(Code, relocation_info, ByteArray, kRelocationInfoOffset) |
3886 ACCESSORS(Code, handler_table, FixedArray, kHandlerTableOffset) | |
3887 ACCESSORS(Code, deoptimization_data, FixedArray, kDeoptimizationDataOffset) | 3886 ACCESSORS(Code, deoptimization_data, FixedArray, kDeoptimizationDataOffset) |
3888 ACCESSORS(Code, next_code_flushing_candidate, | 3887 ACCESSORS(Code, next_code_flushing_candidate, |
3889 Object, kNextCodeFlushingCandidateOffset) | 3888 Object, kNextCodeFlushingCandidateOffset) |
3890 | 3889 |
3891 | 3890 |
3892 byte* Code::instruction_start() { | 3891 byte* Code::instruction_start() { |
3893 return FIELD_ADDR(this, kHeaderSize); | 3892 return FIELD_ADDR(this, kHeaderSize); |
3894 } | 3893 } |
3895 | 3894 |
3896 | 3895 |
(...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4606 #undef WRITE_INT_FIELD | 4605 #undef WRITE_INT_FIELD |
4607 #undef READ_SHORT_FIELD | 4606 #undef READ_SHORT_FIELD |
4608 #undef WRITE_SHORT_FIELD | 4607 #undef WRITE_SHORT_FIELD |
4609 #undef READ_BYTE_FIELD | 4608 #undef READ_BYTE_FIELD |
4610 #undef WRITE_BYTE_FIELD | 4609 #undef WRITE_BYTE_FIELD |
4611 | 4610 |
4612 | 4611 |
4613 } } // namespace v8::internal | 4612 } } // namespace v8::internal |
4614 | 4613 |
4615 #endif // V8_OBJECTS_INL_H_ | 4614 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |