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

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

Issue 2655853010: [TypeFeedbackVector] Combine the literals array and the feedback vector. (Closed)
Patch Set: more comments. Created 3 years, 10 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/crankshaft/hydrogen.cc ('k') | src/debug/liveedit.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 5106 matching lines...) Expand 10 before | Expand all | Expand 10 after
5117 5117
5118 static HObjectAccess ForOddballTypeOf() { 5118 static HObjectAccess ForOddballTypeOf() {
5119 return HObjectAccess(kInobject, Oddball::kTypeOfOffset, 5119 return HObjectAccess(kInobject, Oddball::kTypeOfOffset,
5120 Representation::HeapObject()); 5120 Representation::HeapObject());
5121 } 5121 }
5122 5122
5123 static HObjectAccess ForElementsPointer() { 5123 static HObjectAccess ForElementsPointer() {
5124 return HObjectAccess(kElementsPointer, JSObject::kElementsOffset); 5124 return HObjectAccess(kElementsPointer, JSObject::kElementsOffset);
5125 } 5125 }
5126 5126
5127 static HObjectAccess ForLiteralsPointer() {
5128 return HObjectAccess(kInobject, JSFunction::kLiteralsOffset);
5129 }
5130
5131 static HObjectAccess ForNextFunctionLinkPointer() { 5127 static HObjectAccess ForNextFunctionLinkPointer() {
5132 return HObjectAccess(kInobject, JSFunction::kNextFunctionLinkOffset); 5128 return HObjectAccess(kInobject, JSFunction::kNextFunctionLinkOffset);
5133 } 5129 }
5134 5130
5135 static HObjectAccess ForArrayLength(ElementsKind elements_kind) { 5131 static HObjectAccess ForArrayLength(ElementsKind elements_kind) {
5136 return HObjectAccess( 5132 return HObjectAccess(
5137 kArrayLengths, 5133 kArrayLengths,
5138 JSArray::kLengthOffset, 5134 JSArray::kLengthOffset,
5139 IsFastElementsKind(elements_kind) 5135 IsFastElementsKind(elements_kind)
5140 ? Representation::Smi() : Representation::Tagged()); 5136 ? Representation::Smi() : Representation::Tagged());
(...skipping 1615 matching lines...) Expand 10 before | Expand all | Expand 10 after
6756 bool IsDeletable() const override { return true; } 6752 bool IsDeletable() const override { return true; }
6757 }; 6753 };
6758 6754
6759 #undef DECLARE_INSTRUCTION 6755 #undef DECLARE_INSTRUCTION
6760 #undef DECLARE_CONCRETE_INSTRUCTION 6756 #undef DECLARE_CONCRETE_INSTRUCTION
6761 6757
6762 } // namespace internal 6758 } // namespace internal
6763 } // namespace v8 6759 } // namespace v8
6764 6760
6765 #endif // V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ 6761 #endif // V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/crankshaft/hydrogen.cc ('k') | src/debug/liveedit.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698