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

Side by Side Diff: src/ic/ppc/handler-compiler-ppc.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/mips64/stub-cache-mips64.cc ('k') | src/ic/ppc/ic-ppc.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_PPC 5 #if V8_TARGET_ARCH_PPC
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 719 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 } 730 }
731 __ push(ip); 731 __ push(ip);
732 __ mov(ip, Operand(name)); 732 __ mov(ip, Operand(name));
733 __ Push(ip, value()); 733 __ Push(ip, value());
734 __ Push(Smi::FromInt(language_mode)); 734 __ Push(Smi::FromInt(language_mode));
735 735
736 // Do tail-call to the runtime system. 736 // Do tail-call to the runtime system.
737 __ TailCallRuntime(Runtime::kStoreCallbackProperty); 737 __ TailCallRuntime(Runtime::kStoreCallbackProperty);
738 738
739 // Return the generated code. 739 // Return the generated code.
740 return GetCode(kind(), Code::FAST, name); 740 return GetCode(kind(), name);
741 } 741 }
742 742
743 743
744 Register NamedStoreHandlerCompiler::value() { 744 Register NamedStoreHandlerCompiler::value() {
745 return StoreDescriptor::ValueRegister(); 745 return StoreDescriptor::ValueRegister();
746 } 746 }
747 747
748 748
749 Handle<Code> NamedLoadHandlerCompiler::CompileLoadGlobal( 749 Handle<Code> NamedLoadHandlerCompiler::CompileLoadGlobal(
750 Handle<PropertyCell> cell, Handle<Name> name, bool is_configurable) { 750 Handle<PropertyCell> cell, Handle<Name> name, bool is_configurable) {
(...skipping 19 matching lines...) Expand all
770 Counters* counters = isolate()->counters(); 770 Counters* counters = isolate()->counters();
771 __ IncrementCounter(counters->ic_named_load_global_stub(), 1, r4, r6); 771 __ IncrementCounter(counters->ic_named_load_global_stub(), 1, r4, r6);
772 if (IC::ICUseVector(kind())) { 772 if (IC::ICUseVector(kind())) {
773 DiscardVectorAndSlot(); 773 DiscardVectorAndSlot();
774 } 774 }
775 __ Ret(); 775 __ Ret();
776 776
777 FrontendFooter(name, &miss); 777 FrontendFooter(name, &miss);
778 778
779 // Return the generated code. 779 // Return the generated code.
780 return GetCode(kind(), Code::NORMAL, name); 780 return GetCode(kind(), name);
781 } 781 }
782 782
783 783
784 #undef __ 784 #undef __
785 } // namespace internal 785 } // namespace internal
786 } // namespace v8 786 } // namespace v8
787 787
788 #endif // V8_TARGET_ARCH_ARM 788 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/ic/mips64/stub-cache-mips64.cc ('k') | src/ic/ppc/ic-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698