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

Side by Side Diff: src/objects.cc

Issue 7685051: Changed SetPropertyPostInterceptor to climb the prototype chain to Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 4 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 | test/cctest/test-api.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 1620 matching lines...) Expand 10 before | Expand all | Expand 10 after
1631 } 1631 }
1632 return AddSlowProperty(name, value, attributes); 1632 return AddSlowProperty(name, value, attributes);
1633 } 1633 }
1634 1634
1635 1635
1636 MaybeObject* JSObject::SetPropertyPostInterceptor( 1636 MaybeObject* JSObject::SetPropertyPostInterceptor(
1637 String* name, 1637 String* name,
1638 Object* value, 1638 Object* value,
1639 PropertyAttributes attributes, 1639 PropertyAttributes attributes,
1640 StrictModeFlag strict_mode) { 1640 StrictModeFlag strict_mode) {
1641 // Check local property, ignore interceptor. 1641 // Check local and prototype properties, ignore interceptor.
1642 LookupResult result; 1642 LookupResult result;
1643 LocalLookupRealNamedProperty(name, &result); 1643 LookupRealNamedProperty(name, &result);
1644 if (result.IsFound()) { 1644 if (result.IsFound()) {
1645 // An existing property, a map transition or a null descriptor was 1645 // An existing property, a map transition or a null descriptor was
1646 // found. Use set property to handle all these cases. 1646 // found. Use set property to handle all these cases.
1647 return SetProperty(&result, name, value, attributes, strict_mode); 1647 return SetProperty(&result, name, value, attributes, strict_mode);
1648 } 1648 }
1649 // Add a new real property. 1649 // Add a new real property.
1650 return AddProperty(name, value, attributes, strict_mode); 1650 return AddProperty(name, value, attributes, strict_mode);
1651 } 1651 }
1652 1652
1653 1653
(...skipping 9899 matching lines...) Expand 10 before | Expand all | Expand 10 after
11553 if (break_point_objects()->IsUndefined()) return 0; 11553 if (break_point_objects()->IsUndefined()) return 0;
11554 // Single break point. 11554 // Single break point.
11555 if (!break_point_objects()->IsFixedArray()) return 1; 11555 if (!break_point_objects()->IsFixedArray()) return 1;
11556 // Multiple break points. 11556 // Multiple break points.
11557 return FixedArray::cast(break_point_objects())->length(); 11557 return FixedArray::cast(break_point_objects())->length();
11558 } 11558 }
11559 #endif 11559 #endif
11560 11560
11561 11561
11562 } } // namespace v8::internal 11562 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698