Commit 10e30279 authored by gsathya's avatar gsathya Committed by Commit bot

[typedarrays] fix typo

Review-Url: https://codereview.chromium.org/2569663003
Cr-Commit-Position: refs/heads/master@{#41662}
parent 6e232fde
...@@ -21,9 +21,9 @@ BUILTIN(TypedArrayPrototypeBuffer) { ...@@ -21,9 +21,9 @@ BUILTIN(TypedArrayPrototypeBuffer) {
namespace { namespace {
void Generate_TypedArrayProtoypeGetter(compiler::CodeAssemblerState* state, void Generate_TypedArrayPrototypeGetter(compiler::CodeAssemblerState* state,
const char* method_name, const char* method_name,
int object_offset) { int object_offset) {
typedef CodeStubAssembler::Label Label; typedef CodeStubAssembler::Label Label;
typedef compiler::Node Node; typedef compiler::Node Node;
CodeStubAssembler assembler(state); CodeStubAssembler assembler(state);
...@@ -71,24 +71,24 @@ void Generate_TypedArrayProtoypeGetter(compiler::CodeAssemblerState* state, ...@@ -71,24 +71,24 @@ void Generate_TypedArrayProtoypeGetter(compiler::CodeAssemblerState* state,
// ES6 section 22.2.3.2 get %TypedArray%.prototype.byteLength // ES6 section 22.2.3.2 get %TypedArray%.prototype.byteLength
void Builtins::Generate_TypedArrayPrototypeByteLength( void Builtins::Generate_TypedArrayPrototypeByteLength(
compiler::CodeAssemblerState* state) { compiler::CodeAssemblerState* state) {
Generate_TypedArrayProtoypeGetter(state, Generate_TypedArrayPrototypeGetter(state,
"get TypedArray.prototype.byteLength", "get TypedArray.prototype.byteLength",
JSTypedArray::kByteLengthOffset); JSTypedArray::kByteLengthOffset);
} }
// ES6 section 22.2.3.3 get %TypedArray%.prototype.byteOffset // ES6 section 22.2.3.3 get %TypedArray%.prototype.byteOffset
void Builtins::Generate_TypedArrayPrototypeByteOffset( void Builtins::Generate_TypedArrayPrototypeByteOffset(
compiler::CodeAssemblerState* state) { compiler::CodeAssemblerState* state) {
Generate_TypedArrayProtoypeGetter(state, Generate_TypedArrayPrototypeGetter(state,
"get TypedArray.prototype.byteOffset", "get TypedArray.prototype.byteOffset",
JSTypedArray::kByteOffsetOffset); JSTypedArray::kByteOffsetOffset);
} }
// ES6 section 22.2.3.18 get %TypedArray%.prototype.length // ES6 section 22.2.3.18 get %TypedArray%.prototype.length
void Builtins::Generate_TypedArrayPrototypeLength( void Builtins::Generate_TypedArrayPrototypeLength(
compiler::CodeAssemblerState* state) { compiler::CodeAssemblerState* state) {
Generate_TypedArrayProtoypeGetter(state, "get TypedArray.prototype.length", Generate_TypedArrayPrototypeGetter(state, "get TypedArray.prototype.length",
JSTypedArray::kLengthOffset); JSTypedArray::kLengthOffset);
} }
namespace { namespace {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment