/[jscoverage]/trunk/js/jitstats.tbl
ViewVC logotype

Contents of /trunk/js/jitstats.tbl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 507 - (show annotations)
Sun Jan 10 07:23:34 2010 UTC (9 years, 9 months ago) by siliconforks
File size: 3732 byte(s)
Update SpiderMonkey from Firefox 3.6rc1.

1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2 * vim: set ts=8 sw=4 et tw=0 ft=C:
3 *
4 * ***** BEGIN LICENSE BLOCK *****
5 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
6 *
7 * The contents of this file are subject to the Mozilla Public License Version
8 * 1.1 (the "License"); you may not use this file except in compliance with
9 * the License. You may obtain a copy of the License at
10 * http://www.mozilla.org/MPL/
11 *
12 * Software distributed under the License is distributed on an "AS IS" basis,
13 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
14 * for the specific language governing rights and limitations under the
15 * License.
16 *
17 * The Original Code is Mozilla SpiderMonkey JavaScript 1.9 code, released
18 * June 22, 2008.
19 *
20 * The Initial Developer of the Original Code is
21 * Brian Crowder <crowder@fiverocks.com>
22 *
23 * Contributor(s):
24 *
25 * Alternatively, the contents of this file may be used under the terms of
26 * either of the GNU General Public License Version 2 or later (the "GPL"),
27 * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
28 * in which case the provisions of the GPL or the LGPL are applicable instead
29 * of those above. If you wish to allow use of your version of this file only
30 * under the terms of either the GPL or the LGPL, and not to allow others to
31 * use your version of this file under the terms of the MPL, indicate your
32 * decision by deleting the provisions above and replace them with the notice
33 * and other provisions required by the GPL or the LGPL. If you do not delete
34 * the provisions above, a recipient may use your version of this file under
35 * the terms of any one of the MPL, the GPL or the LGPL.
36 *
37 * ***** END LICENSE BLOCK ***** */
38
39 /* NB: Keep this list synced with jitstatHandler in trace-test.js. */
40 /**
41 * Proper use of this file: Consumers must define JITSTAT; they can optionally
42 * also define MONITOR_JITSTAT or RECORDER_JITSTAT or both to do separate
43 * things with stats that are monitor or recorder specific. If those are not
44 * defined, they will be automatically defined to JITSTAT.
45 */
46 #ifdef DEFINED_MONITOR_JITSTAT
47 #error "How did that happen?"
48 #endif
49
50 #ifdef DEFINED_RECORDER_JITSTAT
51 #error "How did that happen?"
52 #endif
53
54 #ifndef MONITOR_JITSTAT
55 #define MONITOR_JITSTAT(_ident, _name) JITSTAT(_ident)
56 #define DEFINED_MONITOR_JITSTAT
57 #endif
58
59 #ifndef RECORDER_JITSTAT
60 #define RECORDER_JITSTAT(_ident, _name) JITSTAT(_ident)
61 #define DEFINED_RECORDER_JITSTAT
62 #endif
63
64 RECORDER_JITSTAT(recorderStarted, "started")
65 RECORDER_JITSTAT(recorderAborted, "aborted")
66 RECORDER_JITSTAT(traceCompleted, "completed")
67 MONITOR_JITSTAT(sideExitIntoInterpreter, "exits")
68 MONITOR_JITSTAT(timeoutIntoInterpreter, "timeouts")
69 MONITOR_JITSTAT(typeMapMismatchAtEntry, "type mismatch")
70 RECORDER_JITSTAT(returnToDifferentLoopHeader, "different header")
71 MONITOR_JITSTAT(traceTriggered, "triggered")
72 MONITOR_JITSTAT(globalShapeMismatchAtEntry, "global mismatch")
73 RECORDER_JITSTAT(treesTrashed, "trees trashed")
74 RECORDER_JITSTAT(slotPromoted, "slot promoted")
75 RECORDER_JITSTAT(unstableLoopVariable, "unstable loop variable")
76 RECORDER_JITSTAT(breakLoopExits, "breaks")
77 RECORDER_JITSTAT(returnLoopExits, "returns")
78 RECORDER_JITSTAT(mergedLoopExits, "merged loop exits")
79 RECORDER_JITSTAT(noCompatInnerTrees, "unstableInnerCalls")
80 RECORDER_JITSTAT(blacklisted, "blacklisted")
81 MONITOR_JITSTAT(cacheFlushed, "flushed")
82 JITSTAT(archIsIA32)
83 JITSTAT(archIsAMD64)
84 JITSTAT(archIs64BIT)
85 JITSTAT(archIsARM)
86 JITSTAT(archIsSPARC)
87 JITSTAT(archIsPPC)
88
89 #ifdef DEFINED_MONITOR_JITSTAT
90 #undef DEFINED_MONITOR_JITSTAT
91 #undef MONITOR_JITSTAT
92 #endif
93
94 #ifdef DEFINED_RECORDER_JITSTAT
95 #undef DEFINED_RECORDER_JITSTAT
96 #undef RECORDER_JITSTAT
97 #endif

  ViewVC Help
Powered by ViewVC 1.1.24