| 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 1386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1397 } | 1397 } |
| 1398 | 1398 |
| 1399 LOperand* left() { return inputs_[0]; } | 1399 LOperand* left() { return inputs_[0]; } |
| 1400 LOperand* right() { return inputs_[1]; } | 1400 LOperand* right() { return inputs_[1]; } |
| 1401 | 1401 |
| 1402 DECLARE_CONCRETE_INSTRUCTION(Power, "power") | 1402 DECLARE_CONCRETE_INSTRUCTION(Power, "power") |
| 1403 DECLARE_HYDROGEN_ACCESSOR(Power) | 1403 DECLARE_HYDROGEN_ACCESSOR(Power) |
| 1404 }; | 1404 }; |
| 1405 | 1405 |
| 1406 | 1406 |
| 1407 class LRandom V8_FINAL : public LTemplateInstruction<1, 1, 0> { | 1407 class LRandom V8_FINAL : public LTemplateInstruction<1, 1, 3> { |
| 1408 public: | 1408 public: |
| 1409 explicit LRandom(LOperand* global_object) { | 1409 LRandom(LOperand* global_object, |
| 1410 LOperand* scratch, |
| 1411 LOperand* scratch2, |
| 1412 LOperand* scratch3) { |
| 1410 inputs_[0] = global_object; | 1413 inputs_[0] = global_object; |
| 1414 temps_[0] = scratch; |
| 1415 temps_[1] = scratch2; |
| 1416 temps_[2] = scratch3; |
| 1411 } | 1417 } |
| 1412 | 1418 |
| 1413 LOperand* global_object() { return inputs_[0]; } | 1419 LOperand* global_object() { return inputs_[0]; } |
| 1420 LOperand* scratch() const { return temps_[0]; } |
| 1421 LOperand* scratch2() const { return temps_[1]; } |
| 1422 LOperand* scratch3() const { return temps_[2]; } |
| 1414 | 1423 |
| 1415 DECLARE_CONCRETE_INSTRUCTION(Random, "random") | 1424 DECLARE_CONCRETE_INSTRUCTION(Random, "random") |
| 1416 DECLARE_HYDROGEN_ACCESSOR(Random) | 1425 DECLARE_HYDROGEN_ACCESSOR(Random) |
| 1417 }; | 1426 }; |
| 1418 | 1427 |
| 1419 | 1428 |
| 1420 class LArithmeticD V8_FINAL : public LTemplateInstruction<1, 2, 0> { | 1429 class LArithmeticD V8_FINAL : public LTemplateInstruction<1, 2, 0> { |
| 1421 public: | 1430 public: |
| 1422 LArithmeticD(Token::Value op, LOperand* left, LOperand* right) | 1431 LArithmeticD(Token::Value op, LOperand* left, LOperand* right) |
| 1423 : op_(op) { | 1432 : op_(op) { |
| (...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2033 public: | 2042 public: |
| 2034 LTaggedToI(LOperand* value, LOperand* temp) { | 2043 LTaggedToI(LOperand* value, LOperand* temp) { |
| 2035 inputs_[0] = value; | 2044 inputs_[0] = value; |
| 2036 temps_[0] = temp; | 2045 temps_[0] = temp; |
| 2037 } | 2046 } |
| 2038 | 2047 |
| 2039 LOperand* value() { return inputs_[0]; } | 2048 LOperand* value() { return inputs_[0]; } |
| 2040 LOperand* temp() { return temps_[0]; } | 2049 LOperand* temp() { return temps_[0]; } |
| 2041 | 2050 |
| 2042 DECLARE_CONCRETE_INSTRUCTION(TaggedToI, "tagged-to-i") | 2051 DECLARE_CONCRETE_INSTRUCTION(TaggedToI, "tagged-to-i") |
| 2043 DECLARE_HYDROGEN_ACCESSOR(UnaryOperation) | 2052 DECLARE_HYDROGEN_ACCESSOR(Change) |
| 2044 | 2053 |
| 2045 bool truncating() { return hydrogen()->CanTruncateToInt32(); } | 2054 bool truncating() { return hydrogen()->CanTruncateToInt32(); } |
| 2046 }; | 2055 }; |
| 2047 | 2056 |
| 2048 | 2057 |
| 2049 class LSmiTag V8_FINAL : public LTemplateInstruction<1, 1, 0> { | 2058 class LSmiTag V8_FINAL : public LTemplateInstruction<1, 1, 0> { |
| 2050 public: | 2059 public: |
| 2051 explicit LSmiTag(LOperand* value) { | 2060 explicit LSmiTag(LOperand* value) { |
| 2052 inputs_[0] = value; | 2061 inputs_[0] = value; |
| 2053 } | 2062 } |
| (...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2685 int* argument_index_accumulator, | 2694 int* argument_index_accumulator, |
| 2686 ZoneList<HValue*>* objects_to_materialize); | 2695 ZoneList<HValue*>* objects_to_materialize); |
| 2687 | 2696 |
| 2688 void VisitInstruction(HInstruction* current); | 2697 void VisitInstruction(HInstruction* current); |
| 2689 | 2698 |
| 2690 void DoBasicBlock(HBasicBlock* block, HBasicBlock* next_block); | 2699 void DoBasicBlock(HBasicBlock* block, HBasicBlock* next_block); |
| 2691 LInstruction* DoShift(Token::Value op, HBitwiseBinaryOperation* instr); | 2700 LInstruction* DoShift(Token::Value op, HBitwiseBinaryOperation* instr); |
| 2692 LInstruction* DoArithmeticD(Token::Value op, | 2701 LInstruction* DoArithmeticD(Token::Value op, |
| 2693 HArithmeticBinaryOperation* instr); | 2702 HArithmeticBinaryOperation* instr); |
| 2694 LInstruction* DoArithmeticT(Token::Value op, | 2703 LInstruction* DoArithmeticT(Token::Value op, |
| 2695 HArithmeticBinaryOperation* instr); | 2704 HBinaryOperation* instr); |
| 2696 | 2705 |
| 2697 LPlatformChunk* chunk_; | 2706 LPlatformChunk* chunk_; |
| 2698 CompilationInfo* info_; | 2707 CompilationInfo* info_; |
| 2699 HGraph* const graph_; | 2708 HGraph* const graph_; |
| 2700 Zone* zone_; | 2709 Zone* zone_; |
| 2701 Status status_; | 2710 Status status_; |
| 2702 HInstruction* current_instruction_; | 2711 HInstruction* current_instruction_; |
| 2703 HBasicBlock* current_block_; | 2712 HBasicBlock* current_block_; |
| 2704 HBasicBlock* next_block_; | 2713 HBasicBlock* next_block_; |
| 2705 int argument_count_; | 2714 int argument_count_; |
| 2706 LAllocator* allocator_; | 2715 LAllocator* allocator_; |
| 2707 int position_; | 2716 int position_; |
| 2708 LInstruction* instruction_pending_deoptimization_environment_; | 2717 LInstruction* instruction_pending_deoptimization_environment_; |
| 2709 BailoutId pending_deoptimization_ast_id_; | 2718 BailoutId pending_deoptimization_ast_id_; |
| 2710 | 2719 |
| 2711 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2720 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2712 }; | 2721 }; |
| 2713 | 2722 |
| 2714 #undef DECLARE_HYDROGEN_ACCESSOR | 2723 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2715 #undef DECLARE_CONCRETE_INSTRUCTION | 2724 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2716 | 2725 |
| 2717 } } // namespace v8::int | 2726 } } // namespace v8::int |
| 2718 | 2727 |
| 2719 #endif // V8_X64_LITHIUM_X64_H_ | 2728 #endif // V8_X64_LITHIUM_X64_H_ |
| OLD | NEW |