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 3530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3541 JSMessageObject* JSMessageObject::cast(Object* obj) { | 3541 JSMessageObject* JSMessageObject::cast(Object* obj) { |
3542 ASSERT(obj->IsJSMessageObject()); | 3542 ASSERT(obj->IsJSMessageObject()); |
3543 ASSERT(HeapObject::cast(obj)->Size() == JSMessageObject::kSize); | 3543 ASSERT(HeapObject::cast(obj)->Size() == JSMessageObject::kSize); |
3544 return reinterpret_cast<JSMessageObject*>(obj); | 3544 return reinterpret_cast<JSMessageObject*>(obj); |
3545 } | 3545 } |
3546 | 3546 |
3547 | 3547 |
3548 INT_ACCESSORS(Code, instruction_size, kInstructionSizeOffset) | 3548 INT_ACCESSORS(Code, instruction_size, kInstructionSizeOffset) |
3549 ACCESSORS(Code, relocation_info, ByteArray, kRelocationInfoOffset) | 3549 ACCESSORS(Code, relocation_info, ByteArray, kRelocationInfoOffset) |
3550 ACCESSORS(Code, deoptimization_data, FixedArray, kDeoptimizationDataOffset) | 3550 ACCESSORS(Code, deoptimization_data, FixedArray, kDeoptimizationDataOffset) |
| 3551 ACCESSORS(Code, code_flushing_candidate, |
| 3552 Object, kCodeFlushingCandidateOffset) |
3551 | 3553 |
3552 | 3554 |
3553 byte* Code::instruction_start() { | 3555 byte* Code::instruction_start() { |
3554 return FIELD_ADDR(this, kHeaderSize); | 3556 return FIELD_ADDR(this, kHeaderSize); |
3555 } | 3557 } |
3556 | 3558 |
3557 | 3559 |
3558 byte* Code::instruction_end() { | 3560 byte* Code::instruction_end() { |
3559 return instruction_start() + instruction_size(); | 3561 return instruction_start() + instruction_size(); |
3560 } | 3562 } |
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4206 #undef WRITE_INT_FIELD | 4208 #undef WRITE_INT_FIELD |
4207 #undef READ_SHORT_FIELD | 4209 #undef READ_SHORT_FIELD |
4208 #undef WRITE_SHORT_FIELD | 4210 #undef WRITE_SHORT_FIELD |
4209 #undef READ_BYTE_FIELD | 4211 #undef READ_BYTE_FIELD |
4210 #undef WRITE_BYTE_FIELD | 4212 #undef WRITE_BYTE_FIELD |
4211 | 4213 |
4212 | 4214 |
4213 } } // namespace v8::internal | 4215 } } // namespace v8::internal |
4214 | 4216 |
4215 #endif // V8_OBJECTS_INL_H_ | 4217 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |