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

Side by Side Diff: src/code-stubs.h

Issue 14990014: Collect type feedback in separate pass and store it in AST (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Consistent check-alive Created 7 years, 7 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/ast.cc ('k') | src/compiler.h » ('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 639 matching lines...) Expand 10 before | Expand all | Expand 10 after
650 private: 650 private:
651 virtual CodeStub::Major MajorKey() { return ArrayConstructor; } 651 virtual CodeStub::Major MajorKey() { return ArrayConstructor; }
652 virtual int MinorKey() { return argument_count_; } 652 virtual int MinorKey() { return argument_count_; }
653 653
654 ArgumentCountKey argument_count_; 654 ArgumentCountKey argument_count_;
655 }; 655 };
656 656
657 657
658 class MathPowStub: public PlatformCodeStub { 658 class MathPowStub: public PlatformCodeStub {
659 public: 659 public:
660 enum ExponentType { INTEGER, DOUBLE, TAGGED, ON_STACK}; 660 enum ExponentType { INTEGER, DOUBLE, TAGGED, ON_STACK };
661 661
662 explicit MathPowStub(ExponentType exponent_type) 662 explicit MathPowStub(ExponentType exponent_type)
663 : exponent_type_(exponent_type) { } 663 : exponent_type_(exponent_type) { }
664 virtual void Generate(MacroAssembler* masm); 664 virtual void Generate(MacroAssembler* masm);
665 665
666 private: 666 private:
667 virtual CodeStub::Major MajorKey() { return MathPow; } 667 virtual CodeStub::Major MajorKey() { return MathPow; }
668 virtual int MinorKey() { return exponent_type_; } 668 virtual int MinorKey() { return exponent_type_; }
669 669
670 ExponentType exponent_type_; 670 ExponentType exponent_type_;
(...skipping 1293 matching lines...) Expand 10 before | Expand all | Expand 10 after
1964 1964
1965 // The current function entry hook. 1965 // The current function entry hook.
1966 static FunctionEntryHook entry_hook_; 1966 static FunctionEntryHook entry_hook_;
1967 1967
1968 DISALLOW_COPY_AND_ASSIGN(ProfileEntryHookStub); 1968 DISALLOW_COPY_AND_ASSIGN(ProfileEntryHookStub);
1969 }; 1969 };
1970 1970
1971 } } // namespace v8::internal 1971 } } // namespace v8::internal
1972 1972
1973 #endif // V8_CODE_STUBS_H_ 1973 #endif // V8_CODE_STUBS_H_
OLDNEW
« no previous file with comments | « src/ast.cc ('k') | src/compiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698