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 1123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1134 ElementsKind* fixed_elements_kind, | 1134 ElementsKind* fixed_elements_kind, |
1135 size_t* element_size); | 1135 size_t* element_size); |
1136 | 1136 |
1137 // Used in runtime.cc and hydrogen's VisitArrayLiteral. | 1137 // Used in runtime.cc and hydrogen's VisitArrayLiteral. |
1138 MUST_USE_RESULT static MaybeHandle<Object> CreateArrayLiteralBoilerplate( | 1138 MUST_USE_RESULT static MaybeHandle<Object> CreateArrayLiteralBoilerplate( |
1139 Isolate* isolate, Handle<LiteralsArray> literals, | 1139 Isolate* isolate, Handle<LiteralsArray> literals, |
1140 Handle<FixedArray> elements); | 1140 Handle<FixedArray> elements); |
1141 | 1141 |
1142 static MaybeHandle<JSArray> GetInternalProperties(Isolate* isolate, | 1142 static MaybeHandle<JSArray> GetInternalProperties(Isolate* isolate, |
1143 Handle<Object>); | 1143 Handle<Object>); |
| 1144 |
| 1145 static bool ComputeLocation(Isolate* isolate, MessageLocation* target); |
| 1146 static Handle<String> RenderCallSite(Isolate* isolate, Handle<Object> object); |
1144 }; | 1147 }; |
1145 | 1148 |
1146 | 1149 |
1147 class RuntimeState { | 1150 class RuntimeState { |
1148 public: | 1151 public: |
1149 unibrow::Mapping<unibrow::ToUppercase, 128>* to_upper_mapping() { | 1152 unibrow::Mapping<unibrow::ToUppercase, 128>* to_upper_mapping() { |
1150 return &to_upper_mapping_; | 1153 return &to_upper_mapping_; |
1151 } | 1154 } |
1152 unibrow::Mapping<unibrow::ToLowercase, 128>* to_lower_mapping() { | 1155 unibrow::Mapping<unibrow::ToLowercase, 128>* to_lower_mapping() { |
1153 return &to_lower_mapping_; | 1156 return &to_lower_mapping_; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1187 | 1190 |
1188 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; | 1191 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; |
1189 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; | 1192 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; |
1190 STATIC_ASSERT(LANGUAGE_END == 3); | 1193 STATIC_ASSERT(LANGUAGE_END == 3); |
1191 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; | 1194 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; |
1192 | 1195 |
1193 } // namespace internal | 1196 } // namespace internal |
1194 } // namespace v8 | 1197 } // namespace v8 |
1195 | 1198 |
1196 #endif // V8_RUNTIME_RUNTIME_H_ | 1199 #endif // V8_RUNTIME_RUNTIME_H_ |
OLD | NEW |