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

Unified Diff: src/objects.h

Issue 1180753005: Cleanup typed array setters, the property is guaranteed to be there. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/lookup.cc ('k') | src/objects.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index ccf3506f272fb0b20101d8938aece144b51e4ec5..9b6dfc7e22a70e0c0dd6b0168b195a4f40bad26b 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -2433,8 +2433,8 @@ class FixedArray: public FixedArrayBase {
public:
// Setter and getter for elements.
inline Object* get(int index) const;
- static void SetValue(Handle<JSObject> holder, Handle<FixedArray> array,
- uint32_t index, Handle<Object> value);
+ static void SetValue(Handle<FixedArray> array, uint32_t index,
+ Handle<Object> value);
static inline Handle<Object> get(Handle<FixedArray> array, int index);
// Setter that uses write barrier.
inline void set(int index, Object* value);
@@ -2557,8 +2557,8 @@ class FixedDoubleArray: public FixedArrayBase {
inline uint64_t get_representation(int index);
static inline Handle<Object> get(Handle<FixedDoubleArray> array, int index);
// This accessor has to get a Number as |value|.
- static void SetValue(Handle<JSObject> holder, Handle<FixedDoubleArray> array,
- uint32_t index, Handle<Object> value);
+ static void SetValue(Handle<FixedDoubleArray> array, uint32_t index,
+ Handle<Object> value);
inline void set(int index, double value);
inline void set_the_hole(int index);
@@ -4393,8 +4393,7 @@ class ExternalUint8ClampedArray: public ExternalArray {
// This accessor applies the correct conversion from Smi, HeapNumber
// and undefined and clamps the converted value between 0 and 255.
- static void SetValue(Handle<JSObject> holder,
- Handle<ExternalUint8ClampedArray> array, uint32_t index,
+ static void SetValue(Handle<ExternalUint8ClampedArray> array, uint32_t index,
Handle<Object> value);
DECLARE_CAST(ExternalUint8ClampedArray)
@@ -4417,8 +4416,8 @@ class ExternalInt8Array: public ExternalArray {
// This accessor applies the correct conversion from Smi, HeapNumber
// and undefined.
- static void SetValue(Handle<JSObject> holder, Handle<ExternalInt8Array> array,
- uint32_t index, Handle<Object> value);
+ static void SetValue(Handle<ExternalInt8Array> array, uint32_t index,
+ Handle<Object> value);
DECLARE_CAST(ExternalInt8Array)
@@ -4440,8 +4439,7 @@ class ExternalUint8Array: public ExternalArray {
// This accessor applies the correct conversion from Smi, HeapNumber
// and undefined.
- static void SetValue(Handle<JSObject> holder,
- Handle<ExternalUint8Array> array, uint32_t index,
+ static void SetValue(Handle<ExternalUint8Array> array, uint32_t index,
Handle<Object> value);
DECLARE_CAST(ExternalUint8Array)
@@ -4464,8 +4462,7 @@ class ExternalInt16Array: public ExternalArray {
// This accessor applies the correct conversion from Smi, HeapNumber
// and undefined.
- static void SetValue(Handle<JSObject> holder,
- Handle<ExternalInt16Array> array, uint32_t index,
+ static void SetValue(Handle<ExternalInt16Array> array, uint32_t index,
Handle<Object> value);
DECLARE_CAST(ExternalInt16Array)
@@ -4489,8 +4486,7 @@ class ExternalUint16Array: public ExternalArray {
// This accessor applies the correct conversion from Smi, HeapNumber
// and undefined.
- static void SetValue(Handle<JSObject> holder,
- Handle<ExternalUint16Array> array, uint32_t index,
+ static void SetValue(Handle<ExternalUint16Array> array, uint32_t index,
Handle<Object> value);
DECLARE_CAST(ExternalUint16Array)
@@ -4513,8 +4509,7 @@ class ExternalInt32Array: public ExternalArray {
// This accessor applies the correct conversion from Smi, HeapNumber
// and undefined.
- static void SetValue(Handle<JSObject> holder,
- Handle<ExternalInt32Array> array, uint32_t index,
+ static void SetValue(Handle<ExternalInt32Array> array, uint32_t index,
Handle<Object> value);
DECLARE_CAST(ExternalInt32Array)
@@ -4538,8 +4533,7 @@ class ExternalUint32Array: public ExternalArray {
// This accessor applies the correct conversion from Smi, HeapNumber
// and undefined.
- static void SetValue(Handle<JSObject> holder,
- Handle<ExternalUint32Array> array, uint32_t index,
+ static void SetValue(Handle<ExternalUint32Array> array, uint32_t index,
Handle<Object> value);
DECLARE_CAST(ExternalUint32Array)
@@ -4563,8 +4557,7 @@ class ExternalFloat32Array: public ExternalArray {
// This accessor applies the correct conversion from Smi, HeapNumber
// and undefined.
- static void SetValue(Handle<JSObject> holder,
- Handle<ExternalFloat32Array> array, uint32_t index,
+ static void SetValue(Handle<ExternalFloat32Array> array, uint32_t index,
Handle<Object> value);
DECLARE_CAST(ExternalFloat32Array)
@@ -4588,8 +4581,7 @@ class ExternalFloat64Array: public ExternalArray {
// This accessor applies the correct conversion from Smi, HeapNumber
// and undefined.
- static void SetValue(Handle<JSObject> holder,
- Handle<ExternalFloat64Array> array, uint32_t index,
+ static void SetValue(Handle<ExternalFloat64Array> array, uint32_t index,
Handle<Object> value);
DECLARE_CAST(ExternalFloat64Array)
@@ -4658,8 +4650,7 @@ class FixedTypedArray: public FixedTypedArrayBase {
// This accessor applies the correct conversion from Smi, HeapNumber
// and undefined.
- static void SetValue(Handle<JSObject> holder,
- Handle<FixedTypedArray<Traits> > array, uint32_t index,
+ static void SetValue(Handle<FixedTypedArray<Traits> > array, uint32_t index,
Handle<Object> value);
DECLARE_PRINTER(FixedTypedArray)
« no previous file with comments | « src/lookup.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698