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

Unified Diff: src/compiler/js-context-relaxation.cc

Issue 1254073003: Tail call from TurboFan into select runtime calls (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Smaller patch Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/compiler/linkage-impl.h » ('j') | src/compiler/linkage-impl.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/js-context-relaxation.cc
diff --git a/src/compiler/js-context-relaxation.cc b/src/compiler/js-context-relaxation.cc
index 0ca3c0c9d3ccb7fd6872afd161f601324b6be247..4072ae82ef0c668949aaba9cdf76af0c31a26331 100644
--- a/src/compiler/js-context-relaxation.cc
+++ b/src/compiler/js-context-relaxation.cc
@@ -14,6 +14,20 @@ namespace compiler {
Reduction JSContextRelaxation::Reduce(Node* node) {
switch (node->opcode()) {
+ case IrOpcode::kJSCallRuntime: {
+ const CallRuntimeParameters& p = CallRuntimeParametersOf(node->op());
+ const Runtime::Function* fun = Runtime::FunctionForId(p.id());
+ switch (fun->function_id) {
+#define IC_CASE(name, number_of_args, result_size) \
+ case Runtime::k##name: \
+ break;
+ FOR_EACH_INTRINSIC_IC(IC_CASE)
+#undef IC_CASE
+ default:
+ return NoChange();
+ }
+ }
+ // Fall through
case IrOpcode::kJSCallFunction:
case IrOpcode::kJSToNumber: {
Node* frame_state = NodeProperties::GetFrameStateInput(node, 0);
« no previous file with comments | « no previous file | src/compiler/linkage-impl.h » ('j') | src/compiler/linkage-impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698