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

Side by Side Diff: src/compiler/raw-machine-assembler.h

Issue 2586903002: [turbofan] Avoid allocation of temporary array of Nodes when generating calls. (Closed)
Patch Set: Created 3 years, 12 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 | « no previous file | src/compiler/raw-machine-assembler.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_COMPILER_RAW_MACHINE_ASSEMBLER_H_ 5 #ifndef V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_
6 #define V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ 6 #define V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_
7 7
8 #include "src/assembler.h" 8 #include "src/assembler.h"
9 #include "src/compiler/common-operator.h" 9 #include "src/compiler/common-operator.h"
10 #include "src/compiler/graph.h" 10 #include "src/compiler/graph.h"
(...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 } 694 }
695 Node* UnalignedStoreToPointer(void* address, MachineRepresentation rep, 695 Node* UnalignedStoreToPointer(void* address, MachineRepresentation rep,
696 Node* node) { 696 Node* node) {
697 return UnalignedStore(rep, PointerConstant(address), node); 697 return UnalignedStore(rep, PointerConstant(address), node);
698 } 698 }
699 Node* StringConstant(const char* string) { 699 Node* StringConstant(const char* string) {
700 return HeapConstant(isolate()->factory()->InternalizeUtf8String(string)); 700 return HeapConstant(isolate()->factory()->InternalizeUtf8String(string));
701 } 701 }
702 702
703 // Call a given call descriptor and the given arguments. 703 // Call a given call descriptor and the given arguments.
704 Node* CallN(CallDescriptor* desc, Node* function, Node** args);
705 // Call a given call descriptor and the given arguments and frame-state.
706 Node* CallNWithFrameState(CallDescriptor* desc, Node* function, Node** args,
707 Node* frame_state);
708
709 // Call a given call descriptor and the given arguments.
710 // The call target is passed as part of the {inputs} array. 704 // The call target is passed as part of the {inputs} array.
711 Node* CallN(CallDescriptor* desc, int input_count, Node* const* inputs); 705 Node* CallN(CallDescriptor* desc, int input_count, Node* const* inputs);
712 706
707 // Call a given call descriptor and the given arguments and frame-state.
708 // The call target and frame state are passed as part of the {inputs} array.
709 Node* CallNWithFrameState(CallDescriptor* desc, int input_count,
710 Node* const* inputs);
711
713 // Tail call a given call descriptor and the given arguments. 712 // Tail call a given call descriptor and the given arguments.
714 // The call target is passed as part of the {inputs} array. 713 // The call target is passed as part of the {inputs} array.
715 Node* TailCallN(CallDescriptor* desc, int input_count, Node* const* inputs); 714 Node* TailCallN(CallDescriptor* desc, int input_count, Node* const* inputs);
716 715
717 // Call to a C function with zero arguments. 716 // Call to a C function with zero arguments.
718 Node* CallCFunction0(MachineType return_type, Node* function); 717 Node* CallCFunction0(MachineType return_type, Node* function);
719 // Call to a C function with one parameter. 718 // Call to a C function with one parameter.
720 Node* CallCFunction1(MachineType return_type, MachineType arg0_type, 719 Node* CallCFunction1(MachineType return_type, MachineType arg0_type,
721 Node* function, Node* arg0); 720 Node* function, Node* arg0);
722 // Call to a C function with two arguments. 721 // Call to a C function with two arguments.
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
829 bool deferred_; 828 bool deferred_;
830 friend class RawMachineAssembler; 829 friend class RawMachineAssembler;
831 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel); 830 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel);
832 }; 831 };
833 832
834 } // namespace compiler 833 } // namespace compiler
835 } // namespace internal 834 } // namespace internal
836 } // namespace v8 835 } // namespace v8
837 836
838 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ 837 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/raw-machine-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698