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

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

Issue 14846017: Becuase of cross-context calls, hydrogen-based Array constructor needs to ensure (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Enable optimize_constructed_arrays Created 7 years, 7 months 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
« no previous file with comments | « src/builtins.cc ('k') | src/code-stubs-hydrogen.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1634 matching lines...) Expand 10 before | Expand all | Expand 10 after
1645 return AllocationSiteModeBits::decode(bit_field_) 1645 return AllocationSiteModeBits::decode(bit_field_)
1646 ? TRACK_ALLOCATION_SITE 1646 ? TRACK_ALLOCATION_SITE
1647 : DONT_TRACK_ALLOCATION_SITE; 1647 : DONT_TRACK_ALLOCATION_SITE;
1648 } 1648 }
1649 1649
1650 virtual bool IsPregenerated() { return true; } 1650 virtual bool IsPregenerated() { return true; }
1651 static void GenerateStubsAheadOfTime(Isolate* isolate); 1651 static void GenerateStubsAheadOfTime(Isolate* isolate);
1652 static void InstallDescriptors(Isolate* isolate); 1652 static void InstallDescriptors(Isolate* isolate);
1653 1653
1654 // Parameters accessed via CodeStubGraphBuilder::GetParameter() 1654 // Parameters accessed via CodeStubGraphBuilder::GetParameter()
1655 static const int kPropertyCell = 0; 1655 static const int kConstructor = 0;
1656 static const int kPropertyCell = 1;
1656 1657
1657 private: 1658 private:
1658 int NotMissMinorKey() { return bit_field_; } 1659 int NotMissMinorKey() { return bit_field_; }
1659 1660
1660 class ElementsKindBits: public BitField<ElementsKind, 0, 8> {}; 1661 class ElementsKindBits: public BitField<ElementsKind, 0, 8> {};
1661 class AllocationSiteModeBits: public BitField<bool, 8, 1> {}; 1662 class AllocationSiteModeBits: public BitField<bool, 8, 1> {};
1662 uint32_t bit_field_; 1663 uint32_t bit_field_;
1663 1664
1664 DISALLOW_COPY_AND_ASSIGN(ArrayConstructorStubBase); 1665 DISALLOW_COPY_AND_ASSIGN(ArrayConstructorStubBase);
1665 }; 1666 };
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
1950 1951
1951 // The current function entry hook. 1952 // The current function entry hook.
1952 static FunctionEntryHook entry_hook_; 1953 static FunctionEntryHook entry_hook_;
1953 1954
1954 DISALLOW_COPY_AND_ASSIGN(ProfileEntryHookStub); 1955 DISALLOW_COPY_AND_ASSIGN(ProfileEntryHookStub);
1955 }; 1956 };
1956 1957
1957 } } // namespace v8::internal 1958 } } // namespace v8::internal
1958 1959
1959 #endif // V8_CODE_STUBS_H_ 1960 #endif // V8_CODE_STUBS_H_
OLDNEW
« no previous file with comments | « src/builtins.cc ('k') | src/code-stubs-hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698