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_H_ | 5 #ifndef V8_RUNTIME_H_ |
6 #define V8_RUNTIME_H_ | 6 #define V8_RUNTIME_H_ |
7 | 7 |
8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/zone.h" | 9 #include "src/zone.h" |
10 | 10 |
(...skipping 804 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
815 // Get the intrinsic function with the given FunctionId. | 815 // Get the intrinsic function with the given FunctionId. |
816 static const Function* FunctionForId(FunctionId id); | 816 static const Function* FunctionForId(FunctionId id); |
817 | 817 |
818 // Get the intrinsic function with the given function entry address. | 818 // Get the intrinsic function with the given function entry address. |
819 static const Function* FunctionForEntry(Address ref); | 819 static const Function* FunctionForEntry(Address ref); |
820 | 820 |
821 // General-purpose helper functions for runtime system. | 821 // General-purpose helper functions for runtime system. |
822 static int StringMatch(Isolate* isolate, Handle<String> sub, | 822 static int StringMatch(Isolate* isolate, Handle<String> sub, |
823 Handle<String> pat, int index); | 823 Handle<String> pat, int index); |
824 | 824 |
825 static bool IsUpperCaseChar(RuntimeState* runtime_state, uint16_t ch); | |
826 | |
827 // TODO(1240886): Some of the following methods are *not* handle safe, but | 825 // TODO(1240886): Some of the following methods are *not* handle safe, but |
828 // accept handle arguments. This seems fragile. | 826 // accept handle arguments. This seems fragile. |
829 | 827 |
830 // Support getting the characters in a string using [] notation as | 828 // Support getting the characters in a string using [] notation as |
831 // in Firefox/SpiderMonkey, Safari and Opera. | 829 // in Firefox/SpiderMonkey, Safari and Opera. |
832 MUST_USE_RESULT static MaybeHandle<Object> GetElementOrCharAt( | 830 MUST_USE_RESULT static MaybeHandle<Object> GetElementOrCharAt( |
833 Isolate* isolate, Handle<Object> object, uint32_t index); | 831 Isolate* isolate, Handle<Object> object, uint32_t index); |
834 | 832 |
835 MUST_USE_RESULT static MaybeHandle<Object> SetObjectProperty( | 833 MUST_USE_RESULT static MaybeHandle<Object> SetObjectProperty( |
836 Isolate* isolate, Handle<Object> object, Handle<Object> key, | 834 Isolate* isolate, Handle<Object> object, Handle<Object> key, |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
898 class AllocateDoubleAlignFlag : public BitField<bool, 0, 1> {}; | 896 class AllocateDoubleAlignFlag : public BitField<bool, 0, 1> {}; |
899 class AllocateTargetSpace : public BitField<AllocationSpace, 1, 3> {}; | 897 class AllocateTargetSpace : public BitField<AllocationSpace, 1, 3> {}; |
900 | 898 |
901 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; | 899 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; |
902 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; | 900 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; |
903 class DeclareGlobalsStrictMode : public BitField<StrictMode, 2, 1> {}; | 901 class DeclareGlobalsStrictMode : public BitField<StrictMode, 2, 1> {}; |
904 } | 902 } |
905 } // namespace v8::internal | 903 } // namespace v8::internal |
906 | 904 |
907 #endif // V8_RUNTIME_H_ | 905 #endif // V8_RUNTIME_H_ |
OLD | NEW |