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/ic-x64.cc

Issue 19749004: With >= 64 non-string instance types, I removed an optimization (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review comments Created 7 years, 5 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/x64/code-stubs-x64.cc ('k') | src/x64/macro-assembler-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 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 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 STATIC_ASSERT(LAST_UNIQUE_NAME_TYPE == FIRST_NONSTRING_TYPE); 332 STATIC_ASSERT(LAST_UNIQUE_NAME_TYPE == FIRST_NONSTRING_TYPE);
333 __ j(equal, &unique); 333 __ j(equal, &unique);
334 334
335 // Is the string an array index, with cached numeric value? 335 // Is the string an array index, with cached numeric value?
336 __ movl(hash, FieldOperand(key, Name::kHashFieldOffset)); 336 __ movl(hash, FieldOperand(key, Name::kHashFieldOffset));
337 __ testl(hash, Immediate(Name::kContainsCachedArrayIndexMask)); 337 __ testl(hash, Immediate(Name::kContainsCachedArrayIndexMask));
338 __ j(zero, index_string); // The value in hash is used at jump target. 338 __ j(zero, index_string); // The value in hash is used at jump target.
339 339
340 // Is the string internalized? We already know it's a string so a single 340 // Is the string internalized? We already know it's a string so a single
341 // bit test is enough. 341 // bit test is enough.
342 STATIC_ASSERT(kInternalizedTag != 0); 342 STATIC_ASSERT(kNotInternalizedTag != 0);
343 __ testb(FieldOperand(map, Map::kInstanceTypeOffset), 343 __ testb(FieldOperand(map, Map::kInstanceTypeOffset),
344 Immediate(kIsInternalizedMask)); 344 Immediate(kIsNotInternalizedMask));
345 __ j(zero, not_unique); 345 __ j(not_zero, not_unique);
346 346
347 __ bind(&unique); 347 __ bind(&unique);
348 } 348 }
349 349
350 350
351 351
352 void KeyedLoadIC::GenerateGeneric(MacroAssembler* masm) { 352 void KeyedLoadIC::GenerateGeneric(MacroAssembler* masm) {
353 // ----------- S t a t e ------------- 353 // ----------- S t a t e -------------
354 // -- rax : key 354 // -- rax : key
355 // -- rdx : receiver 355 // -- rdx : receiver
(...skipping 1370 matching lines...) Expand 10 before | Expand all | Expand 10 after
1726 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) 1726 Condition cc = (check == ENABLE_INLINED_SMI_CHECK)
1727 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) 1727 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero)
1728 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); 1728 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry);
1729 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); 1729 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc);
1730 } 1730 }
1731 1731
1732 1732
1733 } } // namespace v8::internal 1733 } } // namespace v8::internal
1734 1734
1735 #endif // V8_TARGET_ARCH_X64 1735 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/code-stubs-x64.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698