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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 V(CmpMapAndBranch) \ | 86 V(CmpMapAndBranch) \ |
87 V(CmpT) \ | 87 V(CmpT) \ |
88 V(ConstantD) \ | 88 V(ConstantD) \ |
89 V(ConstantI) \ | 89 V(ConstantI) \ |
90 V(ConstantS) \ | 90 V(ConstantS) \ |
91 V(ConstantT) \ | 91 V(ConstantT) \ |
92 V(Context) \ | 92 V(Context) \ |
93 V(DebugBreak) \ | 93 V(DebugBreak) \ |
94 V(DeclareGlobals) \ | 94 V(DeclareGlobals) \ |
95 V(DeleteProperty) \ | 95 V(DeleteProperty) \ |
| 96 V(DeoptCounter) \ |
| 97 V(DeoptCounterAdd) \ |
96 V(Deoptimize) \ | 98 V(Deoptimize) \ |
97 V(DivI) \ | 99 V(DivI) \ |
98 V(DoubleToI) \ | 100 V(DoubleToI) \ |
99 V(DoubleToSmi) \ | 101 V(DoubleToSmi) \ |
100 V(DummyUse) \ | 102 V(DummyUse) \ |
101 V(ElementsKind) \ | 103 V(ElementsKind) \ |
102 V(FixedArrayBaseLength) \ | 104 V(FixedArrayBaseLength) \ |
103 V(FunctionLiteral) \ | 105 V(FunctionLiteral) \ |
104 V(GetCachedArrayIndex) \ | 106 V(GetCachedArrayIndex) \ |
105 V(GlobalObject) \ | 107 V(GlobalObject) \ |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 | 424 |
423 class LDummyUse: public LTemplateInstruction<1, 1, 0> { | 425 class LDummyUse: public LTemplateInstruction<1, 1, 0> { |
424 public: | 426 public: |
425 explicit LDummyUse(LOperand* value) { | 427 explicit LDummyUse(LOperand* value) { |
426 inputs_[0] = value; | 428 inputs_[0] = value; |
427 } | 429 } |
428 DECLARE_CONCRETE_INSTRUCTION(DummyUse, "dummy-use") | 430 DECLARE_CONCRETE_INSTRUCTION(DummyUse, "dummy-use") |
429 }; | 431 }; |
430 | 432 |
431 | 433 |
| 434 class LDeoptCounter: public LTemplateInstruction<0, 0, 0> { |
| 435 public: |
| 436 LDeoptCounter(int id, int initial_value, int max_value) |
| 437 : id_(id), |
| 438 initial_value_(initial_value), |
| 439 max_value_(max_value) { |
| 440 } |
| 441 |
| 442 DECLARE_CONCRETE_INSTRUCTION(DeoptCounter, "deopt_counter") |
| 443 |
| 444 int id() const { return id_; } |
| 445 int initial_value() const { return initial_value_; } |
| 446 int max_value() const { return max_value_; } |
| 447 |
| 448 private: |
| 449 int id_; |
| 450 int initial_value_; |
| 451 int max_value_; |
| 452 }; |
| 453 |
| 454 |
| 455 class LDeoptCounterAdd: public LTemplateInstruction<0, 0, 2> { |
| 456 public: |
| 457 LDeoptCounterAdd(int counter, |
| 458 int delta, |
| 459 LOperand* temp, |
| 460 LOperand* temp2) : counter_(counter), |
| 461 delta_(delta) { |
| 462 temps_[0] = temp; |
| 463 temps_[1] = temp2; |
| 464 } |
| 465 |
| 466 DECLARE_CONCRETE_INSTRUCTION(DeoptCounterAdd, "deopt_counter_add") |
| 467 |
| 468 LOperand* temp() { return temps_[0]; } |
| 469 LOperand* temp2() { return temps_[1]; } |
| 470 int counter() const { return counter_; } |
| 471 int delta() const { return delta_; } |
| 472 |
| 473 private: |
| 474 int counter_; |
| 475 int delta_; |
| 476 }; |
| 477 |
| 478 |
432 class LDeoptimize: public LTemplateInstruction<0, 0, 0> { | 479 class LDeoptimize: public LTemplateInstruction<0, 0, 0> { |
433 public: | 480 public: |
434 DECLARE_CONCRETE_INSTRUCTION(Deoptimize, "deoptimize") | 481 DECLARE_CONCRETE_INSTRUCTION(Deoptimize, "deoptimize") |
435 }; | 482 }; |
436 | 483 |
437 | 484 |
438 class LLabel: public LGap { | 485 class LLabel: public LGap { |
439 public: | 486 public: |
440 explicit LLabel(HBasicBlock* block) | 487 explicit LLabel(HBasicBlock* block) |
441 : LGap(block), replacement_(NULL) { } | 488 : LGap(block), replacement_(NULL) { } |
(...skipping 2355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2797 | 2844 |
2798 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2845 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2799 }; | 2846 }; |
2800 | 2847 |
2801 #undef DECLARE_HYDROGEN_ACCESSOR | 2848 #undef DECLARE_HYDROGEN_ACCESSOR |
2802 #undef DECLARE_CONCRETE_INSTRUCTION | 2849 #undef DECLARE_CONCRETE_INSTRUCTION |
2803 | 2850 |
2804 } } // namespace v8::internal | 2851 } } // namespace v8::internal |
2805 | 2852 |
2806 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2853 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
OLD | NEW |