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

Side by Side Diff: src/interface-descriptors.h

Issue 1124443004: New hydrogen instruction to reduce cost of growing an array on keyed stores. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE. Created 5 years, 7 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/ia32/lithium-ia32.cc ('k') | src/interface-descriptors.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 #ifndef V8_CALL_INTERFACE_DESCRIPTOR_H_ 5 #ifndef V8_CALL_INTERFACE_DESCRIPTOR_H_
6 #define V8_CALL_INTERFACE_DESCRIPTOR_H_ 6 #define V8_CALL_INTERFACE_DESCRIPTOR_H_
7 7
8 #include "src/assembler.h" 8 #include "src/assembler.h"
9 #include "src/macro-assembler.h" 9 #include "src/macro-assembler.h"
10 10
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 class ContextOnlyDescriptor : public CallInterfaceDescriptor { 538 class ContextOnlyDescriptor : public CallInterfaceDescriptor {
539 public: 539 public:
540 DECLARE_DESCRIPTOR(ContextOnlyDescriptor, CallInterfaceDescriptor) 540 DECLARE_DESCRIPTOR(ContextOnlyDescriptor, CallInterfaceDescriptor)
541 }; 541 };
542 542
543 543
544 class GrowArrayElementsDescriptor : public CallInterfaceDescriptor { 544 class GrowArrayElementsDescriptor : public CallInterfaceDescriptor {
545 public: 545 public:
546 DECLARE_DESCRIPTOR(GrowArrayElementsDescriptor, CallInterfaceDescriptor) 546 DECLARE_DESCRIPTOR(GrowArrayElementsDescriptor, CallInterfaceDescriptor)
547 547
548 enum RegisterInfo { kObjectIndex, kKeyIndex, kCapacityIndex }; 548 enum RegisterInfo { kObjectIndex, kKeyIndex };
549 static const Register ObjectRegister(); 549 static const Register ObjectRegister();
550 static const Register KeyRegister(); 550 static const Register KeyRegister();
551 static const Register CapacityRegister();
552 }; 551 };
553 552
554 #undef DECLARE_DESCRIPTOR 553 #undef DECLARE_DESCRIPTOR
555 554
556 555
557 // We define the association between CallDescriptors::Key and the specialized 556 // We define the association between CallDescriptors::Key and the specialized
558 // descriptor here to reduce boilerplate and mistakes. 557 // descriptor here to reduce boilerplate and mistakes.
559 #define DEF_KEY(name) \ 558 #define DEF_KEY(name) \
560 CallDescriptors::Key name##Descriptor::key() { return CallDescriptors::name; } 559 CallDescriptors::Key name##Descriptor::key() { return CallDescriptors::name; }
561 INTERFACE_DESCRIPTOR_LIST(DEF_KEY) 560 INTERFACE_DESCRIPTOR_LIST(DEF_KEY)
562 #undef DEF_KEY 561 #undef DEF_KEY
563 } 562 }
564 } // namespace v8::internal 563 } // namespace v8::internal
565 564
566 565
567 #if V8_TARGET_ARCH_ARM64 566 #if V8_TARGET_ARCH_ARM64
568 #include "src/arm64/interface-descriptors-arm64.h" 567 #include "src/arm64/interface-descriptors-arm64.h"
569 #elif V8_TARGET_ARCH_ARM 568 #elif V8_TARGET_ARCH_ARM
570 #include "src/arm/interface-descriptors-arm.h" 569 #include "src/arm/interface-descriptors-arm.h"
571 #endif 570 #endif
572 571
573 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ 572 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/interface-descriptors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698