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