| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 // | 4 // |
| 5 // Review notes: | 5 // Review notes: |
| 6 // | 6 // |
| 7 // - The use of macros in these inline functions may seem superfluous | 7 // - The use of macros in these inline functions may seem superfluous |
| 8 // but it is absolutely needed to make sure gcc generates optimal | 8 // but it is absolutely needed to make sure gcc generates optimal |
| 9 // code. gcc is not happy when attempting to inline too deep. | 9 // code. gcc is not happy when attempting to inline too deep. |
| 10 // | 10 // |
| (...skipping 6440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6451 } | 6451 } |
| 6452 | 6452 |
| 6453 | 6453 |
| 6454 void Code::set_stub_key(uint32_t key) { | 6454 void Code::set_stub_key(uint32_t key) { |
| 6455 DCHECK(IsCodeStubOrIC()); | 6455 DCHECK(IsCodeStubOrIC()); |
| 6456 set_raw_type_feedback_info(Smi::FromInt(key)); | 6456 set_raw_type_feedback_info(Smi::FromInt(key)); |
| 6457 } | 6457 } |
| 6458 | 6458 |
| 6459 | 6459 |
| 6460 ACCESSORS(Code, gc_metadata, Object, kGCMetadataOffset) | 6460 ACCESSORS(Code, gc_metadata, Object, kGCMetadataOffset) |
| 6461 INT_ACCESSORS(Code, ic_age, kICAgeOffset) |
| 6461 | 6462 |
| 6462 | 6463 |
| 6463 byte* Code::instruction_start() { | 6464 byte* Code::instruction_start() { |
| 6464 return FIELD_ADDR(this, kHeaderSize); | 6465 return FIELD_ADDR(this, kHeaderSize); |
| 6465 } | 6466 } |
| 6466 | 6467 |
| 6467 | 6468 |
| 6468 byte* Code::instruction_end() { | 6469 byte* Code::instruction_end() { |
| 6469 return instruction_start() + instruction_size(); | 6470 return instruction_start() + instruction_size(); |
| 6470 } | 6471 } |
| (...skipping 1162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7633 #undef READ_SHORT_FIELD | 7634 #undef READ_SHORT_FIELD |
| 7634 #undef WRITE_SHORT_FIELD | 7635 #undef WRITE_SHORT_FIELD |
| 7635 #undef READ_BYTE_FIELD | 7636 #undef READ_BYTE_FIELD |
| 7636 #undef WRITE_BYTE_FIELD | 7637 #undef WRITE_BYTE_FIELD |
| 7637 #undef NOBARRIER_READ_BYTE_FIELD | 7638 #undef NOBARRIER_READ_BYTE_FIELD |
| 7638 #undef NOBARRIER_WRITE_BYTE_FIELD | 7639 #undef NOBARRIER_WRITE_BYTE_FIELD |
| 7639 | 7640 |
| 7640 } } // namespace v8::internal | 7641 } } // namespace v8::internal |
| 7641 | 7642 |
| 7642 #endif // V8_OBJECTS_INL_H_ | 7643 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |