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

Side by Side Diff: src/objects.h

Issue 204693002: Handlify callers to GetElementNoException. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix 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/log.cc ('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 1566 matching lines...) Expand 10 before | Expand all | Expand 10 after
1577 PropertyAttributes* attributes); 1577 PropertyAttributes* attributes);
1578 1578
1579 MUST_USE_RESULT MaybeObject* GetPropertyWithDefinedGetter(Object* receiver, 1579 MUST_USE_RESULT MaybeObject* GetPropertyWithDefinedGetter(Object* receiver,
1580 JSReceiver* getter); 1580 JSReceiver* getter);
1581 1581
1582 static inline Handle<Object> GetElement(Isolate* isolate, 1582 static inline Handle<Object> GetElement(Isolate* isolate,
1583 Handle<Object> object, 1583 Handle<Object> object,
1584 uint32_t index); 1584 uint32_t index);
1585 1585
1586 // For use when we know that no exception can be thrown. 1586 // For use when we know that no exception can be thrown.
1587 inline Object* GetElementNoExceptionThrown(Isolate* isolate, uint32_t index); 1587 static inline Handle<Object> GetElementNoExceptionThrown(
1588 Isolate* isolate,
1589 Handle<Object> object,
1590 uint32_t index);
1588 MUST_USE_RESULT MaybeObject* GetElementWithReceiver(Isolate* isolate, 1591 MUST_USE_RESULT MaybeObject* GetElementWithReceiver(Isolate* isolate,
1589 Object* receiver, 1592 Object* receiver,
1590 uint32_t index); 1593 uint32_t index);
1591 1594
1592 // Return the object's prototype (might be Heap::null_value()). 1595 // Return the object's prototype (might be Heap::null_value()).
1593 Object* GetPrototype(Isolate* isolate); 1596 Object* GetPrototype(Isolate* isolate);
1594 Map* GetMarkerMap(Isolate* isolate); 1597 Map* GetMarkerMap(Isolate* isolate);
1595 1598
1596 // Returns the permanent hash code associated with this object. May return 1599 // Returns the permanent hash code associated with this object. May return
1597 // undefined if not yet created. 1600 // undefined if not yet created.
(...skipping 9195 matching lines...) Expand 10 before | Expand all | Expand 10 after
10793 } else { 10796 } else {
10794 value &= ~(1 << bit_position); 10797 value &= ~(1 << bit_position);
10795 } 10798 }
10796 return value; 10799 return value;
10797 } 10800 }
10798 }; 10801 };
10799 10802
10800 } } // namespace v8::internal 10803 } } // namespace v8::internal
10801 10804
10802 #endif // V8_OBJECTS_H_ 10805 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/log.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698