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 1092 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1103 Isolate* isolate, Handle<JSReceiver> receiver, Handle<Object> key, | 1103 Isolate* isolate, Handle<JSReceiver> receiver, Handle<Object> key, |
1104 LanguageMode language_mode); | 1104 LanguageMode language_mode); |
1105 | 1105 |
1106 MUST_USE_RESULT static MaybeHandle<Object> SetObjectProperty( | 1106 MUST_USE_RESULT static MaybeHandle<Object> SetObjectProperty( |
1107 Isolate* isolate, Handle<Object> object, Handle<Object> key, | 1107 Isolate* isolate, Handle<Object> object, Handle<Object> key, |
1108 Handle<Object> value, LanguageMode language_mode); | 1108 Handle<Object> value, LanguageMode language_mode); |
1109 | 1109 |
1110 MUST_USE_RESULT static MaybeHandle<Object> GetObjectProperty( | 1110 MUST_USE_RESULT static MaybeHandle<Object> GetObjectProperty( |
1111 Isolate* isolate, Handle<Object> object, Handle<Object> key); | 1111 Isolate* isolate, Handle<Object> object, Handle<Object> key); |
1112 | 1112 |
| 1113 MUST_USE_RESULT static MaybeHandle<Object> BasicJsonStringify( |
| 1114 Isolate* isolate, Handle<Object> object); |
| 1115 |
| 1116 MUST_USE_RESULT static MaybeHandle<Object> BasicJsonStringifyString( |
| 1117 Isolate* isolate, Handle<String> string); |
| 1118 |
1113 enum TypedArrayId { | 1119 enum TypedArrayId { |
1114 // arrayIds below should be synchronized with typedarray.js natives. | 1120 // arrayIds below should be synchronized with typedarray.js natives. |
1115 ARRAY_ID_UINT8 = 1, | 1121 ARRAY_ID_UINT8 = 1, |
1116 ARRAY_ID_INT8 = 2, | 1122 ARRAY_ID_INT8 = 2, |
1117 ARRAY_ID_UINT16 = 3, | 1123 ARRAY_ID_UINT16 = 3, |
1118 ARRAY_ID_INT16 = 4, | 1124 ARRAY_ID_INT16 = 4, |
1119 ARRAY_ID_UINT32 = 5, | 1125 ARRAY_ID_UINT32 = 5, |
1120 ARRAY_ID_INT32 = 6, | 1126 ARRAY_ID_INT32 = 6, |
1121 ARRAY_ID_FLOAT32 = 7, | 1127 ARRAY_ID_FLOAT32 = 7, |
1122 ARRAY_ID_FLOAT64 = 8, | 1128 ARRAY_ID_FLOAT64 = 8, |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1177 | 1183 |
1178 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; | 1184 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; |
1179 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; | 1185 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; |
1180 STATIC_ASSERT(LANGUAGE_END == 3); | 1186 STATIC_ASSERT(LANGUAGE_END == 3); |
1181 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; | 1187 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; |
1182 | 1188 |
1183 } // namespace internal | 1189 } // namespace internal |
1184 } // namespace v8 | 1190 } // namespace v8 |
1185 | 1191 |
1186 #endif // V8_RUNTIME_RUNTIME_H_ | 1192 #endif // V8_RUNTIME_RUNTIME_H_ |
OLD | NEW |