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

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

Issue 812353002: Use weak cell to embed map in CompareNil IC. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address comments Created 6 years 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/hydrogen.cc ('k') | src/ic/ic-compiler.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_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 <iosfwd> 8 #include <iosfwd>
9 9
10 #include "src/v8.h" 10 #include "src/v8.h"
(...skipping 6233 matching lines...) Expand 10 before | Expand all | Expand 10 after
6244 } 6244 }
6245 6245
6246 static HObjectAccess ForPropertyCellValue() { 6246 static HObjectAccess ForPropertyCellValue() {
6247 return HObjectAccess(kInobject, PropertyCell::kValueOffset); 6247 return HObjectAccess(kInobject, PropertyCell::kValueOffset);
6248 } 6248 }
6249 6249
6250 static HObjectAccess ForCellValue() { 6250 static HObjectAccess ForCellValue() {
6251 return HObjectAccess(kInobject, Cell::kValueOffset); 6251 return HObjectAccess(kInobject, Cell::kValueOffset);
6252 } 6252 }
6253 6253
6254 static HObjectAccess ForWeakCellValue() {
6255 return HObjectAccess(kInobject, WeakCell::kValueOffset);
6256 }
6257
6254 static HObjectAccess ForAllocationMementoSite() { 6258 static HObjectAccess ForAllocationMementoSite() {
6255 return HObjectAccess(kInobject, AllocationMemento::kAllocationSiteOffset); 6259 return HObjectAccess(kInobject, AllocationMemento::kAllocationSiteOffset);
6256 } 6260 }
6257 6261
6258 static HObjectAccess ForCounter() { 6262 static HObjectAccess ForCounter() {
6259 return HObjectAccess(kExternalMemory, 0, Representation::Integer32(), 6263 return HObjectAccess(kExternalMemory, 0, Representation::Integer32(),
6260 Handle<String>::null(), false, false); 6264 Handle<String>::null(), false, false);
6261 } 6265 }
6262 6266
6263 static HObjectAccess ForExternalUInteger8() { 6267 static HObjectAccess ForExternalUInteger8() {
(...skipping 1756 matching lines...) Expand 10 before | Expand all | Expand 10 after
8020 }; 8024 };
8021 8025
8022 8026
8023 8027
8024 #undef DECLARE_INSTRUCTION 8028 #undef DECLARE_INSTRUCTION
8025 #undef DECLARE_CONCRETE_INSTRUCTION 8029 #undef DECLARE_CONCRETE_INSTRUCTION
8026 8030
8027 } } // namespace v8::internal 8031 } } // namespace v8::internal
8028 8032
8029 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 8033 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/ic/ic-compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698