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

Side by Side Diff: src/x64/code-stubs-x64.cc

Issue 8390050: Fixing performance regression in issue 1787. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 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/code-stubs-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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 5577 matching lines...) Expand 10 before | Expand all | Expand 10 after
5588 // |done| label if a property with the given name is found leaving the 5588 // |done| label if a property with the given name is found leaving the
5589 // index into the dictionary in |r1|. Jump to the |miss| label 5589 // index into the dictionary in |r1|. Jump to the |miss| label
5590 // otherwise. 5590 // otherwise.
5591 void StringDictionaryLookupStub::GeneratePositiveLookup(MacroAssembler* masm, 5591 void StringDictionaryLookupStub::GeneratePositiveLookup(MacroAssembler* masm,
5592 Label* miss, 5592 Label* miss,
5593 Label* done, 5593 Label* done,
5594 Register elements, 5594 Register elements,
5595 Register name, 5595 Register name,
5596 Register r0, 5596 Register r0,
5597 Register r1) { 5597 Register r1) {
5598 ASSERT(!elements.is(r0));
5599 ASSERT(!elements.is(r1));
5600 ASSERT(!name.is(r0));
5601 ASSERT(!name.is(r1));
5602
5598 // Assert that name contains a string. 5603 // Assert that name contains a string.
5599 if (FLAG_debug_code) __ AbortIfNotString(name); 5604 if (FLAG_debug_code) __ AbortIfNotString(name);
5600 5605
5601 __ SmiToInteger32(r0, FieldOperand(elements, kCapacityOffset)); 5606 __ SmiToInteger32(r0, FieldOperand(elements, kCapacityOffset));
5602 __ decl(r0); 5607 __ decl(r0);
5603 5608
5604 for (int i = 0; i < kInlinedProbes; i++) { 5609 for (int i = 0; i < kInlinedProbes; i++) {
5605 // Compute the masked index: (hash + i + i * i) & mask. 5610 // Compute the masked index: (hash + i + i * i) & mask.
5606 __ movl(r1, FieldOperand(name, String::kHashFieldOffset)); 5611 __ movl(r1, FieldOperand(name, String::kHashFieldOffset));
5607 __ shrl(r1, Immediate(String::kHashShift)); 5612 __ shrl(r1, Immediate(String::kHashShift));
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
6003 __ bind(&need_incremental); 6008 __ bind(&need_incremental);
6004 6009
6005 // Fall through when we need to inform the incremental marker. 6010 // Fall through when we need to inform the incremental marker.
6006 } 6011 }
6007 6012
6008 #undef __ 6013 #undef __
6009 6014
6010 } } // namespace v8::internal 6015 } } // namespace v8::internal
6011 6016
6012 #endif // V8_TARGET_ARCH_X64 6017 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698