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

Side by Side Diff: src/compiler/code-stub-assembler.cc

Issue 1761823002: [compiler] Introduce StringEqualStub and StringNotEqualStub. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address feedback. Created 4 years, 9 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/compiler/code-stub-assembler.h ('k') | src/compiler/simplified-lowering.h » ('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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 #include "src/compiler/code-stub-assembler.h" 5 #include "src/compiler/code-stub-assembler.h"
6 6
7 #include <ostream> 7 #include <ostream>
8 8
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/compiler/graph.h" 10 #include "src/compiler/graph.h"
(...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 args[0] = arg1; 595 args[0] = arg1;
596 args[1] = arg2; 596 args[1] = arg2;
597 args[2] = arg3; 597 args[2] = arg3;
598 args[3] = arg4; 598 args[3] = arg4;
599 args[4] = arg5; 599 args[4] = arg5;
600 args[5] = context; 600 args[5] = context;
601 601
602 return CallN(call_descriptor, target, args); 602 return CallN(call_descriptor, target, args);
603 } 603 }
604 604
605 Node* CodeStubAssembler::TailCallStub(Callable const& callable, Node* context,
606 Node* arg1, Node* arg2,
607 size_t result_size) {
608 Node* target = HeapConstant(callable.code());
609 return TailCallStub(callable.descriptor(), target, context, arg1, arg2,
610 result_size);
611 }
612
605 Node* CodeStubAssembler::TailCallStub(const CallInterfaceDescriptor& descriptor, 613 Node* CodeStubAssembler::TailCallStub(const CallInterfaceDescriptor& descriptor,
606 Node* target, Node* context, Node* arg1, 614 Node* target, Node* context, Node* arg1,
607 Node* arg2, size_t result_size) { 615 Node* arg2, size_t result_size) {
608 CallDescriptor* call_descriptor = Linkage::GetStubCallDescriptor( 616 CallDescriptor* call_descriptor = Linkage::GetStubCallDescriptor(
609 isolate(), zone(), descriptor, descriptor.GetStackParameterCount(), 617 isolate(), zone(), descriptor, descriptor.GetStackParameterCount(),
610 CallDescriptor::kSupportsTailCalls, Operator::kNoProperties, 618 CallDescriptor::kSupportsTailCalls, Operator::kNoProperties,
611 MachineType::AnyTagged(), result_size); 619 MachineType::AnyTagged(), result_size);
612 620
613 Node** args = zone()->NewArray<Node*>(3); 621 Node** args = zone()->NewArray<Node*>(3);
614 args[0] = arg1; 622 args[0] = arg1;
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
819 } 827 }
820 } 828 }
821 } 829 }
822 830
823 bound_ = true; 831 bound_ = true;
824 } 832 }
825 833
826 } // namespace compiler 834 } // namespace compiler
827 } // namespace internal 835 } // namespace internal
828 } // namespace v8 836 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/code-stub-assembler.h ('k') | src/compiler/simplified-lowering.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698