OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 1454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1465 FunctionLiteral* function_; | 1465 FunctionLiteral* function_; |
1466 CallKind call_kind_; | 1466 CallKind call_kind_; |
1467 InliningKind inlining_kind_; | 1467 InliningKind inlining_kind_; |
1468 Variable* arguments_var_; | 1468 Variable* arguments_var_; |
1469 ZoneList<HValue*>* arguments_values_; | 1469 ZoneList<HValue*>* arguments_values_; |
1470 }; | 1470 }; |
1471 | 1471 |
1472 | 1472 |
1473 class HLeaveInlined: public HTemplateInstruction<0> { | 1473 class HLeaveInlined: public HTemplateInstruction<0> { |
1474 public: | 1474 public: |
1475 HLeaveInlined() { } | 1475 explicit HLeaveInlined(bool arguments_pushed) |
| 1476 : arguments_pushed_(arguments_pushed) { } |
1476 | 1477 |
1477 virtual Representation RequiredInputRepresentation(int index) { | 1478 virtual Representation RequiredInputRepresentation(int index) { |
1478 return Representation::None(); | 1479 return Representation::None(); |
1479 } | 1480 } |
1480 | 1481 |
| 1482 bool arguments_pushed() { |
| 1483 return arguments_pushed_; |
| 1484 } |
| 1485 |
1481 DECLARE_CONCRETE_INSTRUCTION(LeaveInlined) | 1486 DECLARE_CONCRETE_INSTRUCTION(LeaveInlined) |
| 1487 |
| 1488 private: |
| 1489 bool arguments_pushed_; |
1482 }; | 1490 }; |
1483 | 1491 |
1484 | 1492 |
1485 class HPushArgument: public HUnaryOperation { | 1493 class HPushArgument: public HUnaryOperation { |
1486 public: | 1494 public: |
1487 explicit HPushArgument(HValue* value) : HUnaryOperation(value) { | 1495 explicit HPushArgument(HValue* value) : HUnaryOperation(value) { |
1488 set_representation(Representation::Tagged()); | 1496 set_representation(Representation::Tagged()); |
1489 } | 1497 } |
1490 | 1498 |
1491 virtual Representation RequiredInputRepresentation(int index) { | 1499 virtual Representation RequiredInputRepresentation(int index) { |
(...skipping 3028 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4520 class HStoreKeyedFastDoubleElement | 4528 class HStoreKeyedFastDoubleElement |
4521 : public HTemplateInstruction<3>, public ArrayInstructionInterface { | 4529 : public HTemplateInstruction<3>, public ArrayInstructionInterface { |
4522 public: | 4530 public: |
4523 HStoreKeyedFastDoubleElement(HValue* elements, | 4531 HStoreKeyedFastDoubleElement(HValue* elements, |
4524 HValue* key, | 4532 HValue* key, |
4525 HValue* val) | 4533 HValue* val) |
4526 : index_offset_(0), is_dehoisted_(false) { | 4534 : index_offset_(0), is_dehoisted_(false) { |
4527 SetOperandAt(0, elements); | 4535 SetOperandAt(0, elements); |
4528 SetOperandAt(1, key); | 4536 SetOperandAt(1, key); |
4529 SetOperandAt(2, val); | 4537 SetOperandAt(2, val); |
4530 SetFlag(kDeoptimizeOnUndefined); | |
4531 SetGVNFlag(kChangesDoubleArrayElements); | 4538 SetGVNFlag(kChangesDoubleArrayElements); |
4532 } | 4539 } |
4533 | 4540 |
4534 virtual Representation RequiredInputRepresentation(int index) { | 4541 virtual Representation RequiredInputRepresentation(int index) { |
4535 if (index == 1) { | 4542 if (index == 1) { |
4536 return Representation::Integer32(); | 4543 return Representation::Integer32(); |
4537 } else if (index == 2) { | 4544 } else if (index == 2) { |
4538 return Representation::Double(); | 4545 return Representation::Double(); |
4539 } else { | 4546 } else { |
4540 return Representation::Tagged(); | 4547 return Representation::Tagged(); |
(...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5282 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex); | 5289 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex); |
5283 }; | 5290 }; |
5284 | 5291 |
5285 | 5292 |
5286 #undef DECLARE_INSTRUCTION | 5293 #undef DECLARE_INSTRUCTION |
5287 #undef DECLARE_CONCRETE_INSTRUCTION | 5294 #undef DECLARE_CONCRETE_INSTRUCTION |
5288 | 5295 |
5289 } } // namespace v8::internal | 5296 } } // namespace v8::internal |
5290 | 5297 |
5291 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 5298 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |