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

Side by Side Diff: src/runtime.h

Issue 9207002: Add a deoptimization count to each function to limit number of re-compilations. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 11 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
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
Jakob Kummerow 2012/01/16 11:41:25 nit: 2012
fschneider 2012/01/19 10:26:11 Done.
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
11 // with the distribution. 11 // with the distribution.
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 F(NewArgumentsFast, 3, 1) \ 86 F(NewArgumentsFast, 3, 1) \
87 F(NewStrictArgumentsFast, 3, 1) \ 87 F(NewStrictArgumentsFast, 3, 1) \
88 F(LazyCompile, 1, 1) \ 88 F(LazyCompile, 1, 1) \
89 F(LazyRecompile, 1, 1) \ 89 F(LazyRecompile, 1, 1) \
90 F(NotifyDeoptimized, 1, 1) \ 90 F(NotifyDeoptimized, 1, 1) \
91 F(NotifyOSR, 0, 1) \ 91 F(NotifyOSR, 0, 1) \
92 F(DeoptimizeFunction, 1, 1) \ 92 F(DeoptimizeFunction, 1, 1) \
93 F(RunningInSimulator, 0, 1) \ 93 F(RunningInSimulator, 0, 1) \
94 F(OptimizeFunctionOnNextCall, 1, 1) \ 94 F(OptimizeFunctionOnNextCall, 1, 1) \
95 F(GetOptimizationStatus, 1, 1) \ 95 F(GetOptimizationStatus, 1, 1) \
96 F(GetOptimizationCount, 1, 1) \ 96 F(GetDeoptimizationCount, 1, 1) \
97 F(CompileForOnStackReplacement, 1, 1) \ 97 F(CompileForOnStackReplacement, 1, 1) \
98 F(SetNewFunctionAttributes, 1, 1) \ 98 F(SetNewFunctionAttributes, 1, 1) \
99 F(AllocateInNewSpace, 1, 1) \ 99 F(AllocateInNewSpace, 1, 1) \
100 F(SetNativeFlag, 1, 1) \ 100 F(SetNativeFlag, 1, 1) \
101 F(StoreArrayLiteralElement, 5, 1) \ 101 F(StoreArrayLiteralElement, 5, 1) \
102 \ 102 \
103 /* Array join support */ \ 103 /* Array join support */ \
104 F(PushIfAbsent, 2, 1) \ 104 F(PushIfAbsent, 2, 1) \
105 F(ArrayConcat, 1, 1) \ 105 F(ArrayConcat, 1, 1) \
106 \ 106 \
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after
690 //--------------------------------------------------------------------------- 690 //---------------------------------------------------------------------------
691 // Constants used by interface to runtime functions. 691 // Constants used by interface to runtime functions.
692 692
693 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; 693 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {};
694 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; 694 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {};
695 class DeclareGlobalsLanguageMode: public BitField<LanguageMode, 2, 2> {}; 695 class DeclareGlobalsLanguageMode: public BitField<LanguageMode, 2, 2> {};
696 696
697 } } // namespace v8::internal 697 } } // namespace v8::internal
698 698
699 #endif // V8_RUNTIME_H_ 699 #endif // V8_RUNTIME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698