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 882 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
893 ARRAY_ID_FLOAT64 = 8, | 893 ARRAY_ID_FLOAT64 = 8, |
894 ARRAY_ID_UINT8_CLAMPED = 9 | 894 ARRAY_ID_UINT8_CLAMPED = 9 |
895 }; | 895 }; |
896 | 896 |
897 static void ArrayIdToTypeAndSize(int array_id, | 897 static void ArrayIdToTypeAndSize(int array_id, |
898 ExternalArrayType *type, | 898 ExternalArrayType *type, |
899 ElementsKind* external_elements_kind, | 899 ElementsKind* external_elements_kind, |
900 ElementsKind* fixed_elements_kind, | 900 ElementsKind* fixed_elements_kind, |
901 size_t *element_size); | 901 size_t *element_size); |
902 | 902 |
903 // Helper functions used stubs. | |
904 static void PerformGC(Object* result, Isolate* isolate); | |
905 static void OutOfMemory(); | |
906 | |
907 // Used in runtime.cc and hydrogen's VisitArrayLiteral. | 903 // Used in runtime.cc and hydrogen's VisitArrayLiteral. |
908 MUST_USE_RESULT static MaybeHandle<Object> CreateArrayLiteralBoilerplate( | 904 MUST_USE_RESULT static MaybeHandle<Object> CreateArrayLiteralBoilerplate( |
909 Isolate* isolate, | 905 Isolate* isolate, |
910 Handle<FixedArray> literals, | 906 Handle<FixedArray> literals, |
911 Handle<FixedArray> elements); | 907 Handle<FixedArray> elements); |
912 }; | 908 }; |
913 | 909 |
914 | 910 |
915 //--------------------------------------------------------------------------- | 911 //--------------------------------------------------------------------------- |
916 // Constants used by interface to runtime functions. | 912 // Constants used by interface to runtime functions. |
917 | 913 |
918 class AllocateDoubleAlignFlag: public BitField<bool, 0, 1> {}; | 914 class AllocateDoubleAlignFlag: public BitField<bool, 0, 1> {}; |
919 class AllocateTargetSpace: public BitField<AllocationSpace, 1, 3> {}; | 915 class AllocateTargetSpace: public BitField<AllocationSpace, 1, 3> {}; |
920 | 916 |
921 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; | 917 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; |
922 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; | 918 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; |
923 class DeclareGlobalsStrictMode: public BitField<StrictMode, 2, 1> {}; | 919 class DeclareGlobalsStrictMode: public BitField<StrictMode, 2, 1> {}; |
924 | 920 |
925 } } // namespace v8::internal | 921 } } // namespace v8::internal |
926 | 922 |
927 #endif // V8_RUNTIME_H_ | 923 #endif // V8_RUNTIME_H_ |
OLD | NEW |