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

Side by Side Diff: src/arm/lithium-arm.h

Issue 153913002: A64: Synchronize with r16756. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/arm/lithium-arm.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 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 1444 matching lines...) Expand 10 before | Expand all | Expand 10 after
1455 } 1455 }
1456 1456
1457 LOperand* left() { return inputs_[0]; } 1457 LOperand* left() { return inputs_[0]; }
1458 LOperand* right() { return inputs_[1]; } 1458 LOperand* right() { return inputs_[1]; }
1459 1459
1460 DECLARE_CONCRETE_INSTRUCTION(Power, "power") 1460 DECLARE_CONCRETE_INSTRUCTION(Power, "power")
1461 DECLARE_HYDROGEN_ACCESSOR(Power) 1461 DECLARE_HYDROGEN_ACCESSOR(Power)
1462 }; 1462 };
1463 1463
1464 1464
1465 class LRandom V8_FINAL : public LTemplateInstruction<1, 1, 0> { 1465 class LRandom V8_FINAL : public LTemplateInstruction<1, 1, 3> {
1466 public: 1466 public:
1467 explicit LRandom(LOperand* global_object) { 1467 LRandom(LOperand* global_object,
1468 LOperand* scratch,
1469 LOperand* scratch2,
1470 LOperand* scratch3) {
1468 inputs_[0] = global_object; 1471 inputs_[0] = global_object;
1472 temps_[0] = scratch;
1473 temps_[1] = scratch2;
1474 temps_[2] = scratch3;
1469 } 1475 }
1470 1476
1471 LOperand* global_object() { return inputs_[0]; } 1477 LOperand* global_object() const { return inputs_[0]; }
1478 LOperand* scratch() const { return temps_[0]; }
1479 LOperand* scratch2() const { return temps_[1]; }
1480 LOperand* scratch3() const { return temps_[2]; }
1472 1481
1473 DECLARE_CONCRETE_INSTRUCTION(Random, "random") 1482 DECLARE_CONCRETE_INSTRUCTION(Random, "random")
1474 DECLARE_HYDROGEN_ACCESSOR(Random) 1483 DECLARE_HYDROGEN_ACCESSOR(Random)
1475 }; 1484 };
1476 1485
1477 1486
1478 class LArithmeticD V8_FINAL : public LTemplateInstruction<1, 2, 0> { 1487 class LArithmeticD V8_FINAL : public LTemplateInstruction<1, 2, 0> {
1479 public: 1488 public:
1480 LArithmeticD(Token::Value op, LOperand* left, LOperand* right) 1489 LArithmeticD(Token::Value op, LOperand* left, LOperand* right)
1481 : op_(op) { 1490 : op_(op) {
(...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after
2103 inputs_[0] = value; 2112 inputs_[0] = value;
2104 temps_[0] = temp; 2113 temps_[0] = temp;
2105 temps_[1] = temp2; 2114 temps_[1] = temp2;
2106 } 2115 }
2107 2116
2108 LOperand* value() { return inputs_[0]; } 2117 LOperand* value() { return inputs_[0]; }
2109 LOperand* temp() { return temps_[0]; } 2118 LOperand* temp() { return temps_[0]; }
2110 LOperand* temp2() { return temps_[1]; } 2119 LOperand* temp2() { return temps_[1]; }
2111 2120
2112 DECLARE_CONCRETE_INSTRUCTION(TaggedToI, "tagged-to-i") 2121 DECLARE_CONCRETE_INSTRUCTION(TaggedToI, "tagged-to-i")
2113 DECLARE_HYDROGEN_ACCESSOR(UnaryOperation) 2122 DECLARE_HYDROGEN_ACCESSOR(Change)
2114 2123
2115 bool truncating() { return hydrogen()->CanTruncateToInt32(); } 2124 bool truncating() { return hydrogen()->CanTruncateToInt32(); }
2116 }; 2125 };
2117 2126
2118 2127
2119 class LSmiTag V8_FINAL : public LTemplateInstruction<1, 1, 0> { 2128 class LSmiTag V8_FINAL : public LTemplateInstruction<1, 1, 0> {
2120 public: 2129 public:
2121 explicit LSmiTag(LOperand* value) { 2130 explicit LSmiTag(LOperand* value) {
2122 inputs_[0] = value; 2131 inputs_[0] = value;
2123 } 2132 }
(...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after
2762 int* argument_index_accumulator, 2771 int* argument_index_accumulator,
2763 ZoneList<HValue*>* objects_to_materialize); 2772 ZoneList<HValue*>* objects_to_materialize);
2764 2773
2765 void VisitInstruction(HInstruction* current); 2774 void VisitInstruction(HInstruction* current);
2766 2775
2767 void DoBasicBlock(HBasicBlock* block, HBasicBlock* next_block); 2776 void DoBasicBlock(HBasicBlock* block, HBasicBlock* next_block);
2768 LInstruction* DoShift(Token::Value op, HBitwiseBinaryOperation* instr); 2777 LInstruction* DoShift(Token::Value op, HBitwiseBinaryOperation* instr);
2769 LInstruction* DoArithmeticD(Token::Value op, 2778 LInstruction* DoArithmeticD(Token::Value op,
2770 HArithmeticBinaryOperation* instr); 2779 HArithmeticBinaryOperation* instr);
2771 LInstruction* DoArithmeticT(Token::Value op, 2780 LInstruction* DoArithmeticT(Token::Value op,
2772 HArithmeticBinaryOperation* instr); 2781 HBinaryOperation* instr);
2773 2782
2774 LPlatformChunk* chunk_; 2783 LPlatformChunk* chunk_;
2775 CompilationInfo* info_; 2784 CompilationInfo* info_;
2776 HGraph* const graph_; 2785 HGraph* const graph_;
2777 Zone* zone_; 2786 Zone* zone_;
2778 Status status_; 2787 Status status_;
2779 HInstruction* current_instruction_; 2788 HInstruction* current_instruction_;
2780 HBasicBlock* current_block_; 2789 HBasicBlock* current_block_;
2781 HBasicBlock* next_block_; 2790 HBasicBlock* next_block_;
2782 int argument_count_; 2791 int argument_count_;
2783 LAllocator* allocator_; 2792 LAllocator* allocator_;
2784 int position_; 2793 int position_;
2785 LInstruction* instruction_pending_deoptimization_environment_; 2794 LInstruction* instruction_pending_deoptimization_environment_;
2786 BailoutId pending_deoptimization_ast_id_; 2795 BailoutId pending_deoptimization_ast_id_;
2787 2796
2788 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2797 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2789 }; 2798 };
2790 2799
2791 #undef DECLARE_HYDROGEN_ACCESSOR 2800 #undef DECLARE_HYDROGEN_ACCESSOR
2792 #undef DECLARE_CONCRETE_INSTRUCTION 2801 #undef DECLARE_CONCRETE_INSTRUCTION
2793 2802
2794 } } // namespace v8::internal 2803 } } // namespace v8::internal
2795 2804
2796 #endif // V8_ARM_LITHIUM_ARM_H_ 2805 #endif // V8_ARM_LITHIUM_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/arm/lithium-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698