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

Side by Side Diff: src/ic/arm/handler-compiler-arm.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: 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
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_ARM 5 #if V8_TARGET_ARCH_ARM
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 726 matching lines...) Expand 10 before | Expand all | Expand 10 after
737 } 737 }
738 __ push(ip); 738 __ push(ip);
739 __ mov(ip, Operand(name)); 739 __ mov(ip, Operand(name));
740 __ Push(ip, value()); 740 __ Push(ip, value());
741 __ Push(Smi::FromInt(language_mode)); 741 __ Push(Smi::FromInt(language_mode));
742 742
743 // Do tail-call to the runtime system. 743 // Do tail-call to the runtime system.
744 __ TailCallRuntime(Runtime::kStoreCallbackProperty); 744 __ TailCallRuntime(Runtime::kStoreCallbackProperty);
745 745
746 // Return the generated code. 746 // Return the generated code.
747 return GetCode(kind(), Code::FAST, name); 747 return GetCode(kind(), name);
748 } 748 }
749 749
750 750
751 Register NamedStoreHandlerCompiler::value() { 751 Register NamedStoreHandlerCompiler::value() {
752 return StoreDescriptor::ValueRegister(); 752 return StoreDescriptor::ValueRegister();
753 } 753 }
754 754
755 755
756 Handle<Code> NamedLoadHandlerCompiler::CompileLoadGlobal( 756 Handle<Code> NamedLoadHandlerCompiler::CompileLoadGlobal(
757 Handle<PropertyCell> cell, Handle<Name> name, bool is_configurable) { 757 Handle<PropertyCell> cell, Handle<Name> name, bool is_configurable) {
(...skipping 19 matching lines...) Expand all
777 Counters* counters = isolate()->counters(); 777 Counters* counters = isolate()->counters();
778 __ IncrementCounter(counters->ic_named_load_global_stub(), 1, r1, r3); 778 __ IncrementCounter(counters->ic_named_load_global_stub(), 1, r1, r3);
779 if (IC::ICUseVector(kind())) { 779 if (IC::ICUseVector(kind())) {
780 DiscardVectorAndSlot(); 780 DiscardVectorAndSlot();
781 } 781 }
782 __ Ret(); 782 __ Ret();
783 783
784 FrontendFooter(name, &miss); 784 FrontendFooter(name, &miss);
785 785
786 // Return the generated code. 786 // Return the generated code.
787 return GetCode(kind(), Code::NORMAL, name); 787 return GetCode(kind(), name);
788 } 788 }
789 789
790 790
791 #undef __ 791 #undef __
792 } // namespace internal 792 } // namespace internal
793 } // namespace v8 793 } // namespace v8
794 794
795 #endif // V8_TARGET_ARCH_ARM 795 #endif // V8_TARGET_ARCH_ARM
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698