| 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 750 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 761 Handle<JSArrayBuffer> array_buffer, | 761 Handle<JSArrayBuffer> array_buffer, |
| 762 bool is_external, | 762 bool is_external, |
| 763 void* data, | 763 void* data, |
| 764 size_t allocated_length); | 764 size_t allocated_length); |
| 765 | 765 |
| 766 static bool SetupArrayBufferAllocatingData( | 766 static bool SetupArrayBufferAllocatingData( |
| 767 Isolate* isolate, | 767 Isolate* isolate, |
| 768 Handle<JSArrayBuffer> array_buffer, | 768 Handle<JSArrayBuffer> array_buffer, |
| 769 size_t allocated_length); | 769 size_t allocated_length); |
| 770 | 770 |
| 771 static void FreeArrayBuffer( |
| 772 Isolate* isolate, |
| 773 JSArrayBuffer* phantom_array_buffer); |
| 774 |
| 771 // Helper functions used stubs. | 775 // Helper functions used stubs. |
| 772 static void PerformGC(Object* result); | 776 static void PerformGC(Object* result); |
| 773 | 777 |
| 774 // Used in runtime.cc and hydrogen's VisitArrayLiteral. | 778 // Used in runtime.cc and hydrogen's VisitArrayLiteral. |
| 775 static Handle<Object> CreateArrayLiteralBoilerplate( | 779 static Handle<Object> CreateArrayLiteralBoilerplate( |
| 776 Isolate* isolate, | 780 Isolate* isolate, |
| 777 Handle<FixedArray> literals, | 781 Handle<FixedArray> literals, |
| 778 Handle<FixedArray> elements); | 782 Handle<FixedArray> elements); |
| 779 }; | 783 }; |
| 780 | 784 |
| 781 | 785 |
| 782 //--------------------------------------------------------------------------- | 786 //--------------------------------------------------------------------------- |
| 783 // Constants used by interface to runtime functions. | 787 // Constants used by interface to runtime functions. |
| 784 | 788 |
| 785 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; | 789 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; |
| 786 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; | 790 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; |
| 787 class DeclareGlobalsLanguageMode: public BitField<LanguageMode, 2, 2> {}; | 791 class DeclareGlobalsLanguageMode: public BitField<LanguageMode, 2, 2> {}; |
| 788 | 792 |
| 789 } } // namespace v8::internal | 793 } } // namespace v8::internal |
| 790 | 794 |
| 791 #endif // V8_RUNTIME_H_ | 795 #endif // V8_RUNTIME_H_ |
| OLD | NEW |