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/objects.h" | 9 #include "src/objects.h" |
10 #include "src/unicode.h" | 10 #include "src/unicode.h" |
(...skipping 1164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1175 ElementsKind* fixed_elements_kind, | 1175 ElementsKind* fixed_elements_kind, |
1176 size_t* element_size); | 1176 size_t* element_size); |
1177 | 1177 |
1178 // Used in runtime.cc and hydrogen's VisitArrayLiteral. | 1178 // Used in runtime.cc and hydrogen's VisitArrayLiteral. |
1179 MUST_USE_RESULT static MaybeHandle<Object> CreateArrayLiteralBoilerplate( | 1179 MUST_USE_RESULT static MaybeHandle<Object> CreateArrayLiteralBoilerplate( |
1180 Isolate* isolate, Handle<LiteralsArray> literals, | 1180 Isolate* isolate, Handle<LiteralsArray> literals, |
1181 Handle<FixedArray> elements, bool is_strong); | 1181 Handle<FixedArray> elements, bool is_strong); |
1182 | 1182 |
1183 static MaybeHandle<JSArray> GetInternalProperties(Isolate* isolate, | 1183 static MaybeHandle<JSArray> GetInternalProperties(Isolate* isolate, |
1184 Handle<Object>); | 1184 Handle<Object>); |
1185 | |
1186 // Find the arguments of the JavaScript function invocation that called | |
1187 // into C++ code. Collect these in a newly allocated array of handles | |
1188 // (possibly prefixed by a number of empty handles). | |
1189 // TODO(mstarzinger): Temporary workaround until this is only used by the | |
1190 // %_Arguments and %_ArgumentsLength intrinsics. Make this function local to | |
1191 // runtime-scopes.cc then. | |
1192 static base::SmartArrayPointer<Handle<Object>> GetCallerArguments( | |
1193 Isolate* isolate, int prefix_argc, int* total_argc); | |
1194 }; | 1185 }; |
1195 | 1186 |
1196 | 1187 |
1197 class RuntimeState { | 1188 class RuntimeState { |
1198 public: | 1189 public: |
1199 unibrow::Mapping<unibrow::ToUppercase, 128>* to_upper_mapping() { | 1190 unibrow::Mapping<unibrow::ToUppercase, 128>* to_upper_mapping() { |
1200 return &to_upper_mapping_; | 1191 return &to_upper_mapping_; |
1201 } | 1192 } |
1202 unibrow::Mapping<unibrow::ToLowercase, 128>* to_lower_mapping() { | 1193 unibrow::Mapping<unibrow::ToLowercase, 128>* to_lower_mapping() { |
1203 return &to_lower_mapping_; | 1194 return &to_lower_mapping_; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1236 | 1227 |
1237 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; | 1228 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; |
1238 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; | 1229 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; |
1239 STATIC_ASSERT(LANGUAGE_END == 3); | 1230 STATIC_ASSERT(LANGUAGE_END == 3); |
1240 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; | 1231 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; |
1241 | 1232 |
1242 } // namespace internal | 1233 } // namespace internal |
1243 } // namespace v8 | 1234 } // namespace v8 |
1244 | 1235 |
1245 #endif // V8_RUNTIME_RUNTIME_H_ | 1236 #endif // V8_RUNTIME_RUNTIME_H_ |
OLD | NEW |