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

Side by Side Diff: src/objects-inl.h

Issue 10558005: Further extend TypedArray support in d8: (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed Michael's comments. Created 8 years, 5 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/objects.h ('k') | test/mjsunit/elements-kind.js » ('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 4754 matching lines...) Expand 10 before | Expand all | Expand 10 after
4765 } 4765 }
4766 return SlowAsArrayIndex(index); 4766 return SlowAsArrayIndex(index);
4767 } 4767 }
4768 4768
4769 4769
4770 Object* JSReceiver::GetPrototype() { 4770 Object* JSReceiver::GetPrototype() {
4771 return HeapObject::cast(this)->map()->prototype(); 4771 return HeapObject::cast(this)->map()->prototype();
4772 } 4772 }
4773 4773
4774 4774
4775 Object* JSReceiver::GetConstructor() {
4776 return map()->constructor();
4777 }
4778
4779
4775 bool JSReceiver::HasProperty(String* name) { 4780 bool JSReceiver::HasProperty(String* name) {
4776 if (IsJSProxy()) { 4781 if (IsJSProxy()) {
4777 return JSProxy::cast(this)->HasPropertyWithHandler(name); 4782 return JSProxy::cast(this)->HasPropertyWithHandler(name);
4778 } 4783 }
4779 return GetPropertyAttribute(name) != ABSENT; 4784 return GetPropertyAttribute(name) != ABSENT;
4780 } 4785 }
4781 4786
4782 4787
4783 bool JSReceiver::HasLocalProperty(String* name) { 4788 bool JSReceiver::HasLocalProperty(String* name) {
4784 if (IsJSProxy()) { 4789 if (IsJSProxy()) {
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
5192 #undef WRITE_UINT32_FIELD 5197 #undef WRITE_UINT32_FIELD
5193 #undef READ_SHORT_FIELD 5198 #undef READ_SHORT_FIELD
5194 #undef WRITE_SHORT_FIELD 5199 #undef WRITE_SHORT_FIELD
5195 #undef READ_BYTE_FIELD 5200 #undef READ_BYTE_FIELD
5196 #undef WRITE_BYTE_FIELD 5201 #undef WRITE_BYTE_FIELD
5197 5202
5198 5203
5199 } } // namespace v8::internal 5204 } } // namespace v8::internal
5200 5205
5201 #endif // V8_OBJECTS_INL_H_ 5206 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | test/mjsunit/elements-kind.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698