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

Side by Side Diff: src/arm/constants-arm.h

Issue 88303003: Avoid trying to decode the raw inline constant which is part of the aged code prologue. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years 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 | src/arm/disasm-arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 const int kConstantPoolLengthMaxMask = 0xffff; 43 const int kConstantPoolLengthMaxMask = 0xffff;
44 inline int EncodeConstantPoolLength(int length) { 44 inline int EncodeConstantPoolLength(int length) {
45 ASSERT((length & kConstantPoolLengthMaxMask) == length); 45 ASSERT((length & kConstantPoolLengthMaxMask) == length);
46 return ((length & 0xfff0) << 4) | (length & 0xf); 46 return ((length & 0xfff0) << 4) | (length & 0xf);
47 } 47 }
48 inline int DecodeConstantPoolLength(int instr) { 48 inline int DecodeConstantPoolLength(int instr) {
49 ASSERT((instr & kConstantPoolMarkerMask) == kConstantPoolMarker); 49 ASSERT((instr & kConstantPoolMarkerMask) == kConstantPoolMarker);
50 return ((instr >> 4) & 0xfff0) | (instr & 0xf); 50 return ((instr >> 4) & 0xfff0) | (instr & 0xf);
51 } 51 }
52 52
53 // Used in code age prologue - ldr(pc, MemOperand(pc, -4))
54 const int kCodeAgeJumpInstruction = 0xe51ff004;
55
53 // Number of registers in normal ARM mode. 56 // Number of registers in normal ARM mode.
54 const int kNumRegisters = 16; 57 const int kNumRegisters = 16;
55 58
56 // VFP support. 59 // VFP support.
57 const int kNumVFPSingleRegisters = 32; 60 const int kNumVFPSingleRegisters = 32;
58 const int kNumVFPDoubleRegisters = 32; 61 const int kNumVFPDoubleRegisters = 32;
59 const int kNumVFPRegisters = kNumVFPSingleRegisters + kNumVFPDoubleRegisters; 62 const int kNumVFPRegisters = kNumVFPSingleRegisters + kNumVFPDoubleRegisters;
60 63
61 // PC is register 15. 64 // PC is register 15.
62 const int kPCRegister = 15; 65 const int kPCRegister = 15;
(...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after
761 static int Number(const char* name, bool* is_double); 764 static int Number(const char* name, bool* is_double);
762 765
763 private: 766 private:
764 static const char* names_[kNumVFPRegisters]; 767 static const char* names_[kNumVFPRegisters];
765 }; 768 };
766 769
767 770
768 } } // namespace v8::internal 771 } } // namespace v8::internal
769 772
770 #endif // V8_ARM_CONSTANTS_ARM_H_ 773 #endif // V8_ARM_CONSTANTS_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/disasm-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698