Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(340)

Side by Side Diff: src/deoptimizer.h

Issue 10103035: Share optimized code for closures. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/compiler.cc ('k') | src/factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698