| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_RUNTIME_RUNTIME_H_ | 5 #ifndef V8_RUNTIME_RUNTIME_H_ |
| 6 #define V8_RUNTIME_RUNTIME_H_ | 6 #define V8_RUNTIME_RUNTIME_H_ |
| 7 | 7 |
| 8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
| 9 #include "src/objects.h" | 9 #include "src/objects.h" |
| 10 #include "src/zone.h" | 10 #include "src/zone.h" |
| (...skipping 821 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 832 Isolate* isolate, Handle<Object> object, Handle<Object> key); | 832 Isolate* isolate, Handle<Object> object, Handle<Object> key); |
| 833 | 833 |
| 834 MUST_USE_RESULT static MaybeHandle<Object> GetPrototype( | 834 MUST_USE_RESULT static MaybeHandle<Object> GetPrototype( |
| 835 Isolate* isolate, Handle<Object> object); | 835 Isolate* isolate, Handle<Object> object); |
| 836 | 836 |
| 837 MUST_USE_RESULT static MaybeHandle<Name> ToName(Isolate* isolate, | 837 MUST_USE_RESULT static MaybeHandle<Name> ToName(Isolate* isolate, |
| 838 Handle<Object> key); | 838 Handle<Object> key); |
| 839 | 839 |
| 840 static void SetupArrayBuffer(Isolate* isolate, | 840 static void SetupArrayBuffer(Isolate* isolate, |
| 841 Handle<JSArrayBuffer> array_buffer, | 841 Handle<JSArrayBuffer> array_buffer, |
| 842 bool is_external, void* data, | 842 bool is_external, bool is_guarded, void* data, |
| 843 size_t allocated_length); | 843 size_t allocated_length); |
| 844 | 844 |
| 845 static bool SetupArrayBufferAllocatingData(Isolate* isolate, | 845 static bool SetupArrayBufferAllocatingData(Isolate* isolate, |
| 846 Handle<JSArrayBuffer> array_buffer, | 846 Handle<JSArrayBuffer> array_buffer, |
| 847 size_t allocated_length, | 847 size_t allocated_length, |
| 848 bool initialize = true); | 848 bool initialize = true); |
| 849 | 849 |
| 850 static void NeuterArrayBuffer(Handle<JSArrayBuffer> array_buffer); | 850 static void NeuterArrayBuffer(Handle<JSArrayBuffer> array_buffer); |
| 851 | 851 |
| 852 static void FreeArrayBuffer(Isolate* isolate, | 852 static void FreeArrayBuffer(Isolate* isolate, |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 890 class AllocateTargetSpace : public BitField<AllocationSpace, 1, 3> {}; | 890 class AllocateTargetSpace : public BitField<AllocationSpace, 1, 3> {}; |
| 891 | 891 |
| 892 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; | 892 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; |
| 893 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; | 893 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; |
| 894 class DeclareGlobalsStrictMode : public BitField<StrictMode, 2, 1> {}; | 894 class DeclareGlobalsStrictMode : public BitField<StrictMode, 2, 1> {}; |
| 895 | 895 |
| 896 } // namespace internal | 896 } // namespace internal |
| 897 } // namespace v8 | 897 } // namespace v8 |
| 898 | 898 |
| 899 #endif // V8_RUNTIME_RUNTIME_H_ | 899 #endif // V8_RUNTIME_RUNTIME_H_ |
| OLD | NEW |