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

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

Issue 24360019: Speed up ArrayBuffer/typed array/DataView properties. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: After self-review Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « src/hydrogen.cc ('k') | src/ic.cc » ('j') | src/ic.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 5670 matching lines...) Expand 10 before | Expand all | Expand 10 after
5681 5681
5682 static HObjectAccess ForArrayLength(ElementsKind elements_kind) { 5682 static HObjectAccess ForArrayLength(ElementsKind elements_kind) {
5683 return HObjectAccess( 5683 return HObjectAccess(
5684 kArrayLengths, 5684 kArrayLengths,
5685 JSArray::kLengthOffset, 5685 JSArray::kLengthOffset,
5686 IsFastElementsKind(elements_kind) && 5686 IsFastElementsKind(elements_kind) &&
5687 FLAG_track_fields 5687 FLAG_track_fields
5688 ? Representation::Smi() : Representation::Tagged()); 5688 ? Representation::Smi() : Representation::Tagged());
5689 } 5689 }
5690 5690
5691 static HObjectAccess ForTypedArrayLength() {
5692 return HObjectAccess(
5693 kInobject,
5694 JSTypedArray::kLengthOffset,
5695 Representation::Tagged());
5696 }
5697
5698 static HObjectAccess ForAllocationSiteTransitionInfo() { 5691 static HObjectAccess ForAllocationSiteTransitionInfo() {
5699 return HObjectAccess(kInobject, AllocationSite::kTransitionInfoOffset); 5692 return HObjectAccess(kInobject, AllocationSite::kTransitionInfoOffset);
5700 } 5693 }
5701 5694
5702 static HObjectAccess ForAllocationSiteDependentCode() { 5695 static HObjectAccess ForAllocationSiteDependentCode() {
5703 return HObjectAccess(kInobject, AllocationSite::kDependentCodeOffset); 5696 return HObjectAccess(kInobject, AllocationSite::kDependentCodeOffset);
5704 } 5697 }
5705 5698
5706 static HObjectAccess ForAllocationSiteWeakNext() { 5699 static HObjectAccess ForAllocationSiteWeakNext() {
5707 return HObjectAccess(kInobject, AllocationSite::kWeakNextOffset); 5700 return HObjectAccess(kInobject, AllocationSite::kWeakNextOffset);
(...skipping 1356 matching lines...) Expand 10 before | Expand all | Expand 10 after
7064 virtual bool IsDeletable() const V8_OVERRIDE { return true; } 7057 virtual bool IsDeletable() const V8_OVERRIDE { return true; }
7065 }; 7058 };
7066 7059
7067 7060
7068 #undef DECLARE_INSTRUCTION 7061 #undef DECLARE_INSTRUCTION
7069 #undef DECLARE_CONCRETE_INSTRUCTION 7062 #undef DECLARE_CONCRETE_INSTRUCTION
7070 7063
7071 } } // namespace v8::internal 7064 } } // namespace v8::internal
7072 7065
7073 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 7066 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/ic.cc » ('j') | src/ic.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698