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

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

Issue 2026643003: [json] replace remaining json.js code with C++ builtins. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix error message Created 4 years, 6 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/js/json.js ('k') | src/runtime/runtime-json.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/base/platform/time.h" 9 #include "src/base/platform/time.h"
10 #include "src/objects.h" 10 #include "src/objects.h"
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 F(ThrowCalledNonCallable, 1, 1) \ 320 F(ThrowCalledNonCallable, 1, 1) \
321 F(ThrowCalledOnNullOrUndefined, 1, 1) \ 321 F(ThrowCalledOnNullOrUndefined, 1, 1) \
322 F(CreateListFromArrayLike, 1, 1) \ 322 F(CreateListFromArrayLike, 1, 1) \
323 F(IncrementUseCounter, 1, 1) \ 323 F(IncrementUseCounter, 1, 1) \
324 F(GetAndResetRuntimeCallStats, -1 /* <= 2 */, 1) \ 324 F(GetAndResetRuntimeCallStats, -1 /* <= 2 */, 1) \
325 F(EnqueueMicrotask, 1, 1) \ 325 F(EnqueueMicrotask, 1, 1) \
326 F(RunMicrotasks, 0, 1) \ 326 F(RunMicrotasks, 0, 1) \
327 F(OrdinaryHasInstance, 2, 1) \ 327 F(OrdinaryHasInstance, 2, 1) \
328 F(IsWasmObject, 1, 1) 328 F(IsWasmObject, 1, 1)
329 329
330 #define FOR_EACH_INTRINSIC_JSON(F) F(ParseJson, 2, 1)
331
332 #define FOR_EACH_INTRINSIC_LITERALS(F) \ 330 #define FOR_EACH_INTRINSIC_LITERALS(F) \
333 F(CreateRegExpLiteral, 4, 1) \ 331 F(CreateRegExpLiteral, 4, 1) \
334 F(CreateObjectLiteral, 4, 1) \ 332 F(CreateObjectLiteral, 4, 1) \
335 F(CreateArrayLiteral, 4, 1) \ 333 F(CreateArrayLiteral, 4, 1) \
336 F(CreateArrayLiteralStubBailout, 3, 1) 334 F(CreateArrayLiteralStubBailout, 3, 1)
337 335
338 336
339 #define FOR_EACH_INTRINSIC_LIVEEDIT(F) \ 337 #define FOR_EACH_INTRINSIC_LIVEEDIT(F) \
340 F(LiveEditFindSharedFunctionInfosForScript, 1, 1) \ 338 F(LiveEditFindSharedFunctionInfosForScript, 1, 1) \
341 F(LiveEditGatherCompileInfo, 2, 1) \ 339 F(LiveEditGatherCompileInfo, 2, 1) \
(...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after
982 FOR_EACH_INTRINSIC_COMPILER(F) \ 980 FOR_EACH_INTRINSIC_COMPILER(F) \
983 FOR_EACH_INTRINSIC_DATE(F) \ 981 FOR_EACH_INTRINSIC_DATE(F) \
984 FOR_EACH_INTRINSIC_DEBUG(F) \ 982 FOR_EACH_INTRINSIC_DEBUG(F) \
985 FOR_EACH_INTRINSIC_FORIN(F) \ 983 FOR_EACH_INTRINSIC_FORIN(F) \
986 FOR_EACH_INTRINSIC_INTERPRETER(F) \ 984 FOR_EACH_INTRINSIC_INTERPRETER(F) \
987 FOR_EACH_INTRINSIC_FUNCTION(F) \ 985 FOR_EACH_INTRINSIC_FUNCTION(F) \
988 FOR_EACH_INTRINSIC_FUTEX(F) \ 986 FOR_EACH_INTRINSIC_FUTEX(F) \
989 FOR_EACH_INTRINSIC_GENERATOR(F) \ 987 FOR_EACH_INTRINSIC_GENERATOR(F) \
990 FOR_EACH_INTRINSIC_I18N(F) \ 988 FOR_EACH_INTRINSIC_I18N(F) \
991 FOR_EACH_INTRINSIC_INTERNAL(F) \ 989 FOR_EACH_INTRINSIC_INTERNAL(F) \
992 FOR_EACH_INTRINSIC_JSON(F) \
993 FOR_EACH_INTRINSIC_LITERALS(F) \ 990 FOR_EACH_INTRINSIC_LITERALS(F) \
994 FOR_EACH_INTRINSIC_LIVEEDIT(F) \ 991 FOR_EACH_INTRINSIC_LIVEEDIT(F) \
995 FOR_EACH_INTRINSIC_MATHS(F) \ 992 FOR_EACH_INTRINSIC_MATHS(F) \
996 FOR_EACH_INTRINSIC_NUMBERS(F) \ 993 FOR_EACH_INTRINSIC_NUMBERS(F) \
997 FOR_EACH_INTRINSIC_OBJECT(F) \ 994 FOR_EACH_INTRINSIC_OBJECT(F) \
998 FOR_EACH_INTRINSIC_OPERATORS(F) \ 995 FOR_EACH_INTRINSIC_OPERATORS(F) \
999 FOR_EACH_INTRINSIC_PROXY(F) \ 996 FOR_EACH_INTRINSIC_PROXY(F) \
1000 FOR_EACH_INTRINSIC_REGEXP(F) \ 997 FOR_EACH_INTRINSIC_REGEXP(F) \
1001 FOR_EACH_INTRINSIC_SCOPES(F) \ 998 FOR_EACH_INTRINSIC_SCOPES(F) \
1002 FOR_EACH_INTRINSIC_SIMD(F) \ 999 FOR_EACH_INTRINSIC_SIMD(F) \
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
1152 1149
1153 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; 1150 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {};
1154 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; 1151 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {};
1155 STATIC_ASSERT(LANGUAGE_END == 3); 1152 STATIC_ASSERT(LANGUAGE_END == 3);
1156 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; 1153 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {};
1157 1154
1158 } // namespace internal 1155 } // namespace internal
1159 } // namespace v8 1156 } // namespace v8
1160 1157
1161 #endif // V8_RUNTIME_RUNTIME_H_ 1158 #endif // V8_RUNTIME_RUNTIME_H_
OLDNEW
« no previous file with comments | « src/js/json.js ('k') | src/runtime/runtime-json.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698