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

Unified Diff: src/typedarray.js

Issue 258243004: Harden some INLINE_OPTIMIZED runtime bultins. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 8 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/runtime.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/typedarray.js
diff --git a/src/typedarray.js b/src/typedarray.js
index e86c86cb880c8bbb2f5b49e0d3be84370b121c5e..d0ef70a02eda97c9aac666661a53bb2043aa6a7d 100644
--- a/src/typedarray.js
+++ b/src/typedarray.js
@@ -152,7 +152,7 @@ macro TYPED_ARRAY_CONSTRUCTOR(ARRAY_ID, NAME, ELEMENT_SIZE)
throw MakeTypeError('incompatible_method_receiver',
["NAME.byteLength", this]);
}
- return %_ArrayBufferViewGetByteLength(this);
+ return %_TypedArrayGetByteLength(this);
}
function NAME_GetByteOffset() {
@@ -160,7 +160,7 @@ macro TYPED_ARRAY_CONSTRUCTOR(ARRAY_ID, NAME, ELEMENT_SIZE)
throw MakeTypeError('incompatible_method_receiver',
["NAME.byteOffset", this]);
}
- return %_ArrayBufferViewGetByteOffset(this);
+ return %_TypedArrayGetByteOffset(this);
}
function NAME_GetLength() {
@@ -201,7 +201,7 @@ macro TYPED_ARRAY_CONSTRUCTOR(ARRAY_ID, NAME, ELEMENT_SIZE)
}
var newLength = endInt - beginInt;
var beginByteOffset =
- %_ArrayBufferViewGetByteOffset(this) + beginInt * ELEMENT_SIZE;
+ %_TypedArrayGetByteOffset(this) + beginInt * ELEMENT_SIZE;
return new $NAME(%TypedArrayGetBuffer(this),
beginByteOffset, newLength);
}
@@ -393,7 +393,7 @@ function DataViewGetByteOffset() {
throw MakeTypeError('incompatible_method_receiver',
['DataView.byteOffset', this]);
}
- return %_ArrayBufferViewGetByteOffset(this);
+ return %_DataViewGetByteOffset(this);
}
function DataViewGetByteLength() {
@@ -401,7 +401,7 @@ function DataViewGetByteLength() {
throw MakeTypeError('incompatible_method_receiver',
['DataView.byteLength', this]);
}
- return %_ArrayBufferViewGetByteLength(this);
+ return %_DataViewGetByteLength(this);
}
macro DATA_VIEW_TYPES(FUNCTION)
« no previous file with comments | « src/runtime.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698