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

Side by Side Diff: src/objects.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 | « 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 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 1480 matching lines...) Expand 10 before | Expand all | Expand 10 after
1491 1491
1492 // Lookup a property. If found, the result is valid and has 1492 // Lookup a property. If found, the result is valid and has
1493 // detailed information. 1493 // detailed information.
1494 void LocalLookup(String* name, LookupResult* result); 1494 void LocalLookup(String* name, LookupResult* result);
1495 void Lookup(String* name, LookupResult* result); 1495 void Lookup(String* name, LookupResult* result);
1496 1496
1497 protected: 1497 protected:
1498 Smi* GenerateIdentityHash(); 1498 Smi* GenerateIdentityHash();
1499 1499
1500 private: 1500 private:
1501 PropertyAttributes GetPropertyAttribute(JSReceiver* receiver, 1501 PropertyAttributes GetPropertyAttributeForResult(JSReceiver* receiver,
1502 LookupResult* result, 1502 LookupResult* result,
1503 String* name, 1503 String* name,
1504 bool continue_search); 1504 bool continue_search);
1505 1505
1506 DISALLOW_IMPLICIT_CONSTRUCTORS(JSReceiver); 1506 DISALLOW_IMPLICIT_CONSTRUCTORS(JSReceiver);
1507 }; 1507 };
1508 1508
1509 // The JSObject describes real heap allocated JavaScript objects with 1509 // The JSObject describes real heap allocated JavaScript objects with
1510 // properties. 1510 // properties.
1511 // Note that the map of JSObject changes during execution to enable inline 1511 // Note that the map of JSObject changes during execution to enable inline
1512 // caching. 1512 // caching.
1513 class JSObject: public JSReceiver { 1513 class JSObject: public JSReceiver {
1514 public: 1514 public:
(...skipping 7460 matching lines...) Expand 10 before | Expand all | Expand 10 after
8975 } else { 8975 } else {
8976 value &= ~(1 << bit_position); 8976 value &= ~(1 << bit_position);
8977 } 8977 }
8978 return value; 8978 return value;
8979 } 8979 }
8980 }; 8980 };
8981 8981
8982 } } // namespace v8::internal 8982 } } // namespace v8::internal
8983 8983
8984 #endif // V8_OBJECTS_H_ 8984 #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