OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
816 Handle<String> pat, | 816 Handle<String> pat, |
817 int index); | 817 int index); |
818 | 818 |
819 static bool IsUpperCaseChar(RuntimeState* runtime_state, uint16_t ch); | 819 static bool IsUpperCaseChar(RuntimeState* runtime_state, uint16_t ch); |
820 | 820 |
821 // TODO(1240886): Some of the following methods are *not* handle safe, but | 821 // TODO(1240886): Some of the following methods are *not* handle safe, but |
822 // accept handle arguments. This seems fragile. | 822 // accept handle arguments. This seems fragile. |
823 | 823 |
824 // Support getting the characters in a string using [] notation as | 824 // Support getting the characters in a string using [] notation as |
825 // in Firefox/SpiderMonkey, Safari and Opera. | 825 // in Firefox/SpiderMonkey, Safari and Opera. |
826 static Handle<Object> GetElementOrCharAt(Isolate* isolate, | 826 MUST_USE_RESULT static MaybeHandle<Object> GetElementOrCharAt( |
827 Handle<Object> object, | 827 Isolate* isolate, |
828 uint32_t index); | 828 Handle<Object> object, |
| 829 uint32_t index); |
829 | 830 |
830 MUST_USE_RESULT static MaybeHandle<Object> SetObjectProperty( | 831 MUST_USE_RESULT static MaybeHandle<Object> SetObjectProperty( |
831 Isolate* isolate, | 832 Isolate* isolate, |
832 Handle<Object> object, | 833 Handle<Object> object, |
833 Handle<Object> key, | 834 Handle<Object> key, |
834 Handle<Object> value, | 835 Handle<Object> value, |
835 PropertyAttributes attr, | 836 PropertyAttributes attr, |
836 StrictMode strict_mode); | 837 StrictMode strict_mode); |
837 | 838 |
838 MUST_USE_RESULT static MaybeHandle<Object> ForceSetObjectProperty( | 839 MUST_USE_RESULT static MaybeHandle<Object> ForceSetObjectProperty( |
839 Handle<JSObject> object, | 840 Handle<JSObject> object, |
840 Handle<Object> key, | 841 Handle<Object> key, |
841 Handle<Object> value, | 842 Handle<Object> value, |
842 PropertyAttributes attr); | 843 PropertyAttributes attr); |
843 | 844 |
844 MUST_USE_RESULT static MaybeHandle<Object> DeleteObjectProperty( | 845 MUST_USE_RESULT static MaybeHandle<Object> DeleteObjectProperty( |
845 Isolate* isolate, | 846 Isolate* isolate, |
846 Handle<JSReceiver> object, | 847 Handle<JSReceiver> object, |
847 Handle<Object> key, | 848 Handle<Object> key, |
848 JSReceiver::DeleteMode mode); | 849 JSReceiver::DeleteMode mode); |
849 | 850 |
850 MUST_USE_RESULT static MaybeHandle<Object> HasObjectProperty( | 851 MUST_USE_RESULT static MaybeHandle<Object> HasObjectProperty( |
851 Isolate* isolate, | 852 Isolate* isolate, |
852 Handle<JSReceiver> object, | 853 Handle<JSReceiver> object, |
853 Handle<Object> key); | 854 Handle<Object> key); |
854 | 855 |
855 static Handle<Object> GetObjectProperty(Isolate* isolate, | 856 MUST_USE_RESULT static MaybeHandle<Object> GetObjectProperty( |
856 Handle<Object> object, | 857 Isolate* isolate, |
857 Handle<Object> key); | 858 Handle<Object> object, |
| 859 Handle<Object> key); |
858 | 860 |
859 static void SetupArrayBuffer(Isolate* isolate, | 861 static void SetupArrayBuffer(Isolate* isolate, |
860 Handle<JSArrayBuffer> array_buffer, | 862 Handle<JSArrayBuffer> array_buffer, |
861 bool is_external, | 863 bool is_external, |
862 void* data, | 864 void* data, |
863 size_t allocated_length); | 865 size_t allocated_length); |
864 | 866 |
865 static bool SetupArrayBufferAllocatingData( | 867 static bool SetupArrayBufferAllocatingData( |
866 Isolate* isolate, | 868 Isolate* isolate, |
867 Handle<JSArrayBuffer> array_buffer, | 869 Handle<JSArrayBuffer> array_buffer, |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
911 class AllocateDoubleAlignFlag: public BitField<bool, 0, 1> {}; | 913 class AllocateDoubleAlignFlag: public BitField<bool, 0, 1> {}; |
912 class AllocateTargetSpace: public BitField<AllocationSpace, 1, 3> {}; | 914 class AllocateTargetSpace: public BitField<AllocationSpace, 1, 3> {}; |
913 | 915 |
914 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; | 916 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; |
915 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; | 917 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; |
916 class DeclareGlobalsStrictMode: public BitField<StrictMode, 2, 1> {}; | 918 class DeclareGlobalsStrictMode: public BitField<StrictMode, 2, 1> {}; |
917 | 919 |
918 } } // namespace v8::internal | 920 } } // namespace v8::internal |
919 | 921 |
920 #endif // V8_RUNTIME_H_ | 922 #endif // V8_RUNTIME_H_ |
OLD | NEW |