| OLD | NEW |
| 1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 2772 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2783 inline byte* entry(); | 2783 inline byte* entry(); |
| 2784 | 2784 |
| 2785 // Returns true if pc is inside this object's instructions. | 2785 // Returns true if pc is inside this object's instructions. |
| 2786 inline bool contains(byte* pc); | 2786 inline bool contains(byte* pc); |
| 2787 | 2787 |
| 2788 // Returns the address of the scope information. | 2788 // Returns the address of the scope information. |
| 2789 inline byte* sinfo_start(); | 2789 inline byte* sinfo_start(); |
| 2790 | 2790 |
| 2791 // Relocate the code by delta bytes. Called to signal that this code | 2791 // Relocate the code by delta bytes. Called to signal that this code |
| 2792 // object has been moved by delta bytes. | 2792 // object has been moved by delta bytes. |
| 2793 void Relocate(int delta); | 2793 void Relocate(intptr_t delta); |
| 2794 | 2794 |
| 2795 // Migrate code described by desc. | 2795 // Migrate code described by desc. |
| 2796 void CopyFrom(const CodeDesc& desc); | 2796 void CopyFrom(const CodeDesc& desc); |
| 2797 | 2797 |
| 2798 // Returns the object size for a given body and sinfo size (Used for | 2798 // Returns the object size for a given body and sinfo size (Used for |
| 2799 // allocation). | 2799 // allocation). |
| 2800 static int SizeFor(int body_size, int sinfo_size) { | 2800 static int SizeFor(int body_size, int sinfo_size) { |
| 2801 ASSERT_SIZE_TAG_ALIGNED(body_size); | 2801 ASSERT_SIZE_TAG_ALIGNED(body_size); |
| 2802 ASSERT_SIZE_TAG_ALIGNED(sinfo_size); | 2802 ASSERT_SIZE_TAG_ALIGNED(sinfo_size); |
| 2803 return RoundUp(kHeaderSize + body_size + sinfo_size, kCodeAlignment); | 2803 return RoundUp(kHeaderSize + body_size + sinfo_size, kCodeAlignment); |
| (...skipping 2218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5022 } else { | 5022 } else { |
| 5023 value &= ~(1 << bit_position); | 5023 value &= ~(1 << bit_position); |
| 5024 } | 5024 } |
| 5025 return value; | 5025 return value; |
| 5026 } | 5026 } |
| 5027 }; | 5027 }; |
| 5028 | 5028 |
| 5029 } } // namespace v8::internal | 5029 } } // namespace v8::internal |
| 5030 | 5030 |
| 5031 #endif // V8_OBJECTS_H_ | 5031 #endif // V8_OBJECTS_H_ |
| OLD | NEW |