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

Side by Side Diff: src/x64/stub-cache-x64.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 | « src/ia32/stub-cache-ia32.cc ('k') | 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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 284
285 // Make sure the flags do not name a specific type. 285 // Make sure the flags do not name a specific type.
286 ASSERT(Code::ExtractTypeFromFlags(flags) == 0); 286 ASSERT(Code::ExtractTypeFromFlags(flags) == 0);
287 287
288 // Make sure that there are no register conflicts. 288 // Make sure that there are no register conflicts.
289 ASSERT(!scratch.is(receiver)); 289 ASSERT(!scratch.is(receiver));
290 ASSERT(!scratch.is(name)); 290 ASSERT(!scratch.is(name));
291 291
292 // Check scratch register is valid, extra and extra2 are unused. 292 // Check scratch register is valid, extra and extra2 are unused.
293 ASSERT(!scratch.is(no_reg)); 293 ASSERT(!scratch.is(no_reg));
294 ASSERT(extra.is(no_reg));
295 ASSERT(extra2.is(no_reg)); 294 ASSERT(extra2.is(no_reg));
296 295
297 // Check that the receiver isn't a smi. 296 // Check that the receiver isn't a smi.
298 __ JumpIfSmi(receiver, &miss); 297 __ JumpIfSmi(receiver, &miss);
299 298
300 // Get the map of the receiver and compute the hash. 299 // Get the map of the receiver and compute the hash.
301 __ movl(scratch, FieldOperand(name, String::kHashFieldOffset)); 300 __ movl(scratch, FieldOperand(name, String::kHashFieldOffset));
302 // Use only the low 32 bits of the map pointer. 301 // Use only the low 32 bits of the map pointer.
303 __ addl(scratch, FieldOperand(receiver, HeapObject::kMapOffset)); 302 __ addl(scratch, FieldOperand(receiver, HeapObject::kMapOffset));
304 __ xor_(scratch, Immediate(flags)); 303 __ xor_(scratch, Immediate(flags));
(...skipping 2661 matching lines...) Expand 10 before | Expand all | Expand 10 after
2966 // Return the generated code. 2965 // Return the generated code.
2967 return GetCode(); 2966 return GetCode();
2968 } 2967 }
2969 2968
2970 2969
2971 #undef __ 2970 #undef __
2972 2971
2973 } } // namespace v8::internal 2972 } } // namespace v8::internal
2974 2973
2975 #endif // V8_TARGET_ARCH_X64 2974 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/ia32/stub-cache-ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698