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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 V(JSEntry) \ | 43 V(JSEntry) \ |
44 V(LoadIndexedString) \ | 44 V(LoadIndexedString) \ |
45 V(MathPow) \ | 45 V(MathPow) \ |
46 V(ProfileEntryHook) \ | 46 V(ProfileEntryHook) \ |
47 V(RecordWrite) \ | 47 V(RecordWrite) \ |
48 V(RegExpExec) \ | 48 V(RegExpExec) \ |
49 V(StoreBufferOverflow) \ | 49 V(StoreBufferOverflow) \ |
50 V(StoreElement) \ | 50 V(StoreElement) \ |
51 V(SubString) \ | 51 V(SubString) \ |
52 V(LoadGlobalIC) \ | 52 V(LoadGlobalIC) \ |
53 V(FastNewObject) \ | |
54 V(FastNewRestParameter) \ | 53 V(FastNewRestParameter) \ |
55 V(FastNewSloppyArguments) \ | 54 V(FastNewSloppyArguments) \ |
56 V(FastNewStrictArguments) \ | 55 V(FastNewStrictArguments) \ |
57 V(NameDictionaryLookup) \ | 56 V(NameDictionaryLookup) \ |
58 /* This can be removed once there are no */ \ | 57 /* This can be removed once there are no */ \ |
59 /* more deopting Hydrogen stubs. */ \ | 58 /* more deopting Hydrogen stubs. */ \ |
60 V(StubFailureTrampoline) \ | 59 V(StubFailureTrampoline) \ |
61 /* These are only called from FCG */ \ | 60 /* These are only called from FCG */ \ |
62 /* They can be removed when only the TF */ \ | 61 /* They can be removed when only the TF */ \ |
63 /* version of the corresponding stub is */ \ | 62 /* version of the corresponding stub is */ \ |
(...skipping 750 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
814 // new space. | 813 // new space. |
815 STATIC_ASSERT(((kMaximumSlots + Context::MIN_CONTEXT_SLOTS) * kPointerSize + | 814 STATIC_ASSERT(((kMaximumSlots + Context::MIN_CONTEXT_SLOTS) * kPointerSize + |
816 FixedArray::kHeaderSize) < kMaxRegularHeapObjectSize); | 815 FixedArray::kHeaderSize) < kMaxRegularHeapObjectSize); |
817 | 816 |
818 class ScopeTypeBits : public BitField<bool, 0, 8> {}; | 817 class ScopeTypeBits : public BitField<bool, 0, 8> {}; |
819 | 818 |
820 DEFINE_CALL_INTERFACE_DESCRIPTOR(FastNewFunctionContext); | 819 DEFINE_CALL_INTERFACE_DESCRIPTOR(FastNewFunctionContext); |
821 DEFINE_TURBOFAN_CODE_STUB(FastNewFunctionContext, TurboFanCodeStub); | 820 DEFINE_TURBOFAN_CODE_STUB(FastNewFunctionContext, TurboFanCodeStub); |
822 }; | 821 }; |
823 | 822 |
824 class FastNewObjectStub final : public PlatformCodeStub { | |
825 public: | |
826 explicit FastNewObjectStub(Isolate* isolate) : PlatformCodeStub(isolate) {} | |
827 | |
828 DEFINE_CALL_INTERFACE_DESCRIPTOR(FastNewObject); | |
829 DEFINE_PLATFORM_CODE_STUB(FastNewObject, PlatformCodeStub); | |
830 }; | |
831 | |
832 | |
833 // TODO(turbofan): This stub should be possible to write in TurboFan | 823 // TODO(turbofan): This stub should be possible to write in TurboFan |
834 // using the CodeStubAssembler very soon in a way that is as efficient | 824 // using the CodeStubAssembler very soon in a way that is as efficient |
835 // and easy as the current handwritten version, which is partly a copy | 825 // and easy as the current handwritten version, which is partly a copy |
836 // of the strict arguments object materialization code. | 826 // of the strict arguments object materialization code. |
837 class FastNewRestParameterStub final : public PlatformCodeStub { | 827 class FastNewRestParameterStub final : public PlatformCodeStub { |
838 public: | 828 public: |
839 explicit FastNewRestParameterStub(Isolate* isolate, | 829 explicit FastNewRestParameterStub(Isolate* isolate, |
840 bool skip_stub_frame = false) | 830 bool skip_stub_frame = false) |
841 : PlatformCodeStub(isolate) { | 831 : PlatformCodeStub(isolate) { |
842 minor_key_ = SkipStubFrameBits::encode(skip_stub_frame); | 832 minor_key_ = SkipStubFrameBits::encode(skip_stub_frame); |
(...skipping 1630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2473 #undef DEFINE_PLATFORM_CODE_STUB | 2463 #undef DEFINE_PLATFORM_CODE_STUB |
2474 #undef DEFINE_HANDLER_CODE_STUB | 2464 #undef DEFINE_HANDLER_CODE_STUB |
2475 #undef DEFINE_HYDROGEN_CODE_STUB | 2465 #undef DEFINE_HYDROGEN_CODE_STUB |
2476 #undef DEFINE_CODE_STUB | 2466 #undef DEFINE_CODE_STUB |
2477 #undef DEFINE_CODE_STUB_BASE | 2467 #undef DEFINE_CODE_STUB_BASE |
2478 | 2468 |
2479 } // namespace internal | 2469 } // namespace internal |
2480 } // namespace v8 | 2470 } // namespace v8 |
2481 | 2471 |
2482 #endif // V8_CODE_STUBS_H_ | 2472 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |