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

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

Issue 1963583004: [turbofan] Initial version of allocation folding and write barrier elimination. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Jaros comments; Created 4 years, 7 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/js-create-lowering.cc ('k') | src/compiler/js-native-context-specialization.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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 void JSGenericLowering::LowerJSStrictNotEqual(Node* node) { 131 void JSGenericLowering::LowerJSStrictNotEqual(Node* node) {
132 Callable callable = CodeFactory::StrictNotEqual(isolate()); 132 Callable callable = CodeFactory::StrictNotEqual(isolate());
133 node->AppendInput(zone(), graph()->start()); 133 node->AppendInput(zone(), graph()->start());
134 ReplaceWithStubCall(node, callable, CallDescriptor::kNoFlags, 134 ReplaceWithStubCall(node, callable, CallDescriptor::kNoFlags,
135 Operator::kEliminatable); 135 Operator::kEliminatable);
136 } 136 }
137 137
138 void JSGenericLowering::LowerJSToBoolean(Node* node) { 138 void JSGenericLowering::LowerJSToBoolean(Node* node) {
139 Callable callable = CodeFactory::ToBoolean(isolate()); 139 Callable callable = CodeFactory::ToBoolean(isolate());
140 node->AppendInput(zone(), graph()->start()); 140 node->AppendInput(zone(), graph()->start());
141 ReplaceWithStubCall(node, callable, CallDescriptor::kNoFlags, 141 ReplaceWithStubCall(node, callable, CallDescriptor::kNoAllocate,
142 Operator::kEliminatable); 142 Operator::kEliminatable);
143 } 143 }
144 144
145 void JSGenericLowering::LowerJSTypeOf(Node* node) { 145 void JSGenericLowering::LowerJSTypeOf(Node* node) {
146 Callable callable = CodeFactory::Typeof(isolate()); 146 Callable callable = CodeFactory::Typeof(isolate());
147 node->AppendInput(zone(), graph()->start()); 147 node->AppendInput(zone(), graph()->start());
148 ReplaceWithStubCall(node, callable, CallDescriptor::kNoFlags, 148 ReplaceWithStubCall(node, callable, CallDescriptor::kNoAllocate,
149 Operator::kEliminatable); 149 Operator::kEliminatable);
150 } 150 }
151 151
152 152
153 void JSGenericLowering::LowerJSLoadProperty(Node* node) { 153 void JSGenericLowering::LowerJSLoadProperty(Node* node) {
154 Node* closure = NodeProperties::GetValueInput(node, 2); 154 Node* closure = NodeProperties::GetValueInput(node, 2);
155 Node* effect = NodeProperties::GetEffectInput(node); 155 Node* effect = NodeProperties::GetEffectInput(node);
156 Node* control = NodeProperties::GetControlInput(node); 156 Node* control = NodeProperties::GetControlInput(node);
157 CallDescriptor::Flags flags = AdjustFrameStatesForCall(node); 157 CallDescriptor::Flags flags = AdjustFrameStatesForCall(node);
158 const PropertyAccess& p = PropertyAccessOf(node->op()); 158 const PropertyAccess& p = PropertyAccessOf(node->op());
(...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after
740 } 740 }
741 741
742 742
743 MachineOperatorBuilder* JSGenericLowering::machine() const { 743 MachineOperatorBuilder* JSGenericLowering::machine() const {
744 return jsgraph()->machine(); 744 return jsgraph()->machine();
745 } 745 }
746 746
747 } // namespace compiler 747 } // namespace compiler
748 } // namespace internal 748 } // namespace internal
749 } // namespace v8 749 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-create-lowering.cc ('k') | src/compiler/js-native-context-specialization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698