Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(221)

Side by Side Diff: src/arm/assembler-arm.cc

Issue 14972007: ARM: fix constant pool length emitted for disassembler. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698