| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 V(RecordWrite) \ | 57 V(RecordWrite) \ |
| 58 V(StoreBufferOverflow) \ | 58 V(StoreBufferOverflow) \ |
| 59 V(RegExpExec) \ | 59 V(RegExpExec) \ |
| 60 V(Instanceof) \ | 60 V(Instanceof) \ |
| 61 V(ConvertToDouble) \ | 61 V(ConvertToDouble) \ |
| 62 V(WriteInt32ToHeapNumber) \ | 62 V(WriteInt32ToHeapNumber) \ |
| 63 V(StackCheck) \ | 63 V(StackCheck) \ |
| 64 V(Interrupt) \ | 64 V(Interrupt) \ |
| 65 V(FastNewClosure) \ | 65 V(FastNewClosure) \ |
| 66 V(FastNewContext) \ | 66 V(FastNewContext) \ |
| 67 V(FastNewBlockContext) \ | |
| 68 V(FastCloneShallowArray) \ | 67 V(FastCloneShallowArray) \ |
| 69 V(FastCloneShallowObject) \ | 68 V(FastCloneShallowObject) \ |
| 70 V(CreateAllocationSite) \ | 69 V(CreateAllocationSite) \ |
| 71 V(ToBoolean) \ | 70 V(ToBoolean) \ |
| 72 V(ToNumber) \ | 71 V(ToNumber) \ |
| 73 V(ArgumentsAccess) \ | 72 V(ArgumentsAccess) \ |
| 74 V(RegExpConstructResult) \ | 73 V(RegExpConstructResult) \ |
| 75 V(NumberToString) \ | 74 V(NumberToString) \ |
| 76 V(DoubleToI) \ | 75 V(DoubleToI) \ |
| 77 V(CEntry) \ | 76 V(CEntry) \ |
| (...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 579 virtual int NotMissMinorKey() V8_OVERRIDE { return slots_; } | 578 virtual int NotMissMinorKey() V8_OVERRIDE { return slots_; } |
| 580 | 579 |
| 581 // Parameters accessed via CodeStubGraphBuilder::GetParameter() | 580 // Parameters accessed via CodeStubGraphBuilder::GetParameter() |
| 582 static const int kFunction = 0; | 581 static const int kFunction = 0; |
| 583 | 582 |
| 584 private: | 583 private: |
| 585 int slots_; | 584 int slots_; |
| 586 }; | 585 }; |
| 587 | 586 |
| 588 | 587 |
| 589 class FastNewBlockContextStub : public PlatformCodeStub { | |
| 590 public: | |
| 591 static const int kMaximumSlots = 64; | |
| 592 | |
| 593 explicit FastNewBlockContextStub(int slots) : slots_(slots) { | |
| 594 ASSERT(slots_ > 0 && slots_ <= kMaximumSlots); | |
| 595 } | |
| 596 | |
| 597 void Generate(MacroAssembler* masm); | |
| 598 | |
| 599 private: | |
| 600 int slots_; | |
| 601 | |
| 602 Major MajorKey() { return FastNewBlockContext; } | |
| 603 int MinorKey() { return slots_; } | |
| 604 }; | |
| 605 | |
| 606 class FastCloneShallowArrayStub : public HydrogenCodeStub { | 588 class FastCloneShallowArrayStub : public HydrogenCodeStub { |
| 607 public: | 589 public: |
| 608 // Maximum length of copied elements array. | 590 // Maximum length of copied elements array. |
| 609 static const int kMaximumClonedLength = 8; | 591 static const int kMaximumClonedLength = 8; |
| 610 enum Mode { | 592 enum Mode { |
| 611 CLONE_ELEMENTS, | 593 CLONE_ELEMENTS, |
| 612 CLONE_DOUBLE_ELEMENTS, | 594 CLONE_DOUBLE_ELEMENTS, |
| 613 COPY_ON_WRITE_ELEMENTS, | 595 COPY_ON_WRITE_ELEMENTS, |
| 614 CLONE_ANY_ELEMENTS, | 596 CLONE_ANY_ELEMENTS, |
| 615 LAST_CLONE_MODE = CLONE_ANY_ELEMENTS | 597 LAST_CLONE_MODE = CLONE_ANY_ELEMENTS |
| (...skipping 1910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2526 | 2508 |
| 2527 | 2509 |
| 2528 class CallDescriptors { | 2510 class CallDescriptors { |
| 2529 public: | 2511 public: |
| 2530 static void InitializeForIsolate(Isolate* isolate); | 2512 static void InitializeForIsolate(Isolate* isolate); |
| 2531 }; | 2513 }; |
| 2532 | 2514 |
| 2533 } } // namespace v8::internal | 2515 } } // namespace v8::internal |
| 2534 | 2516 |
| 2535 #endif // V8_CODE_STUBS_H_ | 2517 #endif // V8_CODE_STUBS_H_ |
| OLD | NEW |