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

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

Issue 11362115: Object.observe: include oldValue in change records, (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments. Created 8 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
« no previous file with comments | « src/objects.cc ('k') | src/property.h » ('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 5065 matching lines...) Expand 10 before | Expand all | Expand 10 after
5076 return JSProxy::cast(this)->HasPropertyWithHandler(name); 5076 return JSProxy::cast(this)->HasPropertyWithHandler(name);
5077 } 5077 }
5078 return GetLocalPropertyAttribute(name) != ABSENT; 5078 return GetLocalPropertyAttribute(name) != ABSENT;
5079 } 5079 }
5080 5080
5081 5081
5082 PropertyAttributes JSReceiver::GetPropertyAttribute(String* key) { 5082 PropertyAttributes JSReceiver::GetPropertyAttribute(String* key) {
5083 return GetPropertyAttributeWithReceiver(this, key); 5083 return GetPropertyAttributeWithReceiver(this, key);
5084 } 5084 }
5085 5085
5086
5086 // TODO(504): this may be useful in other places too where JSGlobalProxy 5087 // TODO(504): this may be useful in other places too where JSGlobalProxy
5087 // is used. 5088 // is used.
5088 Object* JSObject::BypassGlobalProxy() { 5089 Object* JSObject::BypassGlobalProxy() {
5089 if (IsJSGlobalProxy()) { 5090 if (IsJSGlobalProxy()) {
5090 Object* proto = GetPrototype(); 5091 Object* proto = GetPrototype();
5091 if (proto->IsNull()) return GetHeap()->undefined_value(); 5092 if (proto->IsNull()) return GetHeap()->undefined_value();
5092 ASSERT(proto->IsJSGlobalObject()); 5093 ASSERT(proto->IsJSGlobalObject());
5093 return proto; 5094 return proto;
5094 } 5095 }
5095 return this; 5096 return this;
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
5559 #undef WRITE_UINT32_FIELD 5560 #undef WRITE_UINT32_FIELD
5560 #undef READ_SHORT_FIELD 5561 #undef READ_SHORT_FIELD
5561 #undef WRITE_SHORT_FIELD 5562 #undef WRITE_SHORT_FIELD
5562 #undef READ_BYTE_FIELD 5563 #undef READ_BYTE_FIELD
5563 #undef WRITE_BYTE_FIELD 5564 #undef WRITE_BYTE_FIELD
5564 5565
5565 5566
5566 } } // namespace v8::internal 5567 } } // namespace v8::internal
5567 5568
5568 #endif // V8_OBJECTS_INL_H_ 5569 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/property.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698