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

Side by Side Diff: src/log.h

Issue 6894003: Better support for 'polymorphic' JS and external arrays (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: final review feedback Created 9 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/list.h ('k') | src/log.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2011 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
11 // with the distribution. 11 // with the distribution.
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 do { \ 83 do { \
84 v8::internal::Logger* logger = \ 84 v8::internal::Logger* logger = \
85 (isolate)->logger(); \ 85 (isolate)->logger(); \
86 if (logger->is_logging()) \ 86 if (logger->is_logging()) \
87 logger->Call; \ 87 logger->Call; \
88 } while (false) 88 } while (false)
89 #else 89 #else
90 #define LOG(isolate, Call) ((void) 0) 90 #define LOG(isolate, Call) ((void) 0)
91 #endif 91 #endif
92 92
93 #define LOG_EVENTS_AND_TAGS_LIST(V) \ 93 #define LOG_EVENTS_AND_TAGS_LIST(V) \
94 V(CODE_CREATION_EVENT, "code-creation") \ 94 V(CODE_CREATION_EVENT, "code-creation") \
95 V(CODE_MOVE_EVENT, "code-move") \ 95 V(CODE_MOVE_EVENT, "code-move") \
96 V(CODE_DELETE_EVENT, "code-delete") \ 96 V(CODE_DELETE_EVENT, "code-delete") \
97 V(CODE_MOVING_GC, "code-moving-gc") \ 97 V(CODE_MOVING_GC, "code-moving-gc") \
98 V(SHARED_FUNC_MOVE_EVENT, "sfi-move") \ 98 V(SHARED_FUNC_MOVE_EVENT, "sfi-move") \
99 V(SNAPSHOT_POSITION_EVENT, "snapshot-pos") \ 99 V(SNAPSHOT_POSITION_EVENT, "snapshot-pos") \
100 V(SNAPSHOT_CODE_NAME_EVENT, "snapshot-code-name") \ 100 V(SNAPSHOT_CODE_NAME_EVENT, "snapshot-code-name") \
101 V(TICK_EVENT, "tick") \ 101 V(TICK_EVENT, "tick") \
102 V(REPEAT_META_EVENT, "repeat") \ 102 V(REPEAT_META_EVENT, "repeat") \
103 V(BUILTIN_TAG, "Builtin") \ 103 V(BUILTIN_TAG, "Builtin") \
104 V(CALL_DEBUG_BREAK_TAG, "CallDebugBreak") \ 104 V(CALL_DEBUG_BREAK_TAG, "CallDebugBreak") \
105 V(CALL_DEBUG_PREPARE_STEP_IN_TAG, "CallDebugPrepareStepIn") \ 105 V(CALL_DEBUG_PREPARE_STEP_IN_TAG, "CallDebugPrepareStepIn") \
106 V(CALL_IC_TAG, "CallIC") \ 106 V(CALL_IC_TAG, "CallIC") \
107 V(CALL_INITIALIZE_TAG, "CallInitialize") \ 107 V(CALL_INITIALIZE_TAG, "CallInitialize") \
108 V(CALL_MEGAMORPHIC_TAG, "CallMegamorphic") \ 108 V(CALL_MEGAMORPHIC_TAG, "CallMegamorphic") \
109 V(CALL_MISS_TAG, "CallMiss") \ 109 V(CALL_MISS_TAG, "CallMiss") \
110 V(CALL_NORMAL_TAG, "CallNormal") \ 110 V(CALL_NORMAL_TAG, "CallNormal") \
111 V(CALL_PRE_MONOMORPHIC_TAG, "CallPreMonomorphic") \ 111 V(CALL_PRE_MONOMORPHIC_TAG, "CallPreMonomorphic") \
112 V(KEYED_CALL_DEBUG_BREAK_TAG, "KeyedCallDebugBreak") \ 112 V(KEYED_CALL_DEBUG_BREAK_TAG, "KeyedCallDebugBreak") \
113 V(KEYED_CALL_DEBUG_PREPARE_STEP_IN_TAG, \ 113 V(KEYED_CALL_DEBUG_PREPARE_STEP_IN_TAG, \
114 "KeyedCallDebugPrepareStepIn") \ 114 "KeyedCallDebugPrepareStepIn") \
115 V(KEYED_CALL_IC_TAG, "KeyedCallIC") \ 115 V(KEYED_CALL_IC_TAG, "KeyedCallIC") \
116 V(KEYED_CALL_INITIALIZE_TAG, "KeyedCallInitialize") \ 116 V(KEYED_CALL_INITIALIZE_TAG, "KeyedCallInitialize") \
117 V(KEYED_CALL_MEGAMORPHIC_TAG, "KeyedCallMegamorphic") \ 117 V(KEYED_CALL_MEGAMORPHIC_TAG, "KeyedCallMegamorphic") \
118 V(KEYED_CALL_MISS_TAG, "KeyedCallMiss") \ 118 V(KEYED_CALL_MISS_TAG, "KeyedCallMiss") \
119 V(KEYED_CALL_NORMAL_TAG, "KeyedCallNormal") \ 119 V(KEYED_CALL_NORMAL_TAG, "KeyedCallNormal") \
120 V(KEYED_CALL_PRE_MONOMORPHIC_TAG, "KeyedCallPreMonomorphic") \ 120 V(KEYED_CALL_PRE_MONOMORPHIC_TAG, "KeyedCallPreMonomorphic") \
121 V(CALLBACK_TAG, "Callback") \ 121 V(CALLBACK_TAG, "Callback") \
122 V(EVAL_TAG, "Eval") \ 122 V(EVAL_TAG, "Eval") \
123 V(FUNCTION_TAG, "Function") \ 123 V(FUNCTION_TAG, "Function") \
124 V(KEYED_LOAD_IC_TAG, "KeyedLoadIC") \ 124 V(KEYED_LOAD_IC_TAG, "KeyedLoadIC") \
125 V(KEYED_EXTERNAL_ARRAY_LOAD_IC_TAG, "KeyedExternalArrayLoadIC") \ 125 V(KEYED_LOAD_MEGAMORPHIC_IC_TAG, "KeyedLoadMegamorphicIC") \
126 V(KEYED_STORE_IC_TAG, "KeyedStoreIC") \ 126 V(KEYED_EXTERNAL_ARRAY_LOAD_IC_TAG, "KeyedExternalArrayLoadIC") \
127 V(KEYED_EXTERNAL_ARRAY_STORE_IC_TAG, "KeyedExternalArrayStoreIC")\ 127 V(KEYED_STORE_IC_TAG, "KeyedStoreIC") \
128 V(LAZY_COMPILE_TAG, "LazyCompile") \ 128 V(KEYED_STORE_MEGAMORPHIC_IC_TAG, "KeyedStoreMegamorphicIC") \
129 V(LOAD_IC_TAG, "LoadIC") \ 129 V(KEYED_EXTERNAL_ARRAY_STORE_IC_TAG, "KeyedExternalArrayStoreIC") \
130 V(REG_EXP_TAG, "RegExp") \ 130 V(LAZY_COMPILE_TAG, "LazyCompile") \
131 V(SCRIPT_TAG, "Script") \ 131 V(LOAD_IC_TAG, "LoadIC") \
132 V(STORE_IC_TAG, "StoreIC") \ 132 V(REG_EXP_TAG, "RegExp") \
133 V(STUB_TAG, "Stub") \ 133 V(SCRIPT_TAG, "Script") \
134 V(NATIVE_FUNCTION_TAG, "Function") \ 134 V(STORE_IC_TAG, "StoreIC") \
135 V(NATIVE_LAZY_COMPILE_TAG, "LazyCompile") \ 135 V(STUB_TAG, "Stub") \
136 V(NATIVE_FUNCTION_TAG, "Function") \
137 V(NATIVE_LAZY_COMPILE_TAG, "LazyCompile") \
136 V(NATIVE_SCRIPT_TAG, "Script") 138 V(NATIVE_SCRIPT_TAG, "Script")
137 // Note that 'NATIVE_' cases for functions and scripts are mapped onto 139 // Note that 'NATIVE_' cases for functions and scripts are mapped onto
138 // original tags when writing to the log. 140 // original tags when writing to the log.
139 141
140 142
141 class Sampler; 143 class Sampler;
142 144
143 145
144 class Logger { 146 class Logger {
145 public: 147 public:
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 // Class that extracts stack trace, used for profiling. 467 // Class that extracts stack trace, used for profiling.
466 class StackTracer : public AllStatic { 468 class StackTracer : public AllStatic {
467 public: 469 public:
468 static void Trace(Isolate* isolate, TickSample* sample); 470 static void Trace(Isolate* isolate, TickSample* sample);
469 }; 471 };
470 472
471 } } // namespace v8::internal 473 } } // namespace v8::internal
472 474
473 475
474 #endif // V8_LOG_H_ 476 #endif // V8_LOG_H_
OLDNEW
« no previous file with comments | « src/list.h ('k') | src/log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698