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

Side by Side Diff: src/factory.cc

Issue 8914: Add support for API accessors that prohibit overwriting by accessors... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years, 1 month 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
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 707 matching lines...) Expand 10 before | Expand all | Expand 10 after
718 map->set_is_undetectable(); 718 map->set_is_undetectable();
719 } 719 }
720 720
721 // Mark as hidden for the __proto__ accessor if needed. 721 // Mark as hidden for the __proto__ accessor if needed.
722 if (obj->hidden_prototype()) { 722 if (obj->hidden_prototype()) {
723 map->set_is_hidden_prototype(); 723 map->set_is_hidden_prototype();
724 } 724 }
725 725
726 // Mark as needs_access_check if needed. 726 // Mark as needs_access_check if needed.
727 if (obj->needs_access_check()) { 727 if (obj->needs_access_check()) {
728 map->set_is_access_check_needed(); 728 map->set_is_access_check_needed(true);
729 } 729 }
730 730
731 // Set interceptor information in the map. 731 // Set interceptor information in the map.
732 if (!obj->named_property_handler()->IsUndefined()) { 732 if (!obj->named_property_handler()->IsUndefined()) {
733 map->set_has_named_interceptor(); 733 map->set_has_named_interceptor();
734 } 734 }
735 if (!obj->indexed_property_handler()->IsUndefined()) { 735 if (!obj->indexed_property_handler()->IsUndefined()) {
736 map->set_has_indexed_interceptor(); 736 map->set_has_indexed_interceptor();
737 } 737 }
738 738
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
829 Execution::ConfigureInstance(instance, 829 Execution::ConfigureInstance(instance,
830 instance_template, 830 instance_template,
831 pending_exception); 831 pending_exception);
832 } else { 832 } else {
833 *pending_exception = false; 833 *pending_exception = false;
834 } 834 }
835 } 835 }
836 836
837 837
838 } } // namespace v8::internal 838 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698