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

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

Powered by Google App Engine
This is Rietveld 408576698