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

Side by Side Diff: src/runtime/runtime.h

Issue 1060583008: Port CallSite methods to C++. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 5 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
« no previous file with comments | « src/messages.js ('k') | src/runtime/runtime-debug.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_RUNTIME_RUNTIME_H_ 5 #ifndef V8_RUNTIME_RUNTIME_H_
6 #define V8_RUNTIME_RUNTIME_H_ 6 #define V8_RUNTIME_RUNTIME_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/objects.h" 9 #include "src/objects.h"
10 #include "src/zone.h" 10 #include "src/zone.h"
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 F(PrepareStep, 4, 1) \ 163 F(PrepareStep, 4, 1) \
164 F(ClearStepping, 0, 1) \ 164 F(ClearStepping, 0, 1) \
165 F(DebugEvaluate, 6, 1) \ 165 F(DebugEvaluate, 6, 1) \
166 F(DebugEvaluateGlobal, 4, 1) \ 166 F(DebugEvaluateGlobal, 4, 1) \
167 F(DebugGetLoadedScripts, 0, 1) \ 167 F(DebugGetLoadedScripts, 0, 1) \
168 F(DebugReferencedBy, 3, 1) \ 168 F(DebugReferencedBy, 3, 1) \
169 F(DebugConstructedBy, 2, 1) \ 169 F(DebugConstructedBy, 2, 1) \
170 F(DebugGetPrototype, 1, 1) \ 170 F(DebugGetPrototype, 1, 1) \
171 F(DebugSetScriptSource, 2, 1) \ 171 F(DebugSetScriptSource, 2, 1) \
172 F(FunctionGetInferredName, 1, 1) \ 172 F(FunctionGetInferredName, 1, 1) \
173 F(FunctionGetDebugName, 1, 1) \
174 F(GetFunctionCodePositionFromSource, 2, 1) \ 173 F(GetFunctionCodePositionFromSource, 2, 1) \
175 F(ExecuteInDebugContext, 1, 1) \ 174 F(ExecuteInDebugContext, 1, 1) \
176 F(GetDebugContext, 0, 1) \ 175 F(GetDebugContext, 0, 1) \
177 F(CollectGarbage, 1, 1) \ 176 F(CollectGarbage, 1, 1) \
178 F(GetHeapUsage, 0, 1) \ 177 F(GetHeapUsage, 0, 1) \
179 F(GetScript, 1, 1) \ 178 F(GetScript, 1, 1) \
180 F(DebugCallbackSupportsStepping, 1, 1) \ 179 F(DebugCallbackSupportsStepping, 1, 1) \
181 F(DebugPrepareStepInIfStepping, 1, 1) \ 180 F(DebugPrepareStepInIfStepping, 1, 1) \
182 F(DebugPushPromise, 2, 1) \ 181 F(DebugPushPromise, 2, 1) \
183 F(DebugPopPromise, 0, 1) \ 182 F(DebugPopPromise, 0, 1) \
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 F(BreakIteratorAdoptText, 2, 1) \ 259 F(BreakIteratorAdoptText, 2, 1) \
261 F(BreakIteratorFirst, 1, 1) \ 260 F(BreakIteratorFirst, 1, 1) \
262 F(BreakIteratorNext, 1, 1) \ 261 F(BreakIteratorNext, 1, 1) \
263 F(BreakIteratorCurrent, 1, 1) \ 262 F(BreakIteratorCurrent, 1, 1) \
264 F(BreakIteratorBreakType, 1, 1) 263 F(BreakIteratorBreakType, 1, 1)
265 #else 264 #else
266 #define FOR_EACH_INTRINSIC_I18N(F) 265 #define FOR_EACH_INTRINSIC_I18N(F)
267 #endif 266 #endif
268 267
269 268
270 #define FOR_EACH_INTRINSIC_INTERNAL(F) \ 269 #define FOR_EACH_INTRINSIC_INTERNAL(F) \
271 F(CheckIsBootstrapping, 0, 1) \ 270 F(CheckIsBootstrapping, 0, 1) \
272 F(Throw, 1, 1) \ 271 F(Throw, 1, 1) \
273 F(ReThrow, 1, 1) \ 272 F(ReThrow, 1, 1) \
274 F(FindExceptionHandler, 0, 1) \ 273 F(FindExceptionHandler, 0, 1) \
275 F(PromoteScheduledException, 0, 1) \ 274 F(PromoteScheduledException, 0, 1) \
276 F(ThrowReferenceError, 1, 1) \ 275 F(ThrowReferenceError, 1, 1) \
277 F(ThrowIteratorResultNotAnObject, 1, 1) \ 276 F(ThrowIteratorResultNotAnObject, 1, 1) \
278 F(PromiseRejectEvent, 3, 1) \ 277 F(PromiseRejectEvent, 3, 1) \
279 F(PromiseRevokeReject, 1, 1) \ 278 F(PromiseRevokeReject, 1, 1) \
280 F(PromiseHasHandlerSymbol, 0, 1) \ 279 F(PromiseHasHandlerSymbol, 0, 1) \
281 F(StackGuard, 0, 1) \ 280 F(StackGuard, 0, 1) \
282 F(Interrupt, 0, 1) \ 281 F(Interrupt, 0, 1) \
283 F(AllocateInNewSpace, 1, 1) \ 282 F(AllocateInNewSpace, 1, 1) \
284 F(AllocateInTargetSpace, 2, 1) \ 283 F(AllocateInTargetSpace, 2, 1) \
285 F(CollectStackTrace, 2, 1) \ 284 F(CollectStackTrace, 2, 1) \
286 F(RenderCallSite, 0, 1) \ 285 F(RenderCallSite, 0, 1) \
287 F(GetFromCacheRT, 2, 1) \ 286 F(GetFromCacheRT, 2, 1) \
288 F(MessageGetStartPosition, 1, 1) \ 287 F(MessageGetStartPosition, 1, 1) \
289 F(MessageGetScript, 1, 1) \ 288 F(MessageGetScript, 1, 1) \
290 F(FormatMessageString, 4, 1) \ 289 F(FormatMessageString, 4, 1) \
291 F(IS_VAR, 1, 1) \ 290 F(CallSiteGetFileNameRT, 3, 1) \
292 F(GetFromCache, 2, 1) \ 291 F(CallSiteGetFunctionNameRT, 3, 1) \
293 F(IncrementStatsCounter, 1, 1) \ 292 F(CallSiteGetScriptNameOrSourceUrlRT, 3, 1) \
294 F(Likely, 1, 1) \ 293 F(CallSiteGetLineNumberRT, 3, 1) \
295 F(Unlikely, 1, 1) \ 294 F(CallSiteGetColumnNumberRT, 3, 1) \
295 F(CallSiteIsNativeRT, 3, 1) \
296 F(CallSiteIsToplevelRT, 3, 1) \
297 F(CallSiteIsEvalRT, 3, 1) \
298 F(IS_VAR, 1, 1) \
299 F(GetFromCache, 2, 1) \
300 F(IncrementStatsCounter, 1, 1) \
301 F(Likely, 1, 1) \
302 F(Unlikely, 1, 1) \
296 F(HarmonyToString, 0, 1) 303 F(HarmonyToString, 0, 1)
297 304
298 305
299 #define FOR_EACH_INTRINSIC_JSON(F) \ 306 #define FOR_EACH_INTRINSIC_JSON(F) \
300 F(QuoteJSONString, 1, 1) \ 307 F(QuoteJSONString, 1, 1) \
301 F(BasicJSONStringify, 1, 1) \ 308 F(BasicJSONStringify, 1, 1) \
302 F(ParseJson, 1, 1) 309 F(ParseJson, 1, 1)
303 310
304 311
305 #define FOR_EACH_INTRINSIC_LITERALS(F) \ 312 #define FOR_EACH_INTRINSIC_LITERALS(F) \
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after
859 866
860 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; 867 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {};
861 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; 868 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {};
862 STATIC_ASSERT(LANGUAGE_END == 3); 869 STATIC_ASSERT(LANGUAGE_END == 3);
863 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; 870 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {};
864 871
865 } // namespace internal 872 } // namespace internal
866 } // namespace v8 873 } // namespace v8
867 874
868 #endif // V8_RUNTIME_RUNTIME_H_ 875 #endif // V8_RUNTIME_RUNTIME_H_
OLDNEW
« no previous file with comments | « src/messages.js ('k') | src/runtime/runtime-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698