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

Side by Side Diff: src/objects.h

Issue 606062: Fix construction of simple objects with setters on prototype... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 10 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/heap.cc ('k') | 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 1522 matching lines...) Expand 10 before | Expand all | Expand 10 after
1533 1533
1534 // Layout description. 1534 // Layout description.
1535 static const int kPropertiesOffset = HeapObject::kHeaderSize; 1535 static const int kPropertiesOffset = HeapObject::kHeaderSize;
1536 static const int kElementsOffset = kPropertiesOffset + kPointerSize; 1536 static const int kElementsOffset = kPropertiesOffset + kPointerSize;
1537 static const int kHeaderSize = kElementsOffset + kPointerSize; 1537 static const int kHeaderSize = kElementsOffset + kPointerSize;
1538 1538
1539 STATIC_CHECK(kHeaderSize == Internals::kJSObjectHeaderSize); 1539 STATIC_CHECK(kHeaderSize == Internals::kJSObjectHeaderSize);
1540 1540
1541 Object* GetElementWithInterceptor(JSObject* receiver, uint32_t index); 1541 Object* GetElementWithInterceptor(JSObject* receiver, uint32_t index);
1542 1542
1543 bool HasSetter();
1544
1543 private: 1545 private:
1544 Object* SetElementWithInterceptor(uint32_t index, Object* value); 1546 Object* SetElementWithInterceptor(uint32_t index, Object* value);
1545 Object* SetElementWithoutInterceptor(uint32_t index, Object* value); 1547 Object* SetElementWithoutInterceptor(uint32_t index, Object* value);
1546 1548
1547 Object* GetElementPostInterceptor(JSObject* receiver, uint32_t index); 1549 Object* GetElementPostInterceptor(JSObject* receiver, uint32_t index);
1548 1550
1549 Object* DeletePropertyPostInterceptor(String* name, DeleteMode mode); 1551 Object* DeletePropertyPostInterceptor(String* name, DeleteMode mode);
1550 Object* DeletePropertyWithInterceptor(String* name); 1552 Object* DeletePropertyWithInterceptor(String* name);
1551 1553
1552 Object* DeleteElementPostInterceptor(uint32_t index, DeleteMode mode); 1554 Object* DeleteElementPostInterceptor(uint32_t index, DeleteMode mode);
(...skipping 3422 matching lines...) Expand 10 before | Expand all | Expand 10 after
4975 } else { 4977 } else {
4976 value &= ~(1 << bit_position); 4978 value &= ~(1 << bit_position);
4977 } 4979 }
4978 return value; 4980 return value;
4979 } 4981 }
4980 }; 4982 };
4981 4983
4982 } } // namespace v8::internal 4984 } } // namespace v8::internal
4983 4985
4984 #endif // V8_OBJECTS_H_ 4986 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698