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_H_ | 5 #ifndef V8_BUILTINS_H_ |
6 #define V8_BUILTINS_H_ | 6 #define V8_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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 // Define list of builtins implemented in TurboFan (with JS linkage). | 313 // Define list of builtins implemented in TurboFan (with JS linkage). |
314 #define BUILTIN_LIST_T(V) \ | 314 #define BUILTIN_LIST_T(V) \ |
315 V(FunctionPrototypeHasInstance, 2) \ | 315 V(FunctionPrototypeHasInstance, 2) \ |
316 V(GeneratorPrototypeNext, 2) \ | 316 V(GeneratorPrototypeNext, 2) \ |
317 V(GeneratorPrototypeReturn, 2) \ | 317 V(GeneratorPrototypeReturn, 2) \ |
318 V(GeneratorPrototypeThrow, 2) \ | 318 V(GeneratorPrototypeThrow, 2) \ |
319 V(MathAtan, 2) \ | 319 V(MathAtan, 2) \ |
320 V(MathAtan2, 3) \ | 320 V(MathAtan2, 3) \ |
321 V(MathCeil, 2) \ | 321 V(MathCeil, 2) \ |
322 V(MathClz32, 2) \ | 322 V(MathClz32, 2) \ |
323 V(MathExp, 2) \ | |
324 V(MathFloor, 2) \ | 323 V(MathFloor, 2) \ |
325 V(MathLog, 2) \ | 324 V(MathLog, 2) \ |
326 V(MathLog1p, 2) \ | 325 V(MathLog1p, 2) \ |
327 V(MathLog2, 2) \ | 326 V(MathLog2, 2) \ |
328 V(MathLog10, 2) \ | 327 V(MathLog10, 2) \ |
329 V(MathRound, 2) \ | 328 V(MathRound, 2) \ |
330 V(MathSqrt, 2) \ | 329 V(MathSqrt, 2) \ |
331 V(MathTrunc, 2) \ | 330 V(MathTrunc, 2) \ |
332 V(ObjectHasOwnProperty, 2) \ | 331 V(ObjectHasOwnProperty, 2) \ |
333 V(ArrayIsArray, 2) \ | 332 V(ArrayIsArray, 2) \ |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
628 static void Generate_ArrayCode(MacroAssembler* masm); | 627 static void Generate_ArrayCode(MacroAssembler* masm); |
629 | 628 |
630 // ES6 section 20.2.2.6 Math.atan ( x ) | 629 // ES6 section 20.2.2.6 Math.atan ( x ) |
631 static void Generate_MathAtan(CodeStubAssembler* assembler); | 630 static void Generate_MathAtan(CodeStubAssembler* assembler); |
632 // ES6 section 20.2.2.8 Math.atan2 ( y, x ) | 631 // ES6 section 20.2.2.8 Math.atan2 ( y, x ) |
633 static void Generate_MathAtan2(CodeStubAssembler* assembler); | 632 static void Generate_MathAtan2(CodeStubAssembler* assembler); |
634 // ES6 section 20.2.2.10 Math.ceil ( x ) | 633 // ES6 section 20.2.2.10 Math.ceil ( x ) |
635 static void Generate_MathCeil(CodeStubAssembler* assembler); | 634 static void Generate_MathCeil(CodeStubAssembler* assembler); |
636 // ES6 section 20.2.2.11 Math.clz32 ( x ) | 635 // ES6 section 20.2.2.11 Math.clz32 ( x ) |
637 static void Generate_MathClz32(CodeStubAssembler* assembler); | 636 static void Generate_MathClz32(CodeStubAssembler* assembler); |
638 // ES6 section 20.2.2.14 Math.exp ( x ) | |
639 static void Generate_MathExp(CodeStubAssembler* assembler); | |
640 // ES6 section 20.2.2.16 Math.floor ( x ) | 637 // ES6 section 20.2.2.16 Math.floor ( x ) |
641 static void Generate_MathFloor(CodeStubAssembler* assembler); | 638 static void Generate_MathFloor(CodeStubAssembler* assembler); |
642 // ES6 section 20.2.2.20 Math.log ( x ) | 639 // ES6 section 20.2.2.20 Math.log ( x ) |
643 static void Generate_MathLog(CodeStubAssembler* assembler); | 640 static void Generate_MathLog(CodeStubAssembler* assembler); |
644 // ES6 section 20.2.2.21 Math.log ( x ) | 641 // ES6 section 20.2.2.21 Math.log ( x ) |
645 static void Generate_MathLog1p(CodeStubAssembler* assembler); | 642 static void Generate_MathLog1p(CodeStubAssembler* assembler); |
646 | 643 |
647 static void Generate_MathLog2(CodeStubAssembler* assembler); | 644 static void Generate_MathLog2(CodeStubAssembler* assembler); |
648 static void Generate_MathLog10(CodeStubAssembler* assembler); | 645 static void Generate_MathLog10(CodeStubAssembler* assembler); |
649 | 646 |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
745 friend class BuiltinFunctionTable; | 742 friend class BuiltinFunctionTable; |
746 friend class Isolate; | 743 friend class Isolate; |
747 | 744 |
748 DISALLOW_COPY_AND_ASSIGN(Builtins); | 745 DISALLOW_COPY_AND_ASSIGN(Builtins); |
749 }; | 746 }; |
750 | 747 |
751 } // namespace internal | 748 } // namespace internal |
752 } // namespace v8 | 749 } // namespace v8 |
753 | 750 |
754 #endif // V8_BUILTINS_H_ | 751 #endif // V8_BUILTINS_H_ |
OLD | NEW |