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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 | 295 |
296 | 296 |
297 Reduction JSIntrinsicLowering::ReduceToString(Node* node) { | 297 Reduction JSIntrinsicLowering::ReduceToString(Node* node) { |
298 NodeProperties::ChangeOp(node, javascript()->ToString()); | 298 NodeProperties::ChangeOp(node, javascript()->ToString()); |
299 return Changed(node); | 299 return Changed(node); |
300 } | 300 } |
301 | 301 |
302 | 302 |
303 Reduction JSIntrinsicLowering::ReduceCall(Node* node) { | 303 Reduction JSIntrinsicLowering::ReduceCall(Node* node) { |
304 size_t const arity = CallRuntimeParametersOf(node->op()).arity(); | 304 size_t const arity = CallRuntimeParametersOf(node->op()).arity(); |
305 NodeProperties::ChangeOp(node, | 305 NodeProperties::ChangeOp( |
306 javascript()->CallFunction(arity, VectorSlotPair(), | 306 node, javascript()->CallFunction(arity, 0.0f, VectorSlotPair(), |
307 ConvertReceiverMode::kAny, | 307 ConvertReceiverMode::kAny, |
308 TailCallMode::kDisallow)); | 308 TailCallMode::kDisallow)); |
309 return Changed(node); | 309 return Changed(node); |
310 } | 310 } |
311 | 311 |
312 Reduction JSIntrinsicLowering::ReduceNewObject(Node* node) { | 312 Reduction JSIntrinsicLowering::ReduceNewObject(Node* node) { |
313 return Change(node, CodeFactory::FastNewObject(isolate()), 0); | 313 return Change(node, CodeFactory::FastNewObject(isolate()), 0); |
314 } | 314 } |
315 | 315 |
316 Reduction JSIntrinsicLowering::ReduceGetSuperConstructor(Node* node) { | 316 Reduction JSIntrinsicLowering::ReduceGetSuperConstructor(Node* node) { |
317 Node* active_function = NodeProperties::GetValueInput(node, 0); | 317 Node* active_function = NodeProperties::GetValueInput(node, 0); |
318 Node* effect = NodeProperties::GetEffectInput(node); | 318 Node* effect = NodeProperties::GetEffectInput(node); |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 return jsgraph_->javascript(); | 386 return jsgraph_->javascript(); |
387 } | 387 } |
388 | 388 |
389 SimplifiedOperatorBuilder* JSIntrinsicLowering::simplified() const { | 389 SimplifiedOperatorBuilder* JSIntrinsicLowering::simplified() const { |
390 return jsgraph()->simplified(); | 390 return jsgraph()->simplified(); |
391 } | 391 } |
392 | 392 |
393 } // namespace compiler | 393 } // namespace compiler |
394 } // namespace internal | 394 } // namespace internal |
395 } // namespace v8 | 395 } // namespace v8 |
OLD | NEW |