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

Side by Side Diff: src/objects.h

Issue 210953005: Clean up some "GetProperty" methods/functions. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed comments Created 6 years, 9 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/json-stringifier.h ('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 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 1539 matching lines...) Expand 10 before | Expand all | Expand 10 after
1550 // TODO(yangguo): this should eventually replace the non-handlified version. 1550 // TODO(yangguo): this should eventually replace the non-handlified version.
1551 static Handle<Object> GetPropertyWithReceiver(Handle<Object> object, 1551 static Handle<Object> GetPropertyWithReceiver(Handle<Object> object,
1552 Handle<Object> receiver, 1552 Handle<Object> receiver,
1553 Handle<Name> name, 1553 Handle<Name> name,
1554 PropertyAttributes* attributes); 1554 PropertyAttributes* attributes);
1555 MUST_USE_RESULT MaybeObject* GetPropertyWithReceiver( 1555 MUST_USE_RESULT MaybeObject* GetPropertyWithReceiver(
1556 Object* receiver, 1556 Object* receiver,
1557 Name* key, 1557 Name* key,
1558 PropertyAttributes* attributes); 1558 PropertyAttributes* attributes);
1559 1559
1560 static Handle<Object> GetPropertyOrElement(Handle<Object> object,
1561 Handle<Name> key);
1562
1560 static Handle<Object> GetProperty(Handle<Object> object, 1563 static Handle<Object> GetProperty(Handle<Object> object,
1561 Handle<Name> key); 1564 Handle<Name> key);
1562 static Handle<Object> GetProperty(Handle<Object> object, 1565 static Handle<Object> GetProperty(Handle<Object> object,
1563 Handle<Object> receiver, 1566 Handle<Object> receiver,
1564 LookupResult* result, 1567 LookupResult* result,
1565 Handle<Name> key, 1568 Handle<Name> key,
1566 PropertyAttributes* attributes); 1569 PropertyAttributes* attributes);
1567 1570
1568 MUST_USE_RESULT static MaybeObject* GetPropertyOrFail( 1571 MUST_USE_RESULT static MaybeObject* GetPropertyOrFail(
1569 Handle<Object> object, 1572 Handle<Object> object,
(...skipping 9248 matching lines...) Expand 10 before | Expand all | Expand 10 after
10818 } else { 10821 } else {
10819 value &= ~(1 << bit_position); 10822 value &= ~(1 << bit_position);
10820 } 10823 }
10821 return value; 10824 return value;
10822 } 10825 }
10823 }; 10826 };
10824 10827
10825 } } // namespace v8::internal 10828 } } // namespace v8::internal
10826 10829
10827 #endif // V8_OBJECTS_H_ 10830 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/json-stringifier.h ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698