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/ic/arm64/handler-compiler-arm64.cc

Issue 1846963002: Use a dictionary-mode code cache on the map rather than a dual system. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comment 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/arm/stub-cache-arm.cc ('k') | src/ic/arm64/ic-arm64.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_ARM64 5 #if V8_TARGET_ARCH_ARM64
6 6
7 #include "src/ic/handler-compiler.h" 7 #include "src/ic/handler-compiler.h"
8 8
9 #include "src/api-arguments.h" 9 #include "src/api-arguments.h"
10 #include "src/field-type.h" 10 #include "src/field-type.h"
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 Counters* counters = isolate()->counters(); 375 Counters* counters = isolate()->counters();
376 __ IncrementCounter(counters->ic_named_load_global_stub(), 1, x1, x3); 376 __ IncrementCounter(counters->ic_named_load_global_stub(), 1, x1, x3);
377 if (IC::ICUseVector(kind())) { 377 if (IC::ICUseVector(kind())) {
378 DiscardVectorAndSlot(); 378 DiscardVectorAndSlot();
379 } 379 }
380 __ Ret(); 380 __ Ret();
381 381
382 FrontendFooter(name, &miss); 382 FrontendFooter(name, &miss);
383 383
384 // Return the generated code. 384 // Return the generated code.
385 return GetCode(kind(), Code::NORMAL, name); 385 return GetCode(kind(), name);
386 } 386 }
387 387
388 388
389 Register NamedStoreHandlerCompiler::value() { 389 Register NamedStoreHandlerCompiler::value() {
390 return StoreDescriptor::ValueRegister(); 390 return StoreDescriptor::ValueRegister();
391 } 391 }
392 392
393 393
394 void NamedStoreHandlerCompiler::GenerateRestoreName(Label* label, 394 void NamedStoreHandlerCompiler::GenerateRestoreName(Label* label,
395 Handle<Name> name) { 395 Handle<Name> name) {
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
775 __ Mov(scratch1(), Operand(cell)); 775 __ Mov(scratch1(), Operand(cell));
776 } 776 }
777 __ Mov(scratch2(), Operand(name)); 777 __ Mov(scratch2(), Operand(name));
778 __ Push(receiver(), holder_reg, scratch1(), scratch2(), value()); 778 __ Push(receiver(), holder_reg, scratch1(), scratch2(), value());
779 __ Push(Smi::FromInt(language_mode)); 779 __ Push(Smi::FromInt(language_mode));
780 780
781 // Do tail-call to the runtime system. 781 // Do tail-call to the runtime system.
782 __ TailCallRuntime(Runtime::kStoreCallbackProperty); 782 __ TailCallRuntime(Runtime::kStoreCallbackProperty);
783 783
784 // Return the generated code. 784 // Return the generated code.
785 return GetCode(kind(), Code::FAST, name); 785 return GetCode(kind(), name);
786 } 786 }
787 787
788 788
789 #undef __ 789 #undef __
790 } // namespace internal 790 } // namespace internal
791 } // namespace v8 791 } // namespace v8
792 792
793 #endif // V8_TARGET_ARCH_IA32 793 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ic/arm/stub-cache-arm.cc ('k') | src/ic/arm64/ic-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698