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

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

Issue 2913783002: [builtins] Begin removing CodeFactory accessors (Closed)
Patch Set: V8_EXPORT_PRIVATE Created 3 years, 6 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-generic-lowering.cc ('k') | src/compiler/js-typed-lowering.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 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/js-intrinsic-lowering.h" 5 #include "src/compiler/js-intrinsic-lowering.h"
6 6
7 #include <stack> 7 #include <stack>
8 8
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/compiler/access-builder.h" 10 #include "src/compiler/access-builder.h"
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 Node* const generator = NodeProperties::GetValueInput(node, 0); 203 Node* const generator = NodeProperties::GetValueInput(node, 0);
204 Node* const effect = NodeProperties::GetEffectInput(node); 204 Node* const effect = NodeProperties::GetEffectInput(node);
205 Node* const control = NodeProperties::GetControlInput(node); 205 Node* const control = NodeProperties::GetControlInput(node);
206 Operator const* const op = simplified()->LoadField( 206 Operator const* const op = simplified()->LoadField(
207 AccessBuilder::ForJSAsyncGeneratorObjectAwaitInputOrDebugPos()); 207 AccessBuilder::ForJSAsyncGeneratorObjectAwaitInputOrDebugPos());
208 208
209 return Change(node, op, generator, effect, control); 209 return Change(node, op, generator, effect, control);
210 } 210 }
211 211
212 Reduction JSIntrinsicLowering::ReduceAsyncGeneratorReject(Node* node) { 212 Reduction JSIntrinsicLowering::ReduceAsyncGeneratorReject(Node* node) {
213 return Change(node, CodeFactory::AsyncGeneratorReject(isolate()), 0); 213 return Change(
214 node, Builtins::CallableFor(isolate(), Builtins::kAsyncGeneratorReject),
215 0);
214 } 216 }
215 217
216 Reduction JSIntrinsicLowering::ReduceAsyncGeneratorResolve(Node* node) { 218 Reduction JSIntrinsicLowering::ReduceAsyncGeneratorResolve(Node* node) {
217 return Change(node, CodeFactory::AsyncGeneratorResolve(isolate()), 0); 219 return Change(
220 node, Builtins::CallableFor(isolate(), Builtins::kAsyncGeneratorResolve),
221 0);
218 } 222 }
219 223
220 Reduction JSIntrinsicLowering::ReduceGeneratorGetContext(Node* node) { 224 Reduction JSIntrinsicLowering::ReduceGeneratorGetContext(Node* node) {
221 Node* const generator = NodeProperties::GetValueInput(node, 0); 225 Node* const generator = NodeProperties::GetValueInput(node, 0);
222 Node* const effect = NodeProperties::GetEffectInput(node); 226 Node* const effect = NodeProperties::GetEffectInput(node);
223 Node* const control = NodeProperties::GetControlInput(node); 227 Node* const control = NodeProperties::GetControlInput(node);
224 Operator const* const op = 228 Operator const* const op =
225 simplified()->LoadField(AccessBuilder::ForJSGeneratorObjectContext()); 229 simplified()->LoadField(AccessBuilder::ForJSGeneratorObjectContext());
226 230
227 return Change(node, op, generator, effect, control); 231 return Change(node, op, generator, effect, control);
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 return jsgraph_->javascript(); 525 return jsgraph_->javascript();
522 } 526 }
523 527
524 SimplifiedOperatorBuilder* JSIntrinsicLowering::simplified() const { 528 SimplifiedOperatorBuilder* JSIntrinsicLowering::simplified() const {
525 return jsgraph()->simplified(); 529 return jsgraph()->simplified();
526 } 530 }
527 531
528 } // namespace compiler 532 } // namespace compiler
529 } // namespace internal 533 } // namespace internal
530 } // namespace v8 534 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-generic-lowering.cc ('k') | src/compiler/js-typed-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698