OLD | NEW |
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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 | 293 |
294 Reduction JSIntrinsicLowering::ReduceToString(Node* node) { | 294 Reduction JSIntrinsicLowering::ReduceToString(Node* node) { |
295 NodeProperties::ChangeOp(node, javascript()->ToString()); | 295 NodeProperties::ChangeOp(node, javascript()->ToString()); |
296 return Changed(node); | 296 return Changed(node); |
297 } | 297 } |
298 | 298 |
299 | 299 |
300 Reduction JSIntrinsicLowering::ReduceCall(Node* node) { | 300 Reduction JSIntrinsicLowering::ReduceCall(Node* node) { |
301 size_t const arity = CallRuntimeParametersOf(node->op()).arity(); | 301 size_t const arity = CallRuntimeParametersOf(node->op()).arity(); |
302 NodeProperties::ChangeOp( | 302 NodeProperties::ChangeOp( |
303 node, javascript()->CallFunction(arity, 0.0f, VectorSlotPair(), | 303 node, |
304 ConvertReceiverMode::kAny, | 304 javascript()->Call(arity, 0.0f, VectorSlotPair(), |
305 TailCallMode::kDisallow)); | 305 ConvertReceiverMode::kAny, TailCallMode::kDisallow)); |
306 return Changed(node); | 306 return Changed(node); |
307 } | 307 } |
308 | 308 |
309 Reduction JSIntrinsicLowering::ReduceGetSuperConstructor(Node* node) { | 309 Reduction JSIntrinsicLowering::ReduceGetSuperConstructor(Node* node) { |
310 Node* active_function = NodeProperties::GetValueInput(node, 0); | 310 Node* active_function = NodeProperties::GetValueInput(node, 0); |
311 Node* effect = NodeProperties::GetEffectInput(node); | 311 Node* effect = NodeProperties::GetEffectInput(node); |
312 Node* control = NodeProperties::GetControlInput(node); | 312 Node* control = NodeProperties::GetControlInput(node); |
313 Node* active_function_map = effect = | 313 Node* active_function_map = effect = |
314 graph()->NewNode(simplified()->LoadField(AccessBuilder::ForMap()), | 314 graph()->NewNode(simplified()->LoadField(AccessBuilder::ForMap()), |
315 active_function, effect, control); | 315 active_function, effect, control); |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 return jsgraph_->javascript(); | 410 return jsgraph_->javascript(); |
411 } | 411 } |
412 | 412 |
413 SimplifiedOperatorBuilder* JSIntrinsicLowering::simplified() const { | 413 SimplifiedOperatorBuilder* JSIntrinsicLowering::simplified() const { |
414 return jsgraph()->simplified(); | 414 return jsgraph()->simplified(); |
415 } | 415 } |
416 | 416 |
417 } // namespace compiler | 417 } // namespace compiler |
418 } // namespace internal | 418 } // namespace internal |
419 } // namespace v8 | 419 } // namespace v8 |
OLD | NEW |