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 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
601 void MarkDuplicate(); | 601 void MarkDuplicate(); |
602 | 602 |
603 Zone* zone() const { return zone_; } | 603 Zone* zone() const { return zone_; } |
604 | 604 |
605 static int NumberOfOperandsFor(Opcode opcode); | 605 static int NumberOfOperandsFor(Opcode opcode); |
606 | 606 |
607 #if defined(OBJECT_PRINT) || defined(ENABLE_DISASSEMBLER) | 607 #if defined(OBJECT_PRINT) || defined(ENABLE_DISASSEMBLER) |
608 static const char* StringFor(Opcode opcode); | 608 static const char* StringFor(Opcode opcode); |
609 #endif | 609 #endif |
610 | 610 |
| 611 // A literal id which refers to the JSFunction itself. |
| 612 static const int kSelfLiteralId = -239; |
| 613 |
611 private: | 614 private: |
612 TranslationBuffer* buffer_; | 615 TranslationBuffer* buffer_; |
613 int index_; | 616 int index_; |
614 Zone* zone_; | 617 Zone* zone_; |
615 }; | 618 }; |
616 | 619 |
617 | 620 |
618 // Linked list holding deoptimizing code objects. The deoptimizing code objects | 621 // Linked list holding deoptimizing code objects. The deoptimizing code objects |
619 // are kept as weak handles until they are no longer activated on the stack. | 622 // are kept as weak handles until they are no longer activated on the stack. |
620 class DeoptimizingCodeListNode : public Malloced { | 623 class DeoptimizingCodeListNode : public Malloced { |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
786 Object** expression_stack_; | 789 Object** expression_stack_; |
787 int source_position_; | 790 int source_position_; |
788 | 791 |
789 friend class Deoptimizer; | 792 friend class Deoptimizer; |
790 }; | 793 }; |
791 #endif | 794 #endif |
792 | 795 |
793 } } // namespace v8::internal | 796 } } // namespace v8::internal |
794 | 797 |
795 #endif // V8_DEOPTIMIZER_H_ | 798 #endif // V8_DEOPTIMIZER_H_ |
OLD | NEW |