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

Side by Side Diff: src/objects.h

Issue 6551001: Implement pixel array elements access in the presence of an (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 10 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 | 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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 1531 matching lines...) Expand 10 before | Expand all | Expand 10 after
1542 // A Failure object is returned if GC is needed. 1542 // A Failure object is returned if GC is needed.
1543 MUST_USE_RESULT MaybeObject* SetElement(uint32_t index, 1543 MUST_USE_RESULT MaybeObject* SetElement(uint32_t index,
1544 Object* value, 1544 Object* value,
1545 bool check_prototype = true); 1545 bool check_prototype = true);
1546 1546
1547 // Returns the index'th element. 1547 // Returns the index'th element.
1548 // The undefined object if index is out of bounds. 1548 // The undefined object if index is out of bounds.
1549 MaybeObject* GetElementWithReceiver(Object* receiver, uint32_t index); 1549 MaybeObject* GetElementWithReceiver(Object* receiver, uint32_t index);
1550 MaybeObject* GetElementWithInterceptor(Object* receiver, uint32_t index); 1550 MaybeObject* GetElementWithInterceptor(Object* receiver, uint32_t index);
1551 1551
1552 // Get external element value at index if there is one and undefined
1553 // otherwise. Can return a failure if allocation of a heap number
1554 // failed.
1555 MaybeObject* GetExternalElement(uint32_t index);
1556
1552 MUST_USE_RESULT MaybeObject* SetFastElementsCapacityAndLength(int capacity, 1557 MUST_USE_RESULT MaybeObject* SetFastElementsCapacityAndLength(int capacity,
1553 int length); 1558 int length);
1554 MUST_USE_RESULT MaybeObject* SetSlowElements(Object* length); 1559 MUST_USE_RESULT MaybeObject* SetSlowElements(Object* length);
1555 1560
1556 // Lookup interceptors are used for handling properties controlled by host 1561 // Lookup interceptors are used for handling properties controlled by host
1557 // objects. 1562 // objects.
1558 inline bool HasNamedInterceptor(); 1563 inline bool HasNamedInterceptor();
1559 inline bool HasIndexedInterceptor(); 1564 inline bool HasIndexedInterceptor();
1560 1565
1561 // Support functions for v8 api (needed for correct interceptor behavior). 1566 // Support functions for v8 api (needed for correct interceptor behavior).
(...skipping 4991 matching lines...) Expand 10 before | Expand all | Expand 10 after
6553 } else { 6558 } else {
6554 value &= ~(1 << bit_position); 6559 value &= ~(1 << bit_position);
6555 } 6560 }
6556 return value; 6561 return value;
6557 } 6562 }
6558 }; 6563 };
6559 6564
6560 } } // namespace v8::internal 6565 } } // namespace v8::internal
6561 6566
6562 #endif // V8_OBJECTS_H_ 6567 #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