Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Side by Side Diff: src/code-stubs.h

Issue 19492007: Generate KeyedLoadDictionaryElementStub with Hydrogen (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add V8_OVERRIDE Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 1703 matching lines...) Expand 10 before | Expand all | Expand 10 after
1714 } 1714 }
1715 1715
1716 private: 1716 private:
1717 MacroAssembler* masm_; 1717 MacroAssembler* masm_;
1718 bool previous_allow_; 1718 bool previous_allow_;
1719 1719
1720 DISALLOW_COPY_AND_ASSIGN(AllowStubCallsScope); 1720 DISALLOW_COPY_AND_ASSIGN(AllowStubCallsScope);
1721 }; 1721 };
1722 1722
1723 1723
1724 class KeyedLoadDictionaryElementStub : public PlatformCodeStub { 1724 class KeyedLoadDictionaryElementStub : public HydrogenCodeStub {
1725 public: 1725 public:
1726 KeyedLoadDictionaryElementStub() {} 1726 KeyedLoadDictionaryElementStub() {}
1727 1727
1728 virtual Handle<Code> GenerateCode(Isolate* isolate) V8_OVERRIDE;
1729
1730 virtual void InitializeInterfaceDescriptor(
1731 Isolate* isolate,
1732 CodeStubInterfaceDescriptor* descriptor) V8_OVERRIDE;
1733
1734 private:
1735 Major MajorKey() { return KeyedLoadElement; }
1736 int NotMissMinorKey() { return DICTIONARY_ELEMENTS; }
1737
1738 DISALLOW_COPY_AND_ASSIGN(KeyedLoadDictionaryElementStub);
1739 };
1740
1741
1742 class KeyedLoadDictionaryElementPlatformStub : public PlatformCodeStub {
1743 public:
1744 KeyedLoadDictionaryElementPlatformStub() {}
1745
1728 void Generate(MacroAssembler* masm); 1746 void Generate(MacroAssembler* masm);
1729 1747
1730 private: 1748 private:
1731 Major MajorKey() { return KeyedLoadElement; } 1749 Major MajorKey() { return KeyedLoadElement; }
1732 int MinorKey() { return DICTIONARY_ELEMENTS; } 1750 int MinorKey() { return DICTIONARY_ELEMENTS; }
1733 1751
1734 DISALLOW_COPY_AND_ASSIGN(KeyedLoadDictionaryElementStub); 1752 DISALLOW_COPY_AND_ASSIGN(KeyedLoadDictionaryElementPlatformStub);
1735 }; 1753 };
1736 1754
1737 1755
1738 class DoubleToIStub : public PlatformCodeStub { 1756 class DoubleToIStub : public PlatformCodeStub {
1739 public: 1757 public:
1740 DoubleToIStub(Register source, 1758 DoubleToIStub(Register source,
1741 Register destination, 1759 Register destination,
1742 int offset, 1760 int offset,
1743 bool is_truncating, 1761 bool is_truncating,
1744 bool skip_fastpath = false) : bit_field_(0) { 1762 bool skip_fastpath = false) : bit_field_(0) {
(...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after
2357 int MinorKey() { return 0; } 2375 int MinorKey() { return 0; }
2358 2376
2359 void Generate(MacroAssembler* masm); 2377 void Generate(MacroAssembler* masm);
2360 2378
2361 DISALLOW_COPY_AND_ASSIGN(ProfileEntryHookStub); 2379 DISALLOW_COPY_AND_ASSIGN(ProfileEntryHookStub);
2362 }; 2380 };
2363 2381
2364 } } // namespace v8::internal 2382 } } // namespace v8::internal
2365 2383
2366 #endif // V8_CODE_STUBS_H_ 2384 #endif // V8_CODE_STUBS_H_
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-arm.cc ('k') | src/code-stubs.cc » ('j') | src/code-stubs-hydrogen.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698