OLD | NEW |
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
2 // All Rights Reserved. | 2 // All Rights Reserved. |
3 // | 3 // |
4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
5 // modification, are permitted provided that the following conditions | 5 // modification, are permitted provided that the following conditions |
6 // are met: | 6 // are met: |
7 // | 7 // |
8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
10 // | 10 // |
(...skipping 2982 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2993 RecordConstPool(size); | 2993 RecordConstPool(size); |
2994 | 2994 |
2995 // Emit jump over constant pool if necessary. | 2995 // Emit jump over constant pool if necessary. |
2996 Label after_pool; | 2996 Label after_pool; |
2997 if (require_jump) { | 2997 if (require_jump) { |
2998 b(&after_pool); | 2998 b(&after_pool); |
2999 } | 2999 } |
3000 | 3000 |
3001 // Put down constant pool marker "Undefined instruction". | 3001 // Put down constant pool marker "Undefined instruction". |
3002 // The data size helps disassembly know what to print. | 3002 // The data size helps disassembly know what to print. |
3003 emit(kConstantPoolMarker | EncodeConstantPoolLength(size_after_marker)); | 3003 emit(kConstantPoolMarker | |
| 3004 EncodeConstantPoolLength(size_after_marker / kPointerSize)); |
3004 | 3005 |
3005 if (require_64_bit_align) { | 3006 if (require_64_bit_align) { |
3006 emit(kConstantPoolMarker); | 3007 emit(kConstantPoolMarker); |
3007 } | 3008 } |
3008 | 3009 |
3009 // Emit 64-bit constant pool entries first: their range is smaller than | 3010 // Emit 64-bit constant pool entries first: their range is smaller than |
3010 // 32-bit entries. | 3011 // 32-bit entries. |
3011 for (int i = 0; i < num_pending_reloc_info_; i++) { | 3012 for (int i = 0; i < num_pending_reloc_info_; i++) { |
3012 RelocInfo& rinfo = pending_reloc_info_[i]; | 3013 RelocInfo& rinfo = pending_reloc_info_[i]; |
3013 | 3014 |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3083 | 3084 |
3084 // Since a constant pool was just emitted, move the check offset forward by | 3085 // Since a constant pool was just emitted, move the check offset forward by |
3085 // the standard interval. | 3086 // the standard interval. |
3086 next_buffer_check_ = pc_offset() + kCheckPoolInterval; | 3087 next_buffer_check_ = pc_offset() + kCheckPoolInterval; |
3087 } | 3088 } |
3088 | 3089 |
3089 | 3090 |
3090 } } // namespace v8::internal | 3091 } } // namespace v8::internal |
3091 | 3092 |
3092 #endif // V8_TARGET_ARCH_ARM | 3093 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |