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

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

Issue 454018: Fix megamorphic load regression on ARM caused by the string... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 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 | « src/arm/ic-arm.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 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 98
99 // Make sure that there are no register conflicts. 99 // Make sure that there are no register conflicts.
100 ASSERT(!scratch.is(receiver)); 100 ASSERT(!scratch.is(receiver));
101 ASSERT(!scratch.is(name)); 101 ASSERT(!scratch.is(name));
102 102
103 // Check that the receiver isn't a smi. 103 // Check that the receiver isn't a smi.
104 __ tst(receiver, Operand(kSmiTagMask)); 104 __ tst(receiver, Operand(kSmiTagMask));
105 __ b(eq, &miss); 105 __ b(eq, &miss);
106 106
107 // Get the map of the receiver and compute the hash. 107 // Get the map of the receiver and compute the hash.
108 __ ldr(scratch, FieldMemOperand(name, String::kLengthOffset)); 108 __ ldr(scratch, FieldMemOperand(name, String::kHashFieldOffset));
109 __ ldr(ip, FieldMemOperand(receiver, HeapObject::kMapOffset)); 109 __ ldr(ip, FieldMemOperand(receiver, HeapObject::kMapOffset));
110 __ add(scratch, scratch, Operand(ip)); 110 __ add(scratch, scratch, Operand(ip));
111 __ eor(scratch, scratch, Operand(flags)); 111 __ eor(scratch, scratch, Operand(flags));
112 __ and_(scratch, 112 __ and_(scratch,
113 scratch, 113 scratch,
114 Operand((kPrimaryTableSize - 1) << kHeapObjectTagSize)); 114 Operand((kPrimaryTableSize - 1) << kHeapObjectTagSize));
115 115
116 // Probe the primary table. 116 // Probe the primary table.
117 ProbeTable(masm, flags, kPrimary, name, scratch); 117 ProbeTable(masm, flags, kPrimary, name, scratch);
118 118
(...skipping 1359 matching lines...) Expand 10 before | Expand all | Expand 10 after
1478 __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET); 1478 __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET);
1479 1479
1480 // Return the generated code. 1480 // Return the generated code.
1481 return GetCode(); 1481 return GetCode();
1482 } 1482 }
1483 1483
1484 1484
1485 #undef __ 1485 #undef __
1486 1486
1487 } } // namespace v8::internal 1487 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/ic-arm.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698