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_H_ | 5 #ifndef V8_RUNTIME_H_ |
6 #define V8_RUNTIME_H_ | 6 #define V8_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 880 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
891 ElementsKind* fixed_elements_kind, | 891 ElementsKind* fixed_elements_kind, |
892 size_t* element_size); | 892 size_t* element_size); |
893 | 893 |
894 // Used in runtime.cc and hydrogen's VisitArrayLiteral. | 894 // Used in runtime.cc and hydrogen's VisitArrayLiteral. |
895 MUST_USE_RESULT static MaybeHandle<Object> CreateArrayLiteralBoilerplate( | 895 MUST_USE_RESULT static MaybeHandle<Object> CreateArrayLiteralBoilerplate( |
896 Isolate* isolate, Handle<FixedArray> literals, | 896 Isolate* isolate, Handle<FixedArray> literals, |
897 Handle<FixedArray> elements); | 897 Handle<FixedArray> elements); |
898 }; | 898 }; |
899 | 899 |
900 | 900 |
| 901 std::ostream& operator<<(std::ostream&, Runtime::FunctionId); |
| 902 |
901 //--------------------------------------------------------------------------- | 903 //--------------------------------------------------------------------------- |
902 // Constants used by interface to runtime functions. | 904 // Constants used by interface to runtime functions. |
903 | 905 |
904 class AllocateDoubleAlignFlag : public BitField<bool, 0, 1> {}; | 906 class AllocateDoubleAlignFlag : public BitField<bool, 0, 1> {}; |
905 class AllocateTargetSpace : public BitField<AllocationSpace, 1, 3> {}; | 907 class AllocateTargetSpace : public BitField<AllocationSpace, 1, 3> {}; |
906 | 908 |
907 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; | 909 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; |
908 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; | 910 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; |
909 class DeclareGlobalsStrictMode : public BitField<StrictMode, 2, 1> {}; | 911 class DeclareGlobalsStrictMode : public BitField<StrictMode, 2, 1> {}; |
910 } | 912 |
911 } // namespace v8::internal | 913 } // namespace internal |
| 914 } // namespace v8 |
912 | 915 |
913 #endif // V8_RUNTIME_H_ | 916 #endif // V8_RUNTIME_H_ |
OLD | NEW |