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 581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
592 void StoreLiteral(int literal_id); | 592 void StoreLiteral(int literal_id); |
593 void StoreArgumentsObject(); | 593 void StoreArgumentsObject(); |
594 void MarkDuplicate(); | 594 void MarkDuplicate(); |
595 | 595 |
596 static int NumberOfOperandsFor(Opcode opcode); | 596 static int NumberOfOperandsFor(Opcode opcode); |
597 | 597 |
598 #if defined(OBJECT_PRINT) || defined(ENABLE_DISASSEMBLER) | 598 #if defined(OBJECT_PRINT) || defined(ENABLE_DISASSEMBLER) |
599 static const char* StringFor(Opcode opcode); | 599 static const char* StringFor(Opcode opcode); |
600 #endif | 600 #endif |
601 | 601 |
| 602 // A literal id which refers to the JSFunction itself. |
| 603 static const int kSelfLiteralId = -239; |
| 604 |
602 private: | 605 private: |
603 TranslationBuffer* buffer_; | 606 TranslationBuffer* buffer_; |
604 int index_; | 607 int index_; |
605 }; | 608 }; |
606 | 609 |
607 | 610 |
608 // Linked list holding deoptimizing code objects. The deoptimizing code objects | 611 // Linked list holding deoptimizing code objects. The deoptimizing code objects |
609 // are kept as weak handles until they are no longer activated on the stack. | 612 // are kept as weak handles until they are no longer activated on the stack. |
610 class DeoptimizingCodeListNode : public Malloced { | 613 class DeoptimizingCodeListNode : public Malloced { |
611 public: | 614 public: |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
776 Object** expression_stack_; | 779 Object** expression_stack_; |
777 int source_position_; | 780 int source_position_; |
778 | 781 |
779 friend class Deoptimizer; | 782 friend class Deoptimizer; |
780 }; | 783 }; |
781 #endif | 784 #endif |
782 | 785 |
783 } } // namespace v8::internal | 786 } } // namespace v8::internal |
784 | 787 |
785 #endif // V8_DEOPTIMIZER_H_ | 788 #endif // V8_DEOPTIMIZER_H_ |
OLD | NEW |