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 29 matching lines...) Expand all Loading... |
40 V(CallFunction) \ | 40 V(CallFunction) \ |
41 V(CallConstruct) \ | 41 V(CallConstruct) \ |
42 V(UnaryOp) \ | 42 V(UnaryOp) \ |
43 V(BinaryOp) \ | 43 V(BinaryOp) \ |
44 V(StringAdd) \ | 44 V(StringAdd) \ |
45 V(SubString) \ | 45 V(SubString) \ |
46 V(StringCompare) \ | 46 V(StringCompare) \ |
47 V(Compare) \ | 47 V(Compare) \ |
48 V(CompareIC) \ | 48 V(CompareIC) \ |
49 V(MathPow) \ | 49 V(MathPow) \ |
50 V(ArrayLength) \ | |
51 V(StringLength) \ | 50 V(StringLength) \ |
52 V(FunctionPrototype) \ | 51 V(FunctionPrototype) \ |
53 V(StoreArrayLength) \ | 52 V(StoreArrayLength) \ |
54 V(RecordWrite) \ | 53 V(RecordWrite) \ |
55 V(StoreBufferOverflow) \ | 54 V(StoreBufferOverflow) \ |
56 V(RegExpExec) \ | 55 V(RegExpExec) \ |
57 V(TranscendentalCache) \ | 56 V(TranscendentalCache) \ |
58 V(Instanceof) \ | 57 V(Instanceof) \ |
59 V(ConvertToDouble) \ | 58 V(ConvertToDouble) \ |
60 V(WriteInt32ToHeapNumber) \ | 59 V(WriteInt32ToHeapNumber) \ |
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
590 | 589 |
591 virtual int MinorKey() { | 590 virtual int MinorKey() { |
592 return KindBits::encode(kind_); | 591 return KindBits::encode(kind_); |
593 } | 592 } |
594 | 593 |
595 private: | 594 private: |
596 Code::Kind kind_; | 595 Code::Kind kind_; |
597 }; | 596 }; |
598 | 597 |
599 | 598 |
600 class ArrayLengthStub: public ICStub { | |
601 public: | |
602 explicit ArrayLengthStub(Code::Kind kind) : ICStub(kind) { } | |
603 virtual void Generate(MacroAssembler* masm); | |
604 | |
605 private: | |
606 virtual CodeStub::Major MajorKey() { return ArrayLength; } | |
607 }; | |
608 | |
609 | |
610 class FunctionPrototypeStub: public ICStub { | 599 class FunctionPrototypeStub: public ICStub { |
611 public: | 600 public: |
612 explicit FunctionPrototypeStub(Code::Kind kind) : ICStub(kind) { } | 601 explicit FunctionPrototypeStub(Code::Kind kind) : ICStub(kind) { } |
613 virtual void Generate(MacroAssembler* masm); | 602 virtual void Generate(MacroAssembler* masm); |
614 | 603 |
615 private: | 604 private: |
616 virtual CodeStub::Major MajorKey() { return FunctionPrototype; } | 605 virtual CodeStub::Major MajorKey() { return FunctionPrototype; } |
617 }; | 606 }; |
618 | 607 |
619 | 608 |
(...skipping 999 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1619 | 1608 |
1620 // The current function entry hook. | 1609 // The current function entry hook. |
1621 static FunctionEntryHook entry_hook_; | 1610 static FunctionEntryHook entry_hook_; |
1622 | 1611 |
1623 DISALLOW_COPY_AND_ASSIGN(ProfileEntryHookStub); | 1612 DISALLOW_COPY_AND_ASSIGN(ProfileEntryHookStub); |
1624 }; | 1613 }; |
1625 | 1614 |
1626 } } // namespace v8::internal | 1615 } } // namespace v8::internal |
1627 | 1616 |
1628 #endif // V8_CODE_STUBS_H_ | 1617 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |