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

Side by Side Diff: src/hydrogen-instructions.h

Issue 1208013002: [turbofan] Implement sharing of context-independent code. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_opt-code-map-3
Patch Set: Disable test for GC stress. Created 5 years, 6 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
« no previous file with comments | « src/flag-definitions.h ('k') | src/objects.h » ('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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_HYDROGEN_INSTRUCTIONS_H_ 5 #ifndef V8_HYDROGEN_INSTRUCTIONS_H_
6 #define V8_HYDROGEN_INSTRUCTIONS_H_ 6 #define V8_HYDROGEN_INSTRUCTIONS_H_
7 7
8 #include <cstring> 8 #include <cstring>
9 #include <iosfwd> 9 #include <iosfwd>
10 10
(...skipping 5962 matching lines...) Expand 10 before | Expand all | Expand 10 after
5973 5973
5974 static HObjectAccess ForCodeOffset() { 5974 static HObjectAccess ForCodeOffset() {
5975 return HObjectAccess(kInobject, SharedFunctionInfo::kCodeOffset); 5975 return HObjectAccess(kInobject, SharedFunctionInfo::kCodeOffset);
5976 } 5976 }
5977 5977
5978 static HObjectAccess ForOptimizedCodeMap() { 5978 static HObjectAccess ForOptimizedCodeMap() {
5979 return HObjectAccess(kInobject, 5979 return HObjectAccess(kInobject,
5980 SharedFunctionInfo::kOptimizedCodeMapOffset); 5980 SharedFunctionInfo::kOptimizedCodeMapOffset);
5981 } 5981 }
5982 5982
5983 static HObjectAccess ForOptimizedCodeMapSharedCode() {
5984 return HObjectAccess(kInobject, FixedArray::OffsetOfElementAt(
5985 SharedFunctionInfo::kSharedCodeIndex));
5986 }
5987
5983 static HObjectAccess ForFunctionContextPointer() { 5988 static HObjectAccess ForFunctionContextPointer() {
5984 return HObjectAccess(kInobject, JSFunction::kContextOffset); 5989 return HObjectAccess(kInobject, JSFunction::kContextOffset);
5985 } 5990 }
5986 5991
5987 static HObjectAccess ForMap() { 5992 static HObjectAccess ForMap() {
5988 return HObjectAccess(kMaps, JSObject::kMapOffset); 5993 return HObjectAccess(kMaps, JSObject::kMapOffset);
5989 } 5994 }
5990 5995
5991 static HObjectAccess ForPrototype() { 5996 static HObjectAccess ForPrototype() {
5992 return HObjectAccess(kMaps, Map::kPrototypeOffset); 5997 return HObjectAccess(kMaps, Map::kPrototypeOffset);
(...skipping 1904 matching lines...) Expand 10 before | Expand all | Expand 10 after
7897 }; 7902 };
7898 7903
7899 7904
7900 7905
7901 #undef DECLARE_INSTRUCTION 7906 #undef DECLARE_INSTRUCTION
7902 #undef DECLARE_CONCRETE_INSTRUCTION 7907 #undef DECLARE_CONCRETE_INSTRUCTION
7903 7908
7904 } } // namespace v8::internal 7909 } } // namespace v8::internal
7905 7910
7906 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 7911 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698