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

Side by Side Diff: src/ia32/lithium-ia32.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/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/lithium-ia32.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 691 matching lines...) Expand 10 before | Expand all | Expand 10 after
2173 public: 2182 public:
2174 LTaggedToI(LOperand* value, LOperand* temp) { 2183 LTaggedToI(LOperand* value, LOperand* temp) {
2175 inputs_[0] = value; 2184 inputs_[0] = value;
2176 temps_[0] = temp; 2185 temps_[0] = temp;
2177 } 2186 }
2178 2187
2179 LOperand* value() { return inputs_[0]; } 2188 LOperand* value() { return inputs_[0]; }
2180 LOperand* temp() { return temps_[0]; } 2189 LOperand* temp() { return temps_[0]; }
2181 2190
2182 DECLARE_CONCRETE_INSTRUCTION(TaggedToI, "tagged-to-i") 2191 DECLARE_CONCRETE_INSTRUCTION(TaggedToI, "tagged-to-i")
2183 DECLARE_HYDROGEN_ACCESSOR(UnaryOperation) 2192 DECLARE_HYDROGEN_ACCESSOR(Change)
2184 2193
2185 bool truncating() { return hydrogen()->CanTruncateToInt32(); } 2194 bool truncating() { return hydrogen()->CanTruncateToInt32(); }
2186 }; 2195 };
2187 2196
2188 2197
2189 class LSmiTag V8_FINAL : public LTemplateInstruction<1, 1, 0> { 2198 class LSmiTag V8_FINAL : public LTemplateInstruction<1, 1, 0> {
2190 public: 2199 public:
2191 explicit LSmiTag(LOperand* value) { 2200 explicit LSmiTag(LOperand* value) {
2192 inputs_[0] = value; 2201 inputs_[0] = value;
2193 } 2202 }
(...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after
2891 int* argument_index_accumulator, 2900 int* argument_index_accumulator,
2892 ZoneList<HValue*>* objects_to_materialize); 2901 ZoneList<HValue*>* objects_to_materialize);
2893 2902
2894 void VisitInstruction(HInstruction* current); 2903 void VisitInstruction(HInstruction* current);
2895 2904
2896 void DoBasicBlock(HBasicBlock* block, HBasicBlock* next_block); 2905 void DoBasicBlock(HBasicBlock* block, HBasicBlock* next_block);
2897 LInstruction* DoShift(Token::Value op, HBitwiseBinaryOperation* instr); 2906 LInstruction* DoShift(Token::Value op, HBitwiseBinaryOperation* instr);
2898 LInstruction* DoArithmeticD(Token::Value op, 2907 LInstruction* DoArithmeticD(Token::Value op,
2899 HArithmeticBinaryOperation* instr); 2908 HArithmeticBinaryOperation* instr);
2900 LInstruction* DoArithmeticT(Token::Value op, 2909 LInstruction* DoArithmeticT(Token::Value op,
2901 HArithmeticBinaryOperation* instr); 2910 HBinaryOperation* instr);
2902 2911
2903 LOperand* GetStoreKeyedValueOperand(HStoreKeyed* instr); 2912 LOperand* GetStoreKeyedValueOperand(HStoreKeyed* instr);
2904 2913
2905 LPlatformChunk* chunk_; 2914 LPlatformChunk* chunk_;
2906 CompilationInfo* info_; 2915 CompilationInfo* info_;
2907 HGraph* const graph_; 2916 HGraph* const graph_;
2908 Zone* zone_; 2917 Zone* zone_;
2909 Status status_; 2918 Status status_;
2910 HInstruction* current_instruction_; 2919 HInstruction* current_instruction_;
2911 HBasicBlock* current_block_; 2920 HBasicBlock* current_block_;
2912 HBasicBlock* next_block_; 2921 HBasicBlock* next_block_;
2913 int argument_count_; 2922 int argument_count_;
2914 LAllocator* allocator_; 2923 LAllocator* allocator_;
2915 int position_; 2924 int position_;
2916 LInstruction* instruction_pending_deoptimization_environment_; 2925 LInstruction* instruction_pending_deoptimization_environment_;
2917 BailoutId pending_deoptimization_ast_id_; 2926 BailoutId pending_deoptimization_ast_id_;
2918 2927
2919 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2928 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2920 }; 2929 };
2921 2930
2922 #undef DECLARE_HYDROGEN_ACCESSOR 2931 #undef DECLARE_HYDROGEN_ACCESSOR
2923 #undef DECLARE_CONCRETE_INSTRUCTION 2932 #undef DECLARE_CONCRETE_INSTRUCTION
2924 2933
2925 } } // namespace v8::internal 2934 } } // namespace v8::internal
2926 2935
2927 #endif // V8_IA32_LITHIUM_IA32_H_ 2936 #endif // V8_IA32_LITHIUM_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/lithium-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698