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

Side by Side Diff: src/lithium.cc

Issue 10534006: Remove TLS access for current Zone. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review. Created 8 years, 6 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/lithium.h ('k') | src/lithium-allocator.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 if (values_[i] == NULL) { 164 if (values_[i] == NULL) {
165 stream->Add("[hole]"); 165 stream->Add("[hole]");
166 } else { 166 } else {
167 values_[i]->PrintTo(stream); 167 values_[i]->PrintTo(stream);
168 } 168 }
169 } 169 }
170 stream->Add("]"); 170 stream->Add("]");
171 } 171 }
172 172
173 173
174 void LPointerMap::RecordPointer(LOperand* op) { 174 void LPointerMap::RecordPointer(LOperand* op, Zone* zone) {
175 // Do not record arguments as pointers. 175 // Do not record arguments as pointers.
176 if (op->IsStackSlot() && op->index() < 0) return; 176 if (op->IsStackSlot() && op->index() < 0) return;
177 ASSERT(!op->IsDoubleRegister() && !op->IsDoubleStackSlot()); 177 ASSERT(!op->IsDoubleRegister() && !op->IsDoubleStackSlot());
178 pointer_operands_.Add(op); 178 pointer_operands_.Add(op, zone);
179 } 179 }
180 180
181 181
182 void LPointerMap::RemovePointer(LOperand* op) { 182 void LPointerMap::RemovePointer(LOperand* op) {
183 // Do not record arguments as pointers. 183 // Do not record arguments as pointers.
184 if (op->IsStackSlot() && op->index() < 0) return; 184 if (op->IsStackSlot() && op->index() < 0) return;
185 ASSERT(!op->IsDoubleRegister() && !op->IsDoubleStackSlot()); 185 ASSERT(!op->IsDoubleRegister() && !op->IsDoubleStackSlot());
186 for (int i = 0; i < pointer_operands_.length(); ++i) { 186 for (int i = 0; i < pointer_operands_.length(); ++i) {
187 if (pointer_operands_[i]->Equals(op)) { 187 if (pointer_operands_[i]->Equals(op)) {
188 pointer_operands_.Remove(i); 188 pointer_operands_.Remove(i);
189 --i; 189 --i;
190 } 190 }
191 } 191 }
192 } 192 }
193 193
194 194
195 void LPointerMap::RecordUntagged(LOperand* op) { 195 void LPointerMap::RecordUntagged(LOperand* op, Zone* zone) {
196 // Do not record arguments as pointers. 196 // Do not record arguments as pointers.
197 if (op->IsStackSlot() && op->index() < 0) return; 197 if (op->IsStackSlot() && op->index() < 0) return;
198 ASSERT(!op->IsDoubleRegister() && !op->IsDoubleStackSlot()); 198 ASSERT(!op->IsDoubleRegister() && !op->IsDoubleStackSlot());
199 untagged_operands_.Add(op); 199 untagged_operands_.Add(op, zone);
200 } 200 }
201 201
202 202
203 void LPointerMap::PrintTo(StringStream* stream) { 203 void LPointerMap::PrintTo(StringStream* stream) {
204 stream->Add("{"); 204 stream->Add("{");
205 for (int i = 0; i < pointer_operands_.length(); ++i) { 205 for (int i = 0; i < pointer_operands_.length(); ++i) {
206 if (i != 0) stream->Add(";"); 206 if (i != 0) stream->Add(";");
207 pointer_operands_[i]->PrintTo(stream); 207 pointer_operands_[i]->PrintTo(stream);
208 } 208 }
209 stream->Add("} @%d", position()); 209 stream->Add("} @%d", position());
(...skipping 24 matching lines...) Expand all
234 case DICTIONARY_ELEMENTS: 234 case DICTIONARY_ELEMENTS:
235 case NON_STRICT_ARGUMENTS_ELEMENTS: 235 case NON_STRICT_ARGUMENTS_ELEMENTS:
236 return kPointerSizeLog2; 236 return kPointerSizeLog2;
237 } 237 }
238 UNREACHABLE(); 238 UNREACHABLE();
239 return 0; 239 return 0;
240 } 240 }
241 241
242 242
243 } } // namespace v8::internal 243 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/lithium.h ('k') | src/lithium-allocator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698