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

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

Issue 101783005: AllocationSite::memento_found_count() and friends need Smi access. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/hydrogen-instructions.cc » ('j') | src/hydrogen-instructions.cc » ('J')
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 5934 matching lines...) Expand 10 before | Expand all | Expand 10 after
5945 5945
5946 static HObjectAccess ForArrayLength(ElementsKind elements_kind) { 5946 static HObjectAccess ForArrayLength(ElementsKind elements_kind) {
5947 return HObjectAccess( 5947 return HObjectAccess(
5948 kArrayLengths, 5948 kArrayLengths,
5949 JSArray::kLengthOffset, 5949 JSArray::kLengthOffset,
5950 IsFastElementsKind(elements_kind) && 5950 IsFastElementsKind(elements_kind) &&
5951 FLAG_track_fields 5951 FLAG_track_fields
5952 ? Representation::Smi() : Representation::Tagged()); 5952 ? Representation::Smi() : Representation::Tagged());
5953 } 5953 }
5954 5954
5955 static HObjectAccess ForAllocationSiteOffset(int offset) { 5955 static HObjectAccess ForAllocationSiteOffset(int offset);
5956 ASSERT(offset >= HeapObject::kHeaderSize && offset < AllocationSite::kSize);
5957 return HObjectAccess(kInobject, offset);
5958 }
5959 5956
5960 static HObjectAccess ForAllocationSiteList() { 5957 static HObjectAccess ForAllocationSiteList() {
5961 return HObjectAccess(kExternalMemory, 0, Representation::Tagged()); 5958 return HObjectAccess(kExternalMemory, 0, Representation::Tagged());
5962 } 5959 }
5963 5960
5964 static HObjectAccess ForFixedArrayLength() { 5961 static HObjectAccess ForFixedArrayLength() {
5965 return HObjectAccess( 5962 return HObjectAccess(
5966 kArrayLengths, 5963 kArrayLengths,
5967 FixedArray::kLengthOffset, 5964 FixedArray::kLengthOffset,
5968 FLAG_track_fields ? Representation::Smi() : Representation::Tagged()); 5965 FLAG_track_fields ? Representation::Smi() : Representation::Tagged());
(...skipping 1517 matching lines...) Expand 10 before | Expand all | Expand 10 after
7486 virtual bool IsDeletable() const V8_OVERRIDE { return true; } 7483 virtual bool IsDeletable() const V8_OVERRIDE { return true; }
7487 }; 7484 };
7488 7485
7489 7486
7490 #undef DECLARE_INSTRUCTION 7487 #undef DECLARE_INSTRUCTION
7491 #undef DECLARE_CONCRETE_INSTRUCTION 7488 #undef DECLARE_CONCRETE_INSTRUCTION
7492 7489
7493 } } // namespace v8::internal 7490 } } // namespace v8::internal
7494 7491
7495 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 7492 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen-instructions.cc » ('j') | src/hydrogen-instructions.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698