| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_BUILTINS_BUILTINS_H_ | 5 #ifndef V8_BUILTINS_BUILTINS_H_ |
| 6 #define V8_BUILTINS_BUILTINS_H_ | 6 #define V8_BUILTINS_BUILTINS_H_ |
| 7 | 7 |
| 8 #include "src/base/flags.h" | 8 #include "src/base/flags.h" |
| 9 #include "src/handles.h" | 9 #include "src/handles.h" |
| 10 | 10 |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 /* Special internal builtins */ \ | 161 /* Special internal builtins */ \ |
| 162 CPP(EmptyFunction) \ | 162 CPP(EmptyFunction) \ |
| 163 CPP(Illegal) \ | 163 CPP(Illegal) \ |
| 164 CPP(RestrictedFunctionPropertiesThrower) \ | 164 CPP(RestrictedFunctionPropertiesThrower) \ |
| 165 CPP(RestrictedStrictArgumentsPropertiesThrower) \ | 165 CPP(RestrictedStrictArgumentsPropertiesThrower) \ |
| 166 /* Array */ \ | 166 /* Array */ \ |
| 167 ASM(ArrayCode) \ | 167 ASM(ArrayCode) \ |
| 168 ASM(InternalArrayCode) \ | 168 ASM(InternalArrayCode) \ |
| 169 CPP(ArrayConcat) \ | 169 CPP(ArrayConcat) \ |
| 170 TFJ(ArrayIsArray, 2) \ | 170 TFJ(ArrayIsArray, 2) \ |
| 171 TFJ(ArrayIncludes, 3) \ |
| 171 CPP(ArrayPop) \ | 172 CPP(ArrayPop) \ |
| 172 CPP(ArrayPush) \ | 173 CPP(ArrayPush) \ |
| 173 CPP(ArrayShift) \ | 174 CPP(ArrayShift) \ |
| 174 CPP(ArraySlice) \ | 175 CPP(ArraySlice) \ |
| 175 CPP(ArraySplice) \ | 176 CPP(ArraySplice) \ |
| 176 CPP(ArrayUnshift) \ | 177 CPP(ArrayUnshift) \ |
| 177 /* ArrayBuffer */ \ | 178 /* ArrayBuffer */ \ |
| 178 CPP(ArrayBufferConstructor) \ | 179 CPP(ArrayBufferConstructor) \ |
| 179 CPP(ArrayBufferConstructor_ConstructStub) \ | 180 CPP(ArrayBufferConstructor_ConstructStub) \ |
| 180 CPP(ArrayBufferPrototypeGetByteLength) \ | 181 CPP(ArrayBufferPrototypeGetByteLength) \ |
| (...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 742 static void Generate_GeneratorPrototypeReturn(CodeStubAssembler* assembler); | 743 static void Generate_GeneratorPrototypeReturn(CodeStubAssembler* assembler); |
| 743 // ES6 section 25.3.1.4 Generator.prototype.throw ( exception ) | 744 // ES6 section 25.3.1.4 Generator.prototype.throw ( exception ) |
| 744 static void Generate_GeneratorPrototypeThrow(CodeStubAssembler* assembler); | 745 static void Generate_GeneratorPrototypeThrow(CodeStubAssembler* assembler); |
| 745 | 746 |
| 746 // ES6 section 19.1.3.2 Object.prototype.hasOwnProperty | 747 // ES6 section 19.1.3.2 Object.prototype.hasOwnProperty |
| 747 static void Generate_ObjectHasOwnProperty(CodeStubAssembler* assembler); | 748 static void Generate_ObjectHasOwnProperty(CodeStubAssembler* assembler); |
| 748 | 749 |
| 749 // ES6 section 22.1.2.2 Array.isArray | 750 // ES6 section 22.1.2.2 Array.isArray |
| 750 static void Generate_ArrayIsArray(CodeStubAssembler* assembler); | 751 static void Generate_ArrayIsArray(CodeStubAssembler* assembler); |
| 751 | 752 |
| 753 // ES7 section 22.1.3.11 Array.prototype.includes |
| 754 static void Generate_ArrayIncludes(CodeStubAssembler* assembler); |
| 755 |
| 752 // ES6 section 21.1.2.1 String.fromCharCode ( ...codeUnits ) | 756 // ES6 section 21.1.2.1 String.fromCharCode ( ...codeUnits ) |
| 753 static void Generate_StringFromCharCode(CodeStubAssembler* assembler); | 757 static void Generate_StringFromCharCode(CodeStubAssembler* assembler); |
| 754 // ES6 section 21.1.3.1 String.prototype.charAt ( pos ) | 758 // ES6 section 21.1.3.1 String.prototype.charAt ( pos ) |
| 755 static void Generate_StringPrototypeCharAt(CodeStubAssembler* assembler); | 759 static void Generate_StringPrototypeCharAt(CodeStubAssembler* assembler); |
| 756 // ES6 section 21.1.3.2 String.prototype.charCodeAt ( pos ) | 760 // ES6 section 21.1.3.2 String.prototype.charCodeAt ( pos ) |
| 757 static void Generate_StringPrototypeCharCodeAt(CodeStubAssembler* assembler); | 761 static void Generate_StringPrototypeCharCodeAt(CodeStubAssembler* assembler); |
| 758 // ES6 section 21.1.3.25 String.prototype.toString () | 762 // ES6 section 21.1.3.25 String.prototype.toString () |
| 759 static void Generate_StringPrototypeToString(CodeStubAssembler* assembler); | 763 static void Generate_StringPrototypeToString(CodeStubAssembler* assembler); |
| 760 // ES6 section 21.1.3.28 String.prototype.valueOf () | 764 // ES6 section 21.1.3.28 String.prototype.valueOf () |
| 761 static void Generate_StringPrototypeValueOf(CodeStubAssembler* assembler); | 765 static void Generate_StringPrototypeValueOf(CodeStubAssembler* assembler); |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 830 friend class BuiltinFunctionTable; | 834 friend class BuiltinFunctionTable; |
| 831 friend class Isolate; | 835 friend class Isolate; |
| 832 | 836 |
| 833 DISALLOW_COPY_AND_ASSIGN(Builtins); | 837 DISALLOW_COPY_AND_ASSIGN(Builtins); |
| 834 }; | 838 }; |
| 835 | 839 |
| 836 } // namespace internal | 840 } // namespace internal |
| 837 } // namespace v8 | 841 } // namespace v8 |
| 838 | 842 |
| 839 #endif // V8_BUILTINS_BUILTINS_H_ | 843 #endif // V8_BUILTINS_BUILTINS_H_ |
| OLD | NEW |