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

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

Issue 2402663002: Reland "[turbofan] Discard the shared code entry in the optimized code map." (Closed)
Patch Set: Patch failure(?) Created 4 years, 2 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/compiler.cc ('k') | src/factory.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 // 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_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ 5 #ifndef V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_
6 #define V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ 6 #define V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_
7 7
8 #include <cstring> 8 #include <cstring>
9 #include <iosfwd> 9 #include <iosfwd>
10 10
(...skipping 5345 matching lines...) Expand 10 before | Expand all | Expand 10 after
5356 5356
5357 static HObjectAccess ForCodeOffset() { 5357 static HObjectAccess ForCodeOffset() {
5358 return HObjectAccess(kInobject, SharedFunctionInfo::kCodeOffset); 5358 return HObjectAccess(kInobject, SharedFunctionInfo::kCodeOffset);
5359 } 5359 }
5360 5360
5361 static HObjectAccess ForOptimizedCodeMap() { 5361 static HObjectAccess ForOptimizedCodeMap() {
5362 return HObjectAccess(kInobject, 5362 return HObjectAccess(kInobject,
5363 SharedFunctionInfo::kOptimizedCodeMapOffset); 5363 SharedFunctionInfo::kOptimizedCodeMapOffset);
5364 } 5364 }
5365 5365
5366 static HObjectAccess ForOptimizedCodeMapSharedCode() {
5367 return HObjectAccess(kInobject, FixedArray::OffsetOfElementAt(
5368 SharedFunctionInfo::kSharedCodeIndex));
5369 }
5370
5371 static HObjectAccess ForFunctionContextPointer() { 5366 static HObjectAccess ForFunctionContextPointer() {
5372 return HObjectAccess(kInobject, JSFunction::kContextOffset); 5367 return HObjectAccess(kInobject, JSFunction::kContextOffset);
5373 } 5368 }
5374 5369
5375 static HObjectAccess ForMap() { 5370 static HObjectAccess ForMap() {
5376 return HObjectAccess(kMaps, JSObject::kMapOffset); 5371 return HObjectAccess(kMaps, JSObject::kMapOffset);
5377 } 5372 }
5378 5373
5379 static HObjectAccess ForPrototype() { 5374 static HObjectAccess ForPrototype() {
5380 return HObjectAccess(kMaps, Map::kPrototypeOffset); 5375 return HObjectAccess(kMaps, Map::kPrototypeOffset);
(...skipping 1572 matching lines...) Expand 10 before | Expand all | Expand 10 after
6953 bool IsDeletable() const override { return true; } 6948 bool IsDeletable() const override { return true; }
6954 }; 6949 };
6955 6950
6956 #undef DECLARE_INSTRUCTION 6951 #undef DECLARE_INSTRUCTION
6957 #undef DECLARE_CONCRETE_INSTRUCTION 6952 #undef DECLARE_CONCRETE_INSTRUCTION
6958 6953
6959 } // namespace internal 6954 } // namespace internal
6960 } // namespace v8 6955 } // namespace v8
6961 6956
6962 #endif // V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ 6957 #endif // V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698