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

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

Issue 2172233002: [interpreter] Add explicit OSR polling bytecode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_interpreter-osr-1
Patch Set: Rebased. Created 4 years, 4 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-assembler.h ('k') | src/interpreter/bytecode-array-builder.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-assembler.h" 5 #include "src/compiler/code-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 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 result_size); 430 result_size);
431 } 431 }
432 432
433 Node* CodeAssembler::CallStubN(Callable const& callable, Node** args, 433 Node* CodeAssembler::CallStubN(Callable const& callable, Node** args,
434 size_t result_size) { 434 size_t result_size) {
435 Node* target = HeapConstant(callable.code()); 435 Node* target = HeapConstant(callable.code());
436 return CallStubN(callable.descriptor(), target, args, result_size); 436 return CallStubN(callable.descriptor(), target, args, result_size);
437 } 437 }
438 438
439 Node* CodeAssembler::CallStub(const CallInterfaceDescriptor& descriptor, 439 Node* CodeAssembler::CallStub(const CallInterfaceDescriptor& descriptor,
440 Node* target, Node* context, size_t result_size) {
441 CallDescriptor* call_descriptor = Linkage::GetStubCallDescriptor(
442 isolate(), zone(), descriptor, descriptor.GetStackParameterCount(),
443 CallDescriptor::kNoFlags, Operator::kNoProperties,
444 MachineType::AnyTagged(), result_size);
445
446 Node** args = zone()->NewArray<Node*>(1);
447 args[0] = context;
448
449 return CallN(call_descriptor, target, args);
450 }
451
452 Node* CodeAssembler::CallStub(const CallInterfaceDescriptor& descriptor,
440 Node* target, Node* context, Node* arg1, 453 Node* target, Node* context, Node* arg1,
441 size_t result_size) { 454 size_t result_size) {
442 CallDescriptor* call_descriptor = Linkage::GetStubCallDescriptor( 455 CallDescriptor* call_descriptor = Linkage::GetStubCallDescriptor(
443 isolate(), zone(), descriptor, descriptor.GetStackParameterCount(), 456 isolate(), zone(), descriptor, descriptor.GetStackParameterCount(),
444 CallDescriptor::kNoFlags, Operator::kNoProperties, 457 CallDescriptor::kNoFlags, Operator::kNoProperties,
445 MachineType::AnyTagged(), result_size); 458 MachineType::AnyTagged(), result_size);
446 459
447 Node** args = zone()->NewArray<Node*>(2); 460 Node** args = zone()->NewArray<Node*>(2);
448 args[0] = arg1; 461 args[0] = arg1;
449 args[1] = context; 462 args[1] = context;
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
906 } 919 }
907 } 920 }
908 } 921 }
909 922
910 bound_ = true; 923 bound_ = true;
911 } 924 }
912 925
913 } // namespace compiler 926 } // namespace compiler
914 } // namespace internal 927 } // namespace internal
915 } // namespace v8 928 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/code-assembler.h ('k') | src/interpreter/bytecode-array-builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698