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

Side by Side Diff: src/ia32/stub-cache-ia32.cc

Issue 4094010: Remove invalid asserts from last commit. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 1 month 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/x64/stub-cache-x64.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 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 220
221 // Make sure that there are no register conflicts. 221 // Make sure that there are no register conflicts.
222 ASSERT(!scratch.is(receiver)); 222 ASSERT(!scratch.is(receiver));
223 ASSERT(!scratch.is(name)); 223 ASSERT(!scratch.is(name));
224 ASSERT(!extra.is(receiver)); 224 ASSERT(!extra.is(receiver));
225 ASSERT(!extra.is(name)); 225 ASSERT(!extra.is(name));
226 ASSERT(!extra.is(scratch)); 226 ASSERT(!extra.is(scratch));
227 227
228 // Check scratch and extra registers are valid, and extra2 is unused. 228 // Check scratch and extra registers are valid, and extra2 is unused.
229 ASSERT(!scratch.is(no_reg)); 229 ASSERT(!scratch.is(no_reg));
230 ASSERT(!extra.is(no_reg));
231 ASSERT(extra2.is(no_reg)); 230 ASSERT(extra2.is(no_reg));
232 231
233 // Check that the receiver isn't a smi. 232 // Check that the receiver isn't a smi.
234 __ test(receiver, Immediate(kSmiTagMask)); 233 __ test(receiver, Immediate(kSmiTagMask));
235 __ j(zero, &miss, not_taken); 234 __ j(zero, &miss, not_taken);
236 235
237 // Get the map of the receiver and compute the hash. 236 // Get the map of the receiver and compute the hash.
238 __ mov(scratch, FieldOperand(name, String::kHashFieldOffset)); 237 __ mov(scratch, FieldOperand(name, String::kHashFieldOffset));
239 __ add(scratch, FieldOperand(receiver, HeapObject::kMapOffset)); 238 __ add(scratch, FieldOperand(receiver, HeapObject::kMapOffset));
240 __ xor_(scratch, flags); 239 __ xor_(scratch, flags);
(...skipping 2858 matching lines...) Expand 10 before | Expand all | Expand 10 after
3099 // Return the generated code. 3098 // Return the generated code.
3100 return GetCode(); 3099 return GetCode();
3101 } 3100 }
3102 3101
3103 3102
3104 #undef __ 3103 #undef __
3105 3104
3106 } } // namespace v8::internal 3105 } } // namespace v8::internal
3107 3106
3108 #endif // V8_TARGET_ARCH_IA32 3107 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « no previous file | src/x64/stub-cache-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698