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