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

Side by Side Diff: src/compiler/js-generic-lowering.cc

Issue 1412223015: [turbofan] Fix receiver binding for inlined callees. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comments. Created 5 years, 1 month 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/ast-graph-builder.cc ('k') | src/compiler/js-inlining.cc » ('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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/code-factory.h" 5 #include "src/code-factory.h"
6 #include "src/code-stubs.h" 6 #include "src/code-stubs.h"
7 #include "src/compiler/common-operator.h" 7 #include "src/compiler/common-operator.h"
8 #include "src/compiler/js-generic-lowering.h" 8 #include "src/compiler/js-generic-lowering.h"
9 #include "src/compiler/js-graph.h" 9 #include "src/compiler/js-graph.h"
10 #include "src/compiler/machine-operator.h" 10 #include "src/compiler/machine-operator.h"
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 #undef REPLACE_COMPARE_IC_CALL_WITH_LANGUAGE_MODE 110 #undef REPLACE_COMPARE_IC_CALL_WITH_LANGUAGE_MODE
111 111
112 112
113 #define REPLACE_RUNTIME_CALL(op, fun) \ 113 #define REPLACE_RUNTIME_CALL(op, fun) \
114 void JSGenericLowering::Lower##op(Node* node) { \ 114 void JSGenericLowering::Lower##op(Node* node) { \
115 ReplaceWithRuntimeCall(node, fun); \ 115 ReplaceWithRuntimeCall(node, fun); \
116 } 116 }
117 REPLACE_RUNTIME_CALL(JSCreateFunctionContext, Runtime::kNewFunctionContext) 117 REPLACE_RUNTIME_CALL(JSCreateFunctionContext, Runtime::kNewFunctionContext)
118 REPLACE_RUNTIME_CALL(JSCreateWithContext, Runtime::kPushWithContext) 118 REPLACE_RUNTIME_CALL(JSCreateWithContext, Runtime::kPushWithContext)
119 REPLACE_RUNTIME_CALL(JSCreateModuleContext, Runtime::kPushModuleContext) 119 REPLACE_RUNTIME_CALL(JSCreateModuleContext, Runtime::kPushModuleContext)
120 REPLACE_RUNTIME_CALL(JSConvertReceiver, Runtime::kConvertReceiver)
120 #undef REPLACE_RUNTIME 121 #undef REPLACE_RUNTIME
121 122
122 123
123 static CallDescriptor::Flags FlagsForNode(Node* node) { 124 static CallDescriptor::Flags FlagsForNode(Node* node) {
124 CallDescriptor::Flags result = CallDescriptor::kNoFlags; 125 CallDescriptor::Flags result = CallDescriptor::kNoFlags;
125 if (OperatorProperties::GetFrameStateInputCount(node->op()) > 0) { 126 if (OperatorProperties::GetFrameStateInputCount(node->op()) > 0) {
126 result |= CallDescriptor::kNeedsFrameState; 127 result |= CallDescriptor::kNeedsFrameState;
127 } 128 }
128 return result; 129 return result;
129 } 130 }
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after
838 } 839 }
839 840
840 841
841 MachineOperatorBuilder* JSGenericLowering::machine() const { 842 MachineOperatorBuilder* JSGenericLowering::machine() const {
842 return jsgraph()->machine(); 843 return jsgraph()->machine();
843 } 844 }
844 845
845 } // namespace compiler 846 } // namespace compiler
846 } // namespace internal 847 } // namespace internal
847 } // namespace v8 848 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/ast-graph-builder.cc ('k') | src/compiler/js-inlining.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698