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

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: ia32 and x64 done. 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
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 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 class ContextOnlyDescriptor : public CallInterfaceDescriptor { 524 class ContextOnlyDescriptor : public CallInterfaceDescriptor {
525 public: 525 public:
526 DECLARE_DESCRIPTOR(ContextOnlyDescriptor, CallInterfaceDescriptor) 526 DECLARE_DESCRIPTOR(ContextOnlyDescriptor, CallInterfaceDescriptor)
527 }; 527 };
528 528
529 529
530 class GrowArrayElementsDescriptor : public CallInterfaceDescriptor { 530 class GrowArrayElementsDescriptor : public CallInterfaceDescriptor {
531 public: 531 public:
532 DECLARE_DESCRIPTOR(GrowArrayElementsDescriptor, CallInterfaceDescriptor) 532 DECLARE_DESCRIPTOR(GrowArrayElementsDescriptor, CallInterfaceDescriptor)
533 533
534 enum RegisterInfo { kObjectIndex, kKeyIndex, kCapacityIndex }; 534 enum RegisterInfo { kObjectIndex, kKeyIndex };
535 static const Register ObjectRegister(); 535 static const Register ObjectRegister();
536 static const Register KeyRegister(); 536 static const Register KeyRegister();
537 static const Register CapacityRegister();
538 }; 537 };
539 538
540 #undef DECLARE_DESCRIPTOR 539 #undef DECLARE_DESCRIPTOR
541 540
542 541
543 // We define the association between CallDescriptors::Key and the specialized 542 // We define the association between CallDescriptors::Key and the specialized
544 // descriptor here to reduce boilerplate and mistakes. 543 // descriptor here to reduce boilerplate and mistakes.
545 #define DEF_KEY(name) \ 544 #define DEF_KEY(name) \
546 CallDescriptors::Key name##Descriptor::key() { return CallDescriptors::name; } 545 CallDescriptors::Key name##Descriptor::key() { return CallDescriptors::name; }
547 INTERFACE_DESCRIPTOR_LIST(DEF_KEY) 546 INTERFACE_DESCRIPTOR_LIST(DEF_KEY)
548 #undef DEF_KEY 547 #undef DEF_KEY
549 } 548 }
550 } // namespace v8::internal 549 } // namespace v8::internal
551 550
552 551
553 #if V8_TARGET_ARCH_ARM64 552 #if V8_TARGET_ARCH_ARM64
554 #include "src/arm64/interface-descriptors-arm64.h" 553 #include "src/arm64/interface-descriptors-arm64.h"
555 #elif V8_TARGET_ARCH_ARM 554 #elif V8_TARGET_ARCH_ARM
556 #include "src/arm/interface-descriptors-arm.h" 555 #include "src/arm/interface-descriptors-arm.h"
557 #endif 556 #endif
558 557
559 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ 558 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698