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

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

Issue 2146293003: [builtins] implement Array.prototype.includes in TurboFan (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add a basic impl in ElementsAccessor, cleanup %ArrayIncludes_Slow, lots of new tests Created 4 years, 5 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_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 703 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 Node* arg3, Node* arg4, Node* arg5, Node* context); 714 Node* arg3, Node* arg4, Node* arg5, Node* context);
715 715
716 // =========================================================================== 716 // ===========================================================================
717 // The following utility methods deal with control flow, hence might switch 717 // The following utility methods deal with control flow, hence might switch
718 // the current basic block or create new basic blocks for labels. 718 // the current basic block or create new basic blocks for labels.
719 719
720 // Control flow. 720 // Control flow.
721 void Goto(RawMachineLabel* label); 721 void Goto(RawMachineLabel* label);
722 void Branch(Node* condition, RawMachineLabel* true_val, 722 void Branch(Node* condition, RawMachineLabel* true_val,
723 RawMachineLabel* false_val); 723 RawMachineLabel* false_val);
724 void Switch(Node* index, RawMachineLabel* default_label, int32_t* case_values, 724 void Switch(Node* index, RawMachineLabel* default_label,
725 RawMachineLabel** case_labels, size_t case_count); 725 const int32_t* case_values, RawMachineLabel** case_labels,
726 size_t case_count);
726 void Return(Node* value); 727 void Return(Node* value);
727 void Return(Node* v1, Node* v2); 728 void Return(Node* v1, Node* v2);
728 void Return(Node* v1, Node* v2, Node* v3); 729 void Return(Node* v1, Node* v2, Node* v3);
729 void Bind(RawMachineLabel* label); 730 void Bind(RawMachineLabel* label);
730 void Deoptimize(Node* state); 731 void Deoptimize(Node* state);
731 void DebugBreak(); 732 void DebugBreak();
732 void Comment(const char* msg); 733 void Comment(const char* msg);
733 734
734 // Variables. 735 // Variables.
735 Node* Phi(MachineRepresentation rep, Node* n1, Node* n2) { 736 Node* Phi(MachineRepresentation rep, Node* n1, Node* n2) {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
798 bool deferred_; 799 bool deferred_;
799 friend class RawMachineAssembler; 800 friend class RawMachineAssembler;
800 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel); 801 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel);
801 }; 802 };
802 803
803 } // namespace compiler 804 } // namespace compiler
804 } // namespace internal 805 } // namespace internal
805 } // namespace v8 806 } // namespace v8
806 807
807 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ 808 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698