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

Side by Side Diff: src/objects.h

Issue 118499: Make JSObjects with both indexed interceptors and indexed accessors work safe... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 6 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 | « no previous file | src/objects.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 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 1513 matching lines...) Expand 10 before | Expand all | Expand 10 after
1524 1524
1525 // Layout description. 1525 // Layout description.
1526 static const int kPropertiesOffset = HeapObject::kHeaderSize; 1526 static const int kPropertiesOffset = HeapObject::kHeaderSize;
1527 static const int kElementsOffset = kPropertiesOffset + kPointerSize; 1527 static const int kElementsOffset = kPropertiesOffset + kPointerSize;
1528 static const int kHeaderSize = kElementsOffset + kPointerSize; 1528 static const int kHeaderSize = kElementsOffset + kPointerSize;
1529 1529
1530 Object* GetElementWithInterceptor(JSObject* receiver, uint32_t index); 1530 Object* GetElementWithInterceptor(JSObject* receiver, uint32_t index);
1531 1531
1532 private: 1532 private:
1533 Object* SetElementWithInterceptor(uint32_t index, Object* value); 1533 Object* SetElementWithInterceptor(uint32_t index, Object* value);
1534 Object* SetElementPostInterceptor(uint32_t index, Object* value); 1534 Object* SetElementWithoutInterceptor(uint32_t index, Object* value);
1535 1535
1536 Object* GetElementPostInterceptor(JSObject* receiver, uint32_t index); 1536 Object* GetElementPostInterceptor(JSObject* receiver, uint32_t index);
1537 1537
1538 Object* DeletePropertyPostInterceptor(String* name, DeleteMode mode); 1538 Object* DeletePropertyPostInterceptor(String* name, DeleteMode mode);
1539 Object* DeletePropertyWithInterceptor(String* name); 1539 Object* DeletePropertyWithInterceptor(String* name);
1540 1540
1541 Object* DeleteElementPostInterceptor(uint32_t index, DeleteMode mode); 1541 Object* DeleteElementPostInterceptor(uint32_t index, DeleteMode mode);
1542 Object* DeleteElementWithInterceptor(uint32_t index); 1542 Object* DeleteElementWithInterceptor(uint32_t index);
1543 1543
1544 PropertyAttributes GetPropertyAttributePostInterceptor(JSObject* receiver, 1544 PropertyAttributes GetPropertyAttributePostInterceptor(JSObject* receiver,
(...skipping 2915 matching lines...) Expand 10 before | Expand all | Expand 10 after
4460 } else { 4460 } else {
4461 value &= ~(1 << bit_position); 4461 value &= ~(1 << bit_position);
4462 } 4462 }
4463 return value; 4463 return value;
4464 } 4464 }
4465 }; 4465 };
4466 4466
4467 } } // namespace v8::internal 4467 } } // namespace v8::internal
4468 4468
4469 #endif // V8_OBJECTS_H_ 4469 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « no previous file | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698