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 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 ReplaceWithValue(node, m.node()); | 331 ReplaceWithValue(node, m.node()); |
332 return Replace(m.node()); | 332 return Replace(m.node()); |
333 } | 333 } |
334 NodeProperties::ChangeOp(node, javascript()->ToString()); | 334 NodeProperties::ChangeOp(node, javascript()->ToString()); |
335 return Changed(node); | 335 return Changed(node); |
336 } | 336 } |
337 | 337 |
338 | 338 |
339 Reduction JSIntrinsicLowering::ReduceCall(Node* node) { | 339 Reduction JSIntrinsicLowering::ReduceCall(Node* node) { |
340 size_t const arity = CallRuntimeParametersOf(node->op()).arity(); | 340 size_t const arity = CallRuntimeParametersOf(node->op()).arity(); |
341 NodeProperties::ChangeOp( | 341 NodeProperties::ChangeOp(node, javascript()->Call(arity)); |
342 node, | |
343 javascript()->Call(arity, 0.0f, VectorSlotPair(), | |
344 ConvertReceiverMode::kAny, TailCallMode::kDisallow)); | |
345 return Changed(node); | 342 return Changed(node); |
346 } | 343 } |
347 | 344 |
348 Reduction JSIntrinsicLowering::ReduceGetSuperConstructor(Node* node) { | 345 Reduction JSIntrinsicLowering::ReduceGetSuperConstructor(Node* node) { |
349 NodeProperties::ChangeOp(node, javascript()->GetSuperConstructor()); | 346 NodeProperties::ChangeOp(node, javascript()->GetSuperConstructor()); |
350 return Changed(node); | 347 return Changed(node); |
351 } | 348 } |
352 | 349 |
353 Reduction JSIntrinsicLowering::ReduceArrayBufferViewField( | 350 Reduction JSIntrinsicLowering::ReduceArrayBufferViewField( |
354 Node* node, FieldAccess const& access) { | 351 Node* node, FieldAccess const& access) { |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
497 return jsgraph_->javascript(); | 494 return jsgraph_->javascript(); |
498 } | 495 } |
499 | 496 |
500 SimplifiedOperatorBuilder* JSIntrinsicLowering::simplified() const { | 497 SimplifiedOperatorBuilder* JSIntrinsicLowering::simplified() const { |
501 return jsgraph()->simplified(); | 498 return jsgraph()->simplified(); |
502 } | 499 } |
503 | 500 |
504 } // namespace compiler | 501 } // namespace compiler |
505 } // namespace internal | 502 } // namespace internal |
506 } // namespace v8 | 503 } // namespace v8 |
OLD | NEW |