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 820 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
831 Isolate* isolate, | 831 Isolate* isolate, |
832 Handle<JSArrayBuffer> array_buffer, | 832 Handle<JSArrayBuffer> array_buffer, |
833 size_t allocated_length, | 833 size_t allocated_length, |
834 bool initialize = true); | 834 bool initialize = true); |
835 | 835 |
836 static void FreeArrayBuffer( | 836 static void FreeArrayBuffer( |
837 Isolate* isolate, | 837 Isolate* isolate, |
838 JSArrayBuffer* phantom_array_buffer); | 838 JSArrayBuffer* phantom_array_buffer); |
839 | 839 |
840 // Helper functions used stubs. | 840 // Helper functions used stubs. |
841 static void PerformGC(Object* result); | 841 static void PerformGC(Object* result, Isolate* isolate); |
842 | 842 |
843 // Used in runtime.cc and hydrogen's VisitArrayLiteral. | 843 // Used in runtime.cc and hydrogen's VisitArrayLiteral. |
844 static Handle<Object> CreateArrayLiteralBoilerplate( | 844 static Handle<Object> CreateArrayLiteralBoilerplate( |
845 Isolate* isolate, | 845 Isolate* isolate, |
846 Handle<FixedArray> literals, | 846 Handle<FixedArray> literals, |
847 Handle<FixedArray> elements); | 847 Handle<FixedArray> elements); |
848 }; | 848 }; |
849 | 849 |
850 | 850 |
851 //--------------------------------------------------------------------------- | 851 //--------------------------------------------------------------------------- |
852 // Constants used by interface to runtime functions. | 852 // Constants used by interface to runtime functions. |
853 | 853 |
854 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; | 854 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; |
855 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; | 855 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; |
856 class DeclareGlobalsLanguageMode: public BitField<LanguageMode, 2, 2> {}; | 856 class DeclareGlobalsLanguageMode: public BitField<LanguageMode, 2, 2> {}; |
857 | 857 |
858 } } // namespace v8::internal | 858 } } // namespace v8::internal |
859 | 859 |
860 #endif // V8_RUNTIME_H_ | 860 #endif // V8_RUNTIME_H_ |
OLD | NEW |