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

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

Issue 1865833002: [generators] Decouple generator resume from fullcodegen. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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 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 1008 matching lines...) Expand 10 before | Expand all | Expand 10 after
1019 return raw_assembler_->TailCallRuntime4(function_id, arg1, arg2, arg3, arg4, 1019 return raw_assembler_->TailCallRuntime4(function_id, arg1, arg2, arg3, arg4,
1020 context); 1020 context);
1021 } 1021 }
1022 1022
1023 Node* CodeStubAssembler::CallStub(Callable const& callable, Node* context, 1023 Node* CodeStubAssembler::CallStub(Callable const& callable, Node* context,
1024 Node* arg1, size_t result_size) { 1024 Node* arg1, size_t result_size) {
1025 Node* target = HeapConstant(callable.code()); 1025 Node* target = HeapConstant(callable.code());
1026 return CallStub(callable.descriptor(), target, context, arg1, result_size); 1026 return CallStub(callable.descriptor(), target, context, arg1, result_size);
1027 } 1027 }
1028 1028
1029 Node* CodeStubAssembler::CallStub(Callable const& callable, Node* context,
1030 Node* arg1, Node* arg2, size_t result_size) {
1031 Node* target = HeapConstant(callable.code());
1032 return CallStub(callable.descriptor(), target, context, arg1, arg2,
1033 result_size);
1034 }
1035
1036 Node* CodeStubAssembler::CallStub(Callable const& callable, Node* context,
1037 Node* arg1, Node* arg2, Node* arg3,
1038 size_t result_size) {
1039 Node* target = HeapConstant(callable.code());
1040 return CallStub(callable.descriptor(), target, context, arg1, arg2, arg3,
1041 result_size);
1042 }
1043
1029 Node* CodeStubAssembler::CallStub(const CallInterfaceDescriptor& descriptor, 1044 Node* CodeStubAssembler::CallStub(const CallInterfaceDescriptor& descriptor,
1030 Node* target, Node* context, Node* arg1, 1045 Node* target, Node* context, Node* arg1,
1031 size_t result_size) { 1046 size_t result_size) {
1032 CallDescriptor* call_descriptor = Linkage::GetStubCallDescriptor( 1047 CallDescriptor* call_descriptor = Linkage::GetStubCallDescriptor(
1033 isolate(), zone(), descriptor, descriptor.GetStackParameterCount(), 1048 isolate(), zone(), descriptor, descriptor.GetStackParameterCount(),
1034 CallDescriptor::kNoFlags, Operator::kNoProperties, 1049 CallDescriptor::kNoFlags, Operator::kNoProperties,
1035 MachineType::AnyTagged(), result_size); 1050 MachineType::AnyTagged(), result_size);
1036 1051
1037 Node** args = zone()->NewArray<Node*>(2); 1052 Node** args = zone()->NewArray<Node*>(2);
1038 args[0] = arg1; 1053 args[0] = arg1;
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
1344 } 1359 }
1345 } 1360 }
1346 } 1361 }
1347 1362
1348 bound_ = true; 1363 bound_ = true;
1349 } 1364 }
1350 1365
1351 } // namespace compiler 1366 } // namespace compiler
1352 } // namespace internal 1367 } // namespace internal
1353 } // namespace v8 1368 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/code-stub-assembler.h ('k') | src/deoptimizer.cc » ('j') | src/deoptimizer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698