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/runtime/runtime.h

Issue 1293493004: Unify symbols sharing across native scripts and runtime. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 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
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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 F(BreakIteratorNext, 1, 1) \ 294 F(BreakIteratorNext, 1, 1) \
295 F(BreakIteratorCurrent, 1, 1) \ 295 F(BreakIteratorCurrent, 1, 1) \
296 F(BreakIteratorBreakType, 1, 1) 296 F(BreakIteratorBreakType, 1, 1)
297 #else 297 #else
298 #define FOR_EACH_INTRINSIC_I18N(F) 298 #define FOR_EACH_INTRINSIC_I18N(F)
299 #endif 299 #endif
300 300
301 301
302 #define FOR_EACH_INTRINSIC_INTERNAL(F) \ 302 #define FOR_EACH_INTRINSIC_INTERNAL(F) \
303 F(CheckIsBootstrapping, 0, 1) \ 303 F(CheckIsBootstrapping, 0, 1) \
304 F(ExportPrivateSymbols, 1, 1) \
304 F(ImportToRuntime, 1, 1) \ 305 F(ImportToRuntime, 1, 1) \
305 F(ImportExperimentalToRuntime, 1, 1) \ 306 F(ImportExperimentalToRuntime, 1, 1) \
306 F(Throw, 1, 1) \ 307 F(Throw, 1, 1) \
307 F(ReThrow, 1, 1) \ 308 F(ReThrow, 1, 1) \
308 F(UnwindAndFindExceptionHandler, 0, 1) \ 309 F(UnwindAndFindExceptionHandler, 0, 1) \
309 F(PromoteScheduledException, 0, 1) \ 310 F(PromoteScheduledException, 0, 1) \
310 F(ThrowReferenceError, 1, 1) \ 311 F(ThrowReferenceError, 1, 1) \
311 F(NewTypeError, 2, 1) \ 312 F(NewTypeError, 2, 1) \
312 F(NewSyntaxError, 2, 1) \ 313 F(NewSyntaxError, 2, 1) \
313 F(NewReferenceError, 2, 1) \ 314 F(NewReferenceError, 2, 1) \
314 F(ThrowIteratorResultNotAnObject, 1, 1) \ 315 F(ThrowIteratorResultNotAnObject, 1, 1) \
315 F(ThrowStrongModeImplicitConversion, 0, 1) \ 316 F(ThrowStrongModeImplicitConversion, 0, 1) \
316 F(PromiseRejectEvent, 3, 1) \ 317 F(PromiseRejectEvent, 3, 1) \
317 F(PromiseRevokeReject, 1, 1) \ 318 F(PromiseRevokeReject, 1, 1) \
318 F(PromiseHasHandlerSymbol, 0, 1) \
319 F(StackGuard, 0, 1) \ 319 F(StackGuard, 0, 1) \
320 F(Interrupt, 0, 1) \ 320 F(Interrupt, 0, 1) \
321 F(AllocateInNewSpace, 1, 1) \ 321 F(AllocateInNewSpace, 1, 1) \
322 F(AllocateInTargetSpace, 2, 1) \ 322 F(AllocateInTargetSpace, 2, 1) \
323 F(CollectStackTrace, 2, 1) \ 323 F(CollectStackTrace, 2, 1) \
324 F(RenderCallSite, 0, 1) \ 324 F(RenderCallSite, 0, 1) \
325 F(MessageGetStartPosition, 1, 1) \ 325 F(MessageGetStartPosition, 1, 1) \
326 F(MessageGetScript, 1, 1) \ 326 F(MessageGetScript, 1, 1) \
327 F(ErrorToStringRT, 1, 1) \ 327 F(ErrorToStringRT, 1, 1) \
328 F(FormatMessageString, 4, 1) \ 328 F(FormatMessageString, 4, 1) \
329 F(CallSiteGetFileNameRT, 3, 1) \ 329 F(CallSiteGetFileNameRT, 1, 1) \
330 F(CallSiteGetFunctionNameRT, 3, 1) \ 330 F(CallSiteGetFunctionNameRT, 1, 1) \
331 F(CallSiteGetScriptNameOrSourceUrlRT, 3, 1) \ 331 F(CallSiteGetScriptNameOrSourceUrlRT, 1, 1) \
332 F(CallSiteGetMethodNameRT, 3, 1) \ 332 F(CallSiteGetMethodNameRT, 1, 1) \
333 F(CallSiteGetLineNumberRT, 3, 1) \ 333 F(CallSiteGetLineNumberRT, 1, 1) \
334 F(CallSiteGetColumnNumberRT, 3, 1) \ 334 F(CallSiteGetColumnNumberRT, 1, 1) \
335 F(CallSiteIsNativeRT, 3, 1) \ 335 F(CallSiteIsNativeRT, 1, 1) \
336 F(CallSiteIsToplevelRT, 3, 1) \ 336 F(CallSiteIsToplevelRT, 1, 1) \
337 F(CallSiteIsEvalRT, 3, 1) \ 337 F(CallSiteIsEvalRT, 1, 1) \
338 F(CallSiteIsConstructorRT, 3, 1) \ 338 F(CallSiteIsConstructorRT, 1, 1) \
339 F(IS_VAR, 1, 1) \ 339 F(IS_VAR, 1, 1) \
340 F(IncrementStatsCounter, 1, 1) \ 340 F(IncrementStatsCounter, 1, 1) \
341 F(Likely, 1, 1) \ 341 F(Likely, 1, 1) \
342 F(Unlikely, 1, 1) \ 342 F(Unlikely, 1, 1) \
343 F(HarmonyToString, 0, 1) \ 343 F(HarmonyToString, 0, 1) \
344 F(GetTypeFeedbackVector, 1, 1) \ 344 F(GetTypeFeedbackVector, 1, 1) \
345 F(GetCallerJSFunction, 0, 1) \ 345 F(GetCallerJSFunction, 0, 1) \
346 F(GetCodeStubExportsObject, 0, 1) 346 F(GetCodeStubExportsObject, 0, 1)
347 347
348 348
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
767 F(TwoByteSeqStringGetChar, 2, 1) \ 767 F(TwoByteSeqStringGetChar, 2, 1) \
768 F(TwoByteSeqStringSetChar, 3, 1) \ 768 F(TwoByteSeqStringSetChar, 3, 1) \
769 F(StringCharCodeAt, 2, 1) \ 769 F(StringCharCodeAt, 2, 1) \
770 F(IsStringWrapperSafeForDefaultValueOf, 1, 1) \ 770 F(IsStringWrapperSafeForDefaultValueOf, 1, 1) \
771 F(StringGetLength, 1, 1) 771 F(StringGetLength, 1, 1)
772 772
773 773
774 #define FOR_EACH_INTRINSIC_SYMBOL(F) \ 774 #define FOR_EACH_INTRINSIC_SYMBOL(F) \
775 F(CreateSymbol, 1, 1) \ 775 F(CreateSymbol, 1, 1) \
776 F(CreatePrivateSymbol, 1, 1) \ 776 F(CreatePrivateSymbol, 1, 1) \
777 F(CreateGlobalPrivateSymbol, 1, 1) \
778 F(SymbolDescription, 1, 1) \ 777 F(SymbolDescription, 1, 1) \
779 F(SymbolRegistry, 0, 1) \ 778 F(SymbolRegistry, 0, 1) \
780 F(SymbolIsPrivate, 1, 1) 779 F(SymbolIsPrivate, 1, 1)
781 780
782 781
783 #define FOR_EACH_INTRINSIC_TEST(F) \ 782 #define FOR_EACH_INTRINSIC_TEST(F) \
784 F(DeoptimizeFunction, 1, 1) \ 783 F(DeoptimizeFunction, 1, 1) \
785 F(DeoptimizeNow, 0, 1) \ 784 F(DeoptimizeNow, 0, 1) \
786 F(RunningInSimulator, 0, 1) \ 785 F(RunningInSimulator, 0, 1) \
787 F(IsConcurrentRecompilationSupported, 0, 1) \ 786 F(IsConcurrentRecompilationSupported, 0, 1) \
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
1137 inline bool Runtime::AtomicIsLockFree(uint32_t size) { 1136 inline bool Runtime::AtomicIsLockFree(uint32_t size) {
1138 return size == 1 || size == 2 || size == 4; 1137 return size == 1 || size == 2 || size == 4;
1139 } 1138 }
1140 1139
1141 #endif 1140 #endif
1142 1141
1143 } // namespace internal 1142 } // namespace internal
1144 } // namespace v8 1143 } // namespace v8
1145 1144
1146 #endif // V8_RUNTIME_RUNTIME_H_ 1145 #endif // V8_RUNTIME_RUNTIME_H_
OLDNEW
« src/heap/heap.h ('K') | « src/promise.js ('k') | src/runtime/runtime-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698