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