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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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) \ | 50 V(ArrayLength) \ |
51 V(StringLength) \ | 51 V(StringLength) \ |
| 52 V(FunctionPrototype) \ |
52 V(RecordWrite) \ | 53 V(RecordWrite) \ |
53 V(StoreBufferOverflow) \ | 54 V(StoreBufferOverflow) \ |
54 V(RegExpExec) \ | 55 V(RegExpExec) \ |
55 V(TranscendentalCache) \ | 56 V(TranscendentalCache) \ |
56 V(Instanceof) \ | 57 V(Instanceof) \ |
57 V(ConvertToDouble) \ | 58 V(ConvertToDouble) \ |
58 V(WriteInt32ToHeapNumber) \ | 59 V(WriteInt32ToHeapNumber) \ |
59 V(StackCheck) \ | 60 V(StackCheck) \ |
60 V(Interrupt) \ | 61 V(Interrupt) \ |
61 V(FastNewClosure) \ | 62 V(FastNewClosure) \ |
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
570 class ArrayLengthStub: public ICStub { | 571 class ArrayLengthStub: public ICStub { |
571 public: | 572 public: |
572 explicit ArrayLengthStub(Code::Kind kind) : ICStub(kind) { } | 573 explicit ArrayLengthStub(Code::Kind kind) : ICStub(kind) { } |
573 virtual void Generate(MacroAssembler* masm); | 574 virtual void Generate(MacroAssembler* masm); |
574 | 575 |
575 private: | 576 private: |
576 virtual CodeStub::Major MajorKey() { return ArrayLength; } | 577 virtual CodeStub::Major MajorKey() { return ArrayLength; } |
577 }; | 578 }; |
578 | 579 |
579 | 580 |
| 581 class FunctionPrototypeStub: public ICStub { |
| 582 public: |
| 583 explicit FunctionPrototypeStub(Code::Kind kind) : ICStub(kind) { } |
| 584 virtual void Generate(MacroAssembler* masm); |
| 585 |
| 586 private: |
| 587 virtual CodeStub::Major MajorKey() { return FunctionPrototype; } |
| 588 }; |
| 589 |
| 590 |
580 class StringLengthStub: public ICStub { | 591 class StringLengthStub: public ICStub { |
581 public: | 592 public: |
582 StringLengthStub(Code::Kind kind, bool support_wrapper) | 593 StringLengthStub(Code::Kind kind, bool support_wrapper) |
583 : ICStub(kind), support_wrapper_(support_wrapper) { } | 594 : ICStub(kind), support_wrapper_(support_wrapper) { } |
584 virtual void Generate(MacroAssembler* masm); | 595 virtual void Generate(MacroAssembler* masm); |
585 | 596 |
586 private: | 597 private: |
587 class WrapperModeBits: public BitField<bool, 4, 1> {}; | 598 class WrapperModeBits: public BitField<bool, 4, 1> {}; |
588 virtual CodeStub::Major MajorKey() { return StringLength; } | 599 virtual CodeStub::Major MajorKey() { return StringLength; } |
589 virtual int MinorKey() { | 600 virtual int MinorKey() { |
(...skipping 777 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1367 | 1378 |
1368 // The current function entry hook. | 1379 // The current function entry hook. |
1369 static FunctionEntryHook entry_hook_; | 1380 static FunctionEntryHook entry_hook_; |
1370 | 1381 |
1371 DISALLOW_COPY_AND_ASSIGN(ProfileEntryHookStub); | 1382 DISALLOW_COPY_AND_ASSIGN(ProfileEntryHookStub); |
1372 }; | 1383 }; |
1373 | 1384 |
1374 } } // namespace v8::internal | 1385 } } // namespace v8::internal |
1375 | 1386 |
1376 #endif // V8_CODE_STUBS_H_ | 1387 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |