| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 2095 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2106 explicit LPushArgument(LOperand* value) { | 2106 explicit LPushArgument(LOperand* value) { |
| 2107 inputs_[0] = value; | 2107 inputs_[0] = value; |
| 2108 } | 2108 } |
| 2109 | 2109 |
| 2110 LOperand* value() { return inputs_[0]; } | 2110 LOperand* value() { return inputs_[0]; } |
| 2111 | 2111 |
| 2112 DECLARE_CONCRETE_INSTRUCTION(PushArgument, "push-argument") | 2112 DECLARE_CONCRETE_INSTRUCTION(PushArgument, "push-argument") |
| 2113 }; | 2113 }; |
| 2114 | 2114 |
| 2115 | 2115 |
| 2116 // TODO(all): This will disappear when Math.random is rewritten in JavaScript. |
| 2116 class LRandom V8_FINAL : public LTemplateInstruction<1, 1, 0> { | 2117 class LRandom V8_FINAL : public LTemplateInstruction<1, 1, 0> { |
| 2117 public: | 2118 public: |
| 2118 explicit LRandom(LOperand* global_object) { | 2119 explicit LRandom(LOperand* global_object) { |
| 2119 inputs_[0] = global_object; | 2120 inputs_[0] = global_object; |
| 2120 } | 2121 } |
| 2121 | 2122 |
| 2122 LOperand* global_object() { return inputs_[0]; } | 2123 LOperand* global_object() { return inputs_[0]; } |
| 2123 | 2124 |
| 2124 DECLARE_CONCRETE_INSTRUCTION(Random, "random") | 2125 DECLARE_CONCRETE_INSTRUCTION(Random, "random") |
| 2125 DECLARE_HYDROGEN_ACCESSOR(Random) | 2126 DECLARE_HYDROGEN_ACCESSOR(Random) |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2450 inputs_[0] = value; | 2451 inputs_[0] = value; |
| 2451 temps_[0] = temp1; | 2452 temps_[0] = temp1; |
| 2452 temps_[1] = temp2; | 2453 temps_[1] = temp2; |
| 2453 } | 2454 } |
| 2454 | 2455 |
| 2455 LOperand* value() { return inputs_[0]; } | 2456 LOperand* value() { return inputs_[0]; } |
| 2456 LOperand* temp1() { return temps_[0]; } | 2457 LOperand* temp1() { return temps_[0]; } |
| 2457 LOperand* temp2() { return temps_[1]; } | 2458 LOperand* temp2() { return temps_[1]; } |
| 2458 | 2459 |
| 2459 DECLARE_CONCRETE_INSTRUCTION(TaggedToI, "tagged-to-i") | 2460 DECLARE_CONCRETE_INSTRUCTION(TaggedToI, "tagged-to-i") |
| 2460 DECLARE_HYDROGEN_ACCESSOR(UnaryOperation) | 2461 DECLARE_HYDROGEN_ACCESSOR(Change) |
| 2461 | 2462 |
| 2462 bool truncating() { return hydrogen()->CanTruncateToInt32(); } | 2463 bool truncating() { return hydrogen()->CanTruncateToInt32(); } |
| 2463 }; | 2464 }; |
| 2464 | 2465 |
| 2465 | 2466 |
| 2466 class LShiftI V8_FINAL : public LTemplateInstruction<1, 2, 0> { | 2467 class LShiftI V8_FINAL : public LTemplateInstruction<1, 2, 0> { |
| 2467 public: | 2468 public: |
| 2468 LShiftI(Token::Value op, LOperand* left, LOperand* right, bool can_deopt) | 2469 LShiftI(Token::Value op, LOperand* left, LOperand* right, bool can_deopt) |
| 2469 : op_(op), can_deopt_(can_deopt) { | 2470 : op_(op), can_deopt_(can_deopt) { |
| 2470 inputs_[0] = left; | 2471 inputs_[0] = left; |
| (...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2965 | 2966 |
| 2966 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2967 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2967 }; | 2968 }; |
| 2968 | 2969 |
| 2969 #undef DECLARE_HYDROGEN_ACCESSOR | 2970 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2970 #undef DECLARE_CONCRETE_INSTRUCTION | 2971 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2971 | 2972 |
| 2972 } } // namespace v8::internal | 2973 } } // namespace v8::internal |
| 2973 | 2974 |
| 2974 #endif // V8_A64_LITHIUM_A64_H_ | 2975 #endif // V8_A64_LITHIUM_A64_H_ |
| OLD | NEW |