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

Side by Side Diff: src/assembler.cc

Issue 6730050: Reimplement the padding of relocation information for lazy deoptimization on ia32. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address comments. Created 9 years, 9 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 | « src/assembler.h ('k') | src/deoptimizer.h » ('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 (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 are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 133
134 const int kEmbeddedObjectTag = 0; 134 const int kEmbeddedObjectTag = 0;
135 const int kCodeTargetTag = 1; 135 const int kCodeTargetTag = 1;
136 const int kPositionTag = 2; 136 const int kPositionTag = 2;
137 const int kDefaultTag = 3; 137 const int kDefaultTag = 3;
138 138
139 const int kPCJumpTag = (1 << kExtraTagBits) - 1; 139 const int kPCJumpTag = (1 << kExtraTagBits) - 1;
140 140
141 const int kSmallPCDeltaBits = kBitsPerByte - kTagBits; 141 const int kSmallPCDeltaBits = kBitsPerByte - kTagBits;
142 const int kSmallPCDeltaMask = (1 << kSmallPCDeltaBits) - 1; 142 const int kSmallPCDeltaMask = (1 << kSmallPCDeltaBits) - 1;
143 const int RelocInfo::kMaxSmallPCDelta = kSmallPCDeltaMask;
143 144
144 const int kVariableLengthPCJumpTopTag = 1; 145 const int kVariableLengthPCJumpTopTag = 1;
145 const int kChunkBits = 7; 146 const int kChunkBits = 7;
146 const int kChunkMask = (1 << kChunkBits) - 1; 147 const int kChunkMask = (1 << kChunkBits) - 1;
147 const int kLastChunkTagBits = 1; 148 const int kLastChunkTagBits = 1;
148 const int kLastChunkTagMask = 1; 149 const int kLastChunkTagMask = 1;
149 const int kLastChunkTag = 1; 150 const int kLastChunkTag = 1;
150 151
151 152
152 const int kDataJumpTag = kPCJumpTag - 1; 153 const int kDataJumpTag = kPCJumpTag - 1;
(...skipping 900 matching lines...) Expand 10 before | Expand all | Expand 10 after
1053 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); 1054 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position);
1054 state_.written_position = state_.current_position; 1055 state_.written_position = state_.current_position;
1055 written = true; 1056 written = true;
1056 } 1057 }
1057 1058
1058 // Return whether something was written. 1059 // Return whether something was written.
1059 return written; 1060 return written;
1060 } 1061 }
1061 1062
1062 } } // namespace v8::internal 1063 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/assembler.h ('k') | src/deoptimizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698