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

Side by Side Diff: src/ic/x64/ic-x64.cc

Issue 1883533003: Don't use the keyed slow stub for named handlers. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « src/ic/s390/stub-cache-s390.cc ('k') | src/ic/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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #if V8_TARGET_ARCH_X64 5 #if V8_TARGET_ARCH_X64
6 6
7 #include "src/codegen.h" 7 #include "src/codegen.h"
8 #include "src/ic/ic.h" 8 #include "src/ic/ic.h"
9 #include "src/ic/ic-compiler.h" 9 #include "src/ic/ic-compiler.h"
10 #include "src/ic/stub-cache.h" 10 #include "src/ic/stub-cache.h"
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 // change the IC from any downstream misses, a dummy vector can be used. 562 // change the IC from any downstream misses, a dummy vector can be used.
563 Handle<TypeFeedbackVector> dummy_vector = 563 Handle<TypeFeedbackVector> dummy_vector =
564 TypeFeedbackVector::DummyVector(masm->isolate()); 564 TypeFeedbackVector::DummyVector(masm->isolate());
565 int slot_index = dummy_vector->GetIndex( 565 int slot_index = dummy_vector->GetIndex(
566 FeedbackVectorSlot(TypeFeedbackVector::kDummyKeyedStoreICSlot)); 566 FeedbackVectorSlot(TypeFeedbackVector::kDummyKeyedStoreICSlot));
567 __ Move(vector, dummy_vector); 567 __ Move(vector, dummy_vector);
568 __ Move(slot, Smi::FromInt(slot_index)); 568 __ Move(slot, Smi::FromInt(slot_index));
569 569
570 Code::Flags flags = 570 Code::Flags flags =
571 Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::STORE_IC)); 571 Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::STORE_IC));
572 masm->isolate()->stub_cache()->GenerateProbe(masm, Code::STORE_IC, flags, 572 masm->isolate()->stub_cache()->GenerateProbe(
573 receiver, key, r9, no_reg); 573 masm, Code::KEYED_STORE_IC, flags, receiver, key, r9, no_reg);
574 // Cache miss. 574 // Cache miss.
575 __ jmp(&miss); 575 __ jmp(&miss);
576 576
577 // Extra capacity case: Check if there is extra capacity to 577 // Extra capacity case: Check if there is extra capacity to
578 // perform the store and update the length. Used for adding one 578 // perform the store and update the length. Used for adding one
579 // element to the array by writing to array[array.length]. 579 // element to the array by writing to array[array.length].
580 __ bind(&extra); 580 __ bind(&extra);
581 // receiver is a JSArray. 581 // receiver is a JSArray.
582 // rbx: receiver's elements array (a FixedArray) 582 // rbx: receiver's elements array (a FixedArray)
583 // flags: smicompare (receiver.length(), rbx) 583 // flags: smicompare (receiver.length(), rbx)
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
845 Condition cc = 845 Condition cc =
846 (check == ENABLE_INLINED_SMI_CHECK) 846 (check == ENABLE_INLINED_SMI_CHECK)
847 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) 847 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero)
848 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); 848 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry);
849 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); 849 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc);
850 } 850 }
851 } // namespace internal 851 } // namespace internal
852 } // namespace v8 852 } // namespace v8
853 853
854 #endif // V8_TARGET_ARCH_X64 854 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/ic/s390/stub-cache-s390.cc ('k') | src/ic/x64/stub-cache-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698