OLD | NEW |
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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 F(ThrowCalledOnNullOrUndefined, 1, 1) \ | 317 F(ThrowCalledOnNullOrUndefined, 1, 1) \ |
318 F(CreateListFromArrayLike, 1, 1) \ | 318 F(CreateListFromArrayLike, 1, 1) \ |
319 F(IncrementUseCounter, 1, 1) \ | 319 F(IncrementUseCounter, 1, 1) \ |
320 F(GetAndResetRuntimeCallStats, -1 /* <= 2 */, 1) \ | 320 F(GetAndResetRuntimeCallStats, -1 /* <= 2 */, 1) \ |
321 F(EnqueueMicrotask, 1, 1) \ | 321 F(EnqueueMicrotask, 1, 1) \ |
322 F(RunMicrotasks, 0, 1) \ | 322 F(RunMicrotasks, 0, 1) \ |
323 F(OrdinaryHasInstance, 2, 1) | 323 F(OrdinaryHasInstance, 2, 1) |
324 | 324 |
325 #define FOR_EACH_INTRINSIC_JSON(F) \ | 325 #define FOR_EACH_INTRINSIC_JSON(F) \ |
326 F(QuoteJSONString, 1, 1) \ | 326 F(QuoteJSONString, 1, 1) \ |
327 F(BasicJSONStringify, 1, 1) \ | 327 F(BasicJSONStringify, 2, 1) \ |
328 F(ParseJson, 1, 1) | 328 F(ParseJson, 1, 1) |
329 | 329 |
330 | |
331 #define FOR_EACH_INTRINSIC_LITERALS(F) \ | 330 #define FOR_EACH_INTRINSIC_LITERALS(F) \ |
332 F(CreateRegExpLiteral, 4, 1) \ | 331 F(CreateRegExpLiteral, 4, 1) \ |
333 F(CreateObjectLiteral, 4, 1) \ | 332 F(CreateObjectLiteral, 4, 1) \ |
334 F(CreateArrayLiteral, 4, 1) \ | 333 F(CreateArrayLiteral, 4, 1) \ |
335 F(CreateArrayLiteralStubBailout, 3, 1) | 334 F(CreateArrayLiteralStubBailout, 3, 1) |
336 | 335 |
337 | 336 |
338 #define FOR_EACH_INTRINSIC_LIVEEDIT(F) \ | 337 #define FOR_EACH_INTRINSIC_LIVEEDIT(F) \ |
339 F(LiveEditFindSharedFunctionInfosForScript, 1, 1) \ | 338 F(LiveEditFindSharedFunctionInfosForScript, 1, 1) \ |
340 F(LiveEditGatherCompileInfo, 2, 1) \ | 339 F(LiveEditGatherCompileInfo, 2, 1) \ |
(...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1087 LanguageMode language_mode); | 1086 LanguageMode language_mode); |
1088 | 1087 |
1089 MUST_USE_RESULT static MaybeHandle<Object> SetObjectProperty( | 1088 MUST_USE_RESULT static MaybeHandle<Object> SetObjectProperty( |
1090 Isolate* isolate, Handle<Object> object, Handle<Object> key, | 1089 Isolate* isolate, Handle<Object> object, Handle<Object> key, |
1091 Handle<Object> value, LanguageMode language_mode); | 1090 Handle<Object> value, LanguageMode language_mode); |
1092 | 1091 |
1093 MUST_USE_RESULT static MaybeHandle<Object> GetObjectProperty( | 1092 MUST_USE_RESULT static MaybeHandle<Object> GetObjectProperty( |
1094 Isolate* isolate, Handle<Object> object, Handle<Object> key); | 1093 Isolate* isolate, Handle<Object> object, Handle<Object> key); |
1095 | 1094 |
1096 MUST_USE_RESULT static MaybeHandle<Object> BasicJsonStringify( | 1095 MUST_USE_RESULT static MaybeHandle<Object> BasicJsonStringify( |
1097 Isolate* isolate, Handle<Object> object); | 1096 Isolate* isolate, Handle<Object> object, Handle<String> gap); |
1098 | 1097 |
1099 MUST_USE_RESULT static MaybeHandle<Object> BasicJsonStringifyString( | 1098 MUST_USE_RESULT static MaybeHandle<Object> BasicJsonStringifyString( |
1100 Isolate* isolate, Handle<String> string); | 1099 Isolate* isolate, Handle<String> string); |
1101 | 1100 |
1102 enum TypedArrayId { | 1101 enum TypedArrayId { |
1103 // arrayIds below should be synchronized with typedarray.js natives. | 1102 // arrayIds below should be synchronized with typedarray.js natives. |
1104 ARRAY_ID_UINT8 = 1, | 1103 ARRAY_ID_UINT8 = 1, |
1105 ARRAY_ID_INT8 = 2, | 1104 ARRAY_ID_INT8 = 2, |
1106 ARRAY_ID_UINT16 = 3, | 1105 ARRAY_ID_UINT16 = 3, |
1107 ARRAY_ID_INT16 = 4, | 1106 ARRAY_ID_INT16 = 4, |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1166 | 1165 |
1167 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; | 1166 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; |
1168 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; | 1167 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; |
1169 STATIC_ASSERT(LANGUAGE_END == 3); | 1168 STATIC_ASSERT(LANGUAGE_END == 3); |
1170 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; | 1169 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; |
1171 | 1170 |
1172 } // namespace internal | 1171 } // namespace internal |
1173 } // namespace v8 | 1172 } // namespace v8 |
1174 | 1173 |
1175 #endif // V8_RUNTIME_RUNTIME_H_ | 1174 #endif // V8_RUNTIME_RUNTIME_H_ |
OLD | NEW |