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

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

Issue 140963004: Array constructor shouldn't require a Cell, just an AllocationSite. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Code comments. Created 6 years, 11 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/arm/code-stubs-arm.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 2019 matching lines...) Expand 10 before | Expand all | Expand 10 after
2030 2030
2031 AllocationSiteOverrideMode override_mode() const { 2031 AllocationSiteOverrideMode override_mode() const {
2032 return AllocationSiteOverrideModeBits::decode(bit_field_); 2032 return AllocationSiteOverrideModeBits::decode(bit_field_);
2033 } 2033 }
2034 2034
2035 static void GenerateStubsAheadOfTime(Isolate* isolate); 2035 static void GenerateStubsAheadOfTime(Isolate* isolate);
2036 static void InstallDescriptors(Isolate* isolate); 2036 static void InstallDescriptors(Isolate* isolate);
2037 2037
2038 // Parameters accessed via CodeStubGraphBuilder::GetParameter() 2038 // Parameters accessed via CodeStubGraphBuilder::GetParameter()
2039 static const int kConstructor = 0; 2039 static const int kConstructor = 0;
2040 static const int kPropertyCell = 1; 2040 static const int kAllocationSite = 1;
2041 2041
2042 protected: 2042 protected:
2043 void BasePrintName(const char* name, StringStream* stream); 2043 void BasePrintName(const char* name, StringStream* stream);
2044 2044
2045 private: 2045 private:
2046 int NotMissMinorKey() { return bit_field_; } 2046 int NotMissMinorKey() { return bit_field_; }
2047 2047
2048 // Ensure data fits within available bits. 2048 // Ensure data fits within available bits.
2049 STATIC_ASSERT(LAST_ALLOCATION_SITE_OVERRIDE_MODE == 1); 2049 STATIC_ASSERT(LAST_ALLOCATION_SITE_OVERRIDE_MODE == 1);
2050 2050
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
2466 2466
2467 2467
2468 class CallDescriptors { 2468 class CallDescriptors {
2469 public: 2469 public:
2470 static void InitializeForIsolate(Isolate* isolate); 2470 static void InitializeForIsolate(Isolate* isolate);
2471 }; 2471 };
2472 2472
2473 } } // namespace v8::internal 2473 } } // namespace v8::internal
2474 2474
2475 #endif // V8_CODE_STUBS_H_ 2475 #endif // V8_CODE_STUBS_H_
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/code-stubs-hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698