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 730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
741 MUST_USE_RESULT static MaybeObject* GetObjectProperty( | 741 MUST_USE_RESULT static MaybeObject* GetObjectProperty( |
742 Isolate* isolate, | 742 Isolate* isolate, |
743 Handle<Object> object, | 743 Handle<Object> object, |
744 Handle<Object> key); | 744 Handle<Object> key); |
745 | 745 |
746 MUST_USE_RESULT static MaybeObject* GetObjectPropertyOrFail( | 746 MUST_USE_RESULT static MaybeObject* GetObjectPropertyOrFail( |
747 Isolate* isolate, | 747 Isolate* isolate, |
748 Handle<Object> object, | 748 Handle<Object> object, |
749 Handle<Object> key); | 749 Handle<Object> key); |
750 | 750 |
| 751 static bool SetupArrayBuffer(Isolate* isolate, |
| 752 Handle<JSArrayBuffer> array_buffer, |
| 753 void* data, |
| 754 size_t allocated_length); |
| 755 |
| 756 static bool SetupArrayBufferAllocatingData( |
| 757 Isolate* isolate, |
| 758 Handle<JSArrayBuffer> array_buffer, |
| 759 size_t allocated_length); |
| 760 |
751 // Helper functions used stubs. | 761 // Helper functions used stubs. |
752 static void PerformGC(Object* result); | 762 static void PerformGC(Object* result); |
753 | 763 |
754 // Used in runtime.cc and hydrogen's VisitArrayLiteral. | 764 // Used in runtime.cc and hydrogen's VisitArrayLiteral. |
755 static Handle<Object> CreateArrayLiteralBoilerplate( | 765 static Handle<Object> CreateArrayLiteralBoilerplate( |
756 Isolate* isolate, | 766 Isolate* isolate, |
757 Handle<FixedArray> literals, | 767 Handle<FixedArray> literals, |
758 Handle<FixedArray> elements); | 768 Handle<FixedArray> elements); |
759 }; | 769 }; |
760 | 770 |
761 | 771 |
762 //--------------------------------------------------------------------------- | 772 //--------------------------------------------------------------------------- |
763 // Constants used by interface to runtime functions. | 773 // Constants used by interface to runtime functions. |
764 | 774 |
765 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; | 775 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; |
766 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; | 776 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; |
767 class DeclareGlobalsLanguageMode: public BitField<LanguageMode, 2, 2> {}; | 777 class DeclareGlobalsLanguageMode: public BitField<LanguageMode, 2, 2> {}; |
768 | 778 |
769 } } // namespace v8::internal | 779 } } // namespace v8::internal |
770 | 780 |
771 #endif // V8_RUNTIME_H_ | 781 #endif // V8_RUNTIME_H_ |
OLD | NEW |