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 4024 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4035 ASSERT(obj->IsJSMessageObject()); | 4035 ASSERT(obj->IsJSMessageObject()); |
4036 ASSERT(HeapObject::cast(obj)->Size() == JSMessageObject::kSize); | 4036 ASSERT(HeapObject::cast(obj)->Size() == JSMessageObject::kSize); |
4037 return reinterpret_cast<JSMessageObject*>(obj); | 4037 return reinterpret_cast<JSMessageObject*>(obj); |
4038 } | 4038 } |
4039 | 4039 |
4040 | 4040 |
4041 INT_ACCESSORS(Code, instruction_size, kInstructionSizeOffset) | 4041 INT_ACCESSORS(Code, instruction_size, kInstructionSizeOffset) |
4042 ACCESSORS(Code, relocation_info, ByteArray, kRelocationInfoOffset) | 4042 ACCESSORS(Code, relocation_info, ByteArray, kRelocationInfoOffset) |
4043 ACCESSORS(Code, handler_table, FixedArray, kHandlerTableOffset) | 4043 ACCESSORS(Code, handler_table, FixedArray, kHandlerTableOffset) |
4044 ACCESSORS(Code, deoptimization_data, FixedArray, kDeoptimizationDataOffset) | 4044 ACCESSORS(Code, deoptimization_data, FixedArray, kDeoptimizationDataOffset) |
4045 ACCESSORS(Code, next_code_flushing_candidate, | 4045 ACCESSORS(Code, gc_metadata, Object, kGCMetadataOffset) |
4046 Object, kNextCodeFlushingCandidateOffset) | |
4047 | 4046 |
4048 | 4047 |
4049 byte* Code::instruction_start() { | 4048 byte* Code::instruction_start() { |
4050 return FIELD_ADDR(this, kHeaderSize); | 4049 return FIELD_ADDR(this, kHeaderSize); |
4051 } | 4050 } |
4052 | 4051 |
4053 | 4052 |
4054 byte* Code::instruction_end() { | 4053 byte* Code::instruction_end() { |
4055 return instruction_start() + instruction_size(); | 4054 return instruction_start() + instruction_size(); |
4056 } | 4055 } |
(...skipping 726 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4783 #undef WRITE_INT_FIELD | 4782 #undef WRITE_INT_FIELD |
4784 #undef READ_SHORT_FIELD | 4783 #undef READ_SHORT_FIELD |
4785 #undef WRITE_SHORT_FIELD | 4784 #undef WRITE_SHORT_FIELD |
4786 #undef READ_BYTE_FIELD | 4785 #undef READ_BYTE_FIELD |
4787 #undef WRITE_BYTE_FIELD | 4786 #undef WRITE_BYTE_FIELD |
4788 | 4787 |
4789 | 4788 |
4790 } } // namespace v8::internal | 4789 } } // namespace v8::internal |
4791 | 4790 |
4792 #endif // V8_OBJECTS_INL_H_ | 4791 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |