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

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

Issue 212603014: Inline internal getters for typed arrays & friends. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix ApiObjectGroupsCycleForScavenger test Created 6 years, 8 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/runtime.h » ('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 // 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 6007 matching lines...) Expand 10 before | Expand all | Expand 10 after
6018 static HObjectAccess ForJSTypedArrayLength() { 6018 static HObjectAccess ForJSTypedArrayLength() {
6019 return HObjectAccess::ForObservableJSObjectOffset( 6019 return HObjectAccess::ForObservableJSObjectOffset(
6020 JSTypedArray::kLengthOffset); 6020 JSTypedArray::kLengthOffset);
6021 } 6021 }
6022 6022
6023 static HObjectAccess ForJSArrayBufferBackingStore() { 6023 static HObjectAccess ForJSArrayBufferBackingStore() {
6024 return HObjectAccess::ForObservableJSObjectOffset( 6024 return HObjectAccess::ForObservableJSObjectOffset(
6025 JSArrayBuffer::kBackingStoreOffset, Representation::External()); 6025 JSArrayBuffer::kBackingStoreOffset, Representation::External());
6026 } 6026 }
6027 6027
6028 static HObjectAccess ForJSArrayBufferByteLength() {
6029 return HObjectAccess::ForObservableJSObjectOffset(
6030 JSArrayBuffer::kByteLengthOffset, Representation::Tagged());
6031 }
6032
6028 static HObjectAccess ForExternalArrayExternalPointer() { 6033 static HObjectAccess ForExternalArrayExternalPointer() {
6029 return HObjectAccess::ForObservableJSObjectOffset( 6034 return HObjectAccess::ForObservableJSObjectOffset(
6030 ExternalArray::kExternalPointerOffset, Representation::External()); 6035 ExternalArray::kExternalPointerOffset, Representation::External());
6031 } 6036 }
6032 6037
6033 static HObjectAccess ForJSArrayBufferViewWeakNext() { 6038 static HObjectAccess ForJSArrayBufferViewWeakNext() {
6034 return HObjectAccess::ForObservableJSObjectOffset( 6039 return HObjectAccess::ForObservableJSObjectOffset(
6035 JSArrayBufferView::kWeakNextOffset); 6040 JSArrayBufferView::kWeakNextOffset);
6036 } 6041 }
6037 6042
(...skipping 1483 matching lines...) Expand 10 before | Expand all | Expand 10 after
7521 virtual bool IsDeletable() const V8_OVERRIDE { return true; } 7526 virtual bool IsDeletable() const V8_OVERRIDE { return true; }
7522 }; 7527 };
7523 7528
7524 7529
7525 #undef DECLARE_INSTRUCTION 7530 #undef DECLARE_INSTRUCTION
7526 #undef DECLARE_CONCRETE_INSTRUCTION 7531 #undef DECLARE_CONCRETE_INSTRUCTION
7527 7532
7528 } } // namespace v8::internal 7533 } } // namespace v8::internal
7529 7534
7530 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 7535 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698