| 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_CODE_STUBS_H_ | 5 #ifndef V8_CODE_STUBS_H_ |
| 6 #define V8_CODE_STUBS_H_ | 6 #define V8_CODE_STUBS_H_ |
| 7 | 7 |
| 8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
| 9 #include "src/assembler.h" | 9 #include "src/assembler.h" |
| 10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
| (...skipping 1005 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1016 class ElementsKindBits : public BitField<ElementsKind, 0, 8> {}; | 1016 class ElementsKindBits : public BitField<ElementsKind, 0, 8> {}; |
| 1017 class IsJsArrayBits : public BitField<bool, ElementsKindBits::kNext, 1> {}; | 1017 class IsJsArrayBits : public BitField<bool, ElementsKindBits::kNext, 1> {}; |
| 1018 | 1018 |
| 1019 DEFINE_CALL_INTERFACE_DESCRIPTOR(GrowArrayElements); | 1019 DEFINE_CALL_INTERFACE_DESCRIPTOR(GrowArrayElements); |
| 1020 DEFINE_HYDROGEN_CODE_STUB(GrowArrayElements, HydrogenCodeStub); | 1020 DEFINE_HYDROGEN_CODE_STUB(GrowArrayElements, HydrogenCodeStub); |
| 1021 }; | 1021 }; |
| 1022 | 1022 |
| 1023 | 1023 |
| 1024 class InstanceOfStub final : public PlatformCodeStub { | 1024 class InstanceOfStub final : public PlatformCodeStub { |
| 1025 public: | 1025 public: |
| 1026 explicit InstanceOfStub(Isolate* isolate) : PlatformCodeStub(isolate) {} | 1026 explicit InstanceOfStub(Isolate* isolate, bool es6_instanceof = false) |
| 1027 : PlatformCodeStub(isolate) { |
| 1028 minor_key_ = IsES6InstanceOfBits::encode(es6_instanceof); |
| 1029 } |
| 1030 |
| 1031 bool is_es6_instanceof() const { |
| 1032 return IsES6InstanceOfBits::decode(minor_key_); |
| 1033 } |
| 1027 | 1034 |
| 1028 private: | 1035 private: |
| 1036 class IsES6InstanceOfBits : public BitField<bool, 0, 1> {}; |
| 1037 |
| 1029 DEFINE_CALL_INTERFACE_DESCRIPTOR(InstanceOf); | 1038 DEFINE_CALL_INTERFACE_DESCRIPTOR(InstanceOf); |
| 1030 DEFINE_PLATFORM_CODE_STUB(InstanceOf, PlatformCodeStub); | 1039 DEFINE_PLATFORM_CODE_STUB(InstanceOf, PlatformCodeStub); |
| 1031 }; | 1040 }; |
| 1032 | 1041 |
| 1033 | 1042 |
| 1034 enum AllocationSiteOverrideMode { | 1043 enum AllocationSiteOverrideMode { |
| 1035 DONT_OVERRIDE, | 1044 DONT_OVERRIDE, |
| 1036 DISABLE_ALLOCATION_SITES, | 1045 DISABLE_ALLOCATION_SITES, |
| 1037 LAST_ALLOCATION_SITE_OVERRIDE_MODE = DISABLE_ALLOCATION_SITES | 1046 LAST_ALLOCATION_SITE_OVERRIDE_MODE = DISABLE_ALLOCATION_SITES |
| 1038 }; | 1047 }; |
| (...skipping 1957 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2996 #undef DEFINE_HYDROGEN_CODE_STUB | 3005 #undef DEFINE_HYDROGEN_CODE_STUB |
| 2997 #undef DEFINE_CODE_STUB | 3006 #undef DEFINE_CODE_STUB |
| 2998 #undef DEFINE_CODE_STUB_BASE | 3007 #undef DEFINE_CODE_STUB_BASE |
| 2999 | 3008 |
| 3000 extern Representation RepresentationFromType(Type* type); | 3009 extern Representation RepresentationFromType(Type* type); |
| 3001 | 3010 |
| 3002 } // namespace internal | 3011 } // namespace internal |
| 3003 } // namespace v8 | 3012 } // namespace v8 |
| 3004 | 3013 |
| 3005 #endif // V8_CODE_STUBS_H_ | 3014 #endif // V8_CODE_STUBS_H_ |
| OLD | NEW |