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

Unified Diff: src/compiler/js-graph.cc

Issue 2259883002: [turbofan] Inline calls to CPP builtins (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@builtin-descriptors
Patch Set: Address comments 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/js-graph.h ('k') | src/compiler/js-typed-lowering.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/js-graph.cc
diff --git a/src/compiler/js-graph.cc b/src/compiler/js-graph.cc
index f6afc77dddb5ab7dbc639de5604006f590785101..cafd047e74781f9a2b5e72c4c7f4e1aed65ea5bb 100644
--- a/src/compiler/js-graph.cc
+++ b/src/compiler/js-graph.cc
@@ -29,15 +29,23 @@ Node* JSGraph::ToNumberBuiltinConstant() {
HeapConstant(isolate()->builtins()->ToNumber()));
}
-Node* JSGraph::CEntryStubConstant(int result_size) {
- if (result_size == 1) {
- return CACHED(kCEntryStubConstant,
- HeapConstant(CEntryStub(isolate(), 1).GetCode()));
+Node* JSGraph::CEntryStubConstant(int result_size, SaveFPRegsMode save_doubles,
+ ArgvMode argv_mode, bool builtin_exit_frame) {
+ if (save_doubles == kDontSaveFPRegs && argv_mode == kArgvOnStack &&
+ result_size == 1) {
+ CachedNode key = builtin_exit_frame
+ ? kCEntryStubWithBuiltinExitFrameConstant
+ : kCEntryStubConstant;
+ return CACHED(key,
+ HeapConstant(CEntryStub(isolate(), result_size, save_doubles,
+ argv_mode, builtin_exit_frame)
+ .GetCode()));
}
- return HeapConstant(CEntryStub(isolate(), result_size).GetCode());
+ CEntryStub stub(isolate(), result_size, save_doubles, argv_mode,
+ builtin_exit_frame);
+ return HeapConstant(stub.GetCode());
}
-
Node* JSGraph::EmptyFixedArrayConstant() {
return CACHED(kEmptyFixedArrayConstant,
HeapConstant(factory()->empty_fixed_array()));
« no previous file with comments | « src/compiler/js-graph.h ('k') | src/compiler/js-typed-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698