Index: src/builtins.h |
diff --git a/src/builtins.h b/src/builtins.h |
index f84993b25d9014779998db54423fb18185d2af42..b996bd964c637136dc695cebb33c3a41195292df 100644 |
--- a/src/builtins.h |
+++ b/src/builtins.h |
@@ -78,6 +78,9 @@ inline bool operator&(BuiltinExtraArguments lhs, BuiltinExtraArguments rhs) { |
\ |
V(DataViewConstructor, kNone) \ |
V(DataViewConstructor_ConstructStub, kTargetAndNewTarget) \ |
+ V(DataViewPrototypeGetBuffer, kNone) \ |
+ V(DataViewPrototypeGetByteLength, kNone) \ |
+ V(DataViewPrototypeGetByteOffset, kNone) \ |
\ |
V(DateConstructor, kNone) \ |
V(DateConstructor_ConstructStub, kTargetAndNewTarget) \ |
@@ -182,6 +185,8 @@ inline bool operator&(BuiltinExtraArguments lhs, BuiltinExtraArguments rhs) { |
V(SymbolConstructor, kNone) \ |
V(SymbolConstructor_ConstructStub, kTarget) \ |
\ |
+ V(TypedArrayPrototypeBuffer, kNone) \ |
+ \ |
V(HandleApiCall, kTargetAndNewTarget) \ |
V(HandleApiCallAsFunction, kNone) \ |
V(HandleApiCallAsConstructor, kNone) \ |
@@ -320,24 +325,27 @@ inline bool operator&(BuiltinExtraArguments lhs, BuiltinExtraArguments rhs) { |
CODE_AGE_LIST_WITH_ARG(DECLARE_CODE_AGE_BUILTIN, V) |
// Define list of builtins implemented in TurboFan (with JS linkage). |
-#define BUILTIN_LIST_T(V) \ |
- V(FunctionPrototypeHasInstance, 2) \ |
- V(GeneratorPrototypeNext, 2) \ |
- V(GeneratorPrototypeReturn, 2) \ |
- V(GeneratorPrototypeThrow, 2) \ |
- V(MathCeil, 2) \ |
- V(MathClz32, 2) \ |
- V(MathFloor, 2) \ |
- V(MathLog, 2) \ |
- V(MathRound, 2) \ |
- V(MathSqrt, 2) \ |
- V(MathTrunc, 2) \ |
- V(ObjectHasOwnProperty, 2) \ |
- V(ArrayIsArray, 2) \ |
- V(StringFromCharCode, 2) \ |
- V(StringPrototypeCharAt, 2) \ |
- V(StringPrototypeCharCodeAt, 2) \ |
- V(AtomicsLoad, 3) \ |
+#define BUILTIN_LIST_T(V) \ |
+ V(FunctionPrototypeHasInstance, 2) \ |
+ V(GeneratorPrototypeNext, 2) \ |
+ V(GeneratorPrototypeReturn, 2) \ |
+ V(GeneratorPrototypeThrow, 2) \ |
+ V(MathCeil, 2) \ |
+ V(MathClz32, 2) \ |
+ V(MathFloor, 2) \ |
+ V(MathLog, 2) \ |
+ V(MathRound, 2) \ |
+ V(MathSqrt, 2) \ |
+ V(MathTrunc, 2) \ |
+ V(ObjectHasOwnProperty, 2) \ |
+ V(ArrayIsArray, 2) \ |
+ V(StringFromCharCode, 2) \ |
+ V(StringPrototypeCharAt, 2) \ |
+ V(StringPrototypeCharCodeAt, 2) \ |
+ V(TypedArrayPrototypeByteLength, 1) \ |
+ V(TypedArrayPrototypeByteOffset, 1) \ |
+ V(TypedArrayPrototypeLength, 1) \ |
+ V(AtomicsLoad, 3) \ |
V(AtomicsStore, 4) |
// Define list of builtin handlers implemented in assembly. |
@@ -670,6 +678,16 @@ class Builtins { |
static void Generate_StringConstructor(MacroAssembler* masm); |
static void Generate_StringConstructor_ConstructStub(MacroAssembler* masm); |
+ |
+ // ES6 section 22.2.3.2 get %TypedArray%.prototype.byteLength |
+ static void Generate_TypedArrayPrototypeByteLength( |
+ CodeStubAssembler* assembler); |
+ // ES6 section 22.2.3.3 get %TypedArray%.prototype.byteOffset |
+ static void Generate_TypedArrayPrototypeByteOffset( |
+ CodeStubAssembler* assembler); |
+ // ES6 section 22.2.3.18 get %TypedArray%.prototype.length |
+ static void Generate_TypedArrayPrototypeLength(CodeStubAssembler* assembler); |
+ |
static void Generate_OnStackReplacement(MacroAssembler* masm); |
static void Generate_InterruptCheck(MacroAssembler* masm); |
static void Generate_StackCheck(MacroAssembler* masm); |