OLD | NEW |
1 | 1 |
2 // Copyright 2011 the V8 project authors. All rights reserved. | 2 // Copyright 2011 the V8 project authors. All rights reserved. |
3 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
4 // found in the LICENSE file. | 4 // found in the LICENSE file. |
5 | 5 |
6 #ifndef V8_BUILTINS_H_ | 6 #ifndef V8_BUILTINS_H_ |
7 #define V8_BUILTINS_H_ | 7 #define V8_BUILTINS_H_ |
8 | 8 |
9 #include "src/base/flags.h" | 9 #include "src/base/flags.h" |
10 #include "src/handles.h" | 10 #include "src/handles.h" |
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 #define BUILTIN_LIST_T(V) \ | 304 #define BUILTIN_LIST_T(V) \ |
305 V(FunctionPrototypeHasInstance, 2) \ | 305 V(FunctionPrototypeHasInstance, 2) \ |
306 V(GeneratorPrototypeNext, 2) \ | 306 V(GeneratorPrototypeNext, 2) \ |
307 V(GeneratorPrototypeReturn, 2) \ | 307 V(GeneratorPrototypeReturn, 2) \ |
308 V(GeneratorPrototypeThrow, 2) \ | 308 V(GeneratorPrototypeThrow, 2) \ |
309 V(MathAtan, 2) \ | 309 V(MathAtan, 2) \ |
310 V(MathAtan2, 3) \ | 310 V(MathAtan2, 3) \ |
311 V(MathAtanh, 2) \ | 311 V(MathAtanh, 2) \ |
312 V(MathCeil, 2) \ | 312 V(MathCeil, 2) \ |
313 V(MathCbrt, 2) \ | 313 V(MathCbrt, 2) \ |
| 314 V(MathAbs, 2) \ |
314 V(MathExpm1, 2) \ | 315 V(MathExpm1, 2) \ |
315 V(MathClz32, 2) \ | 316 V(MathClz32, 2) \ |
316 V(MathCos, 2) \ | 317 V(MathCos, 2) \ |
317 V(MathCosh, 2) \ | 318 V(MathCosh, 2) \ |
318 V(MathExp, 2) \ | 319 V(MathExp, 2) \ |
319 V(MathFloor, 2) \ | 320 V(MathFloor, 2) \ |
320 V(MathLog, 2) \ | 321 V(MathLog, 2) \ |
321 V(MathLog1p, 2) \ | 322 V(MathLog1p, 2) \ |
322 V(MathLog10, 2) \ | 323 V(MathLog10, 2) \ |
323 V(MathLog2, 2) \ | 324 V(MathLog2, 2) \ |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
624 | 625 |
625 static void Generate_FunctionPrototypeApply(MacroAssembler* masm); | 626 static void Generate_FunctionPrototypeApply(MacroAssembler* masm); |
626 static void Generate_FunctionPrototypeCall(MacroAssembler* masm); | 627 static void Generate_FunctionPrototypeCall(MacroAssembler* masm); |
627 | 628 |
628 static void Generate_ReflectApply(MacroAssembler* masm); | 629 static void Generate_ReflectApply(MacroAssembler* masm); |
629 static void Generate_ReflectConstruct(MacroAssembler* masm); | 630 static void Generate_ReflectConstruct(MacroAssembler* masm); |
630 | 631 |
631 static void Generate_InternalArrayCode(MacroAssembler* masm); | 632 static void Generate_InternalArrayCode(MacroAssembler* masm); |
632 static void Generate_ArrayCode(MacroAssembler* masm); | 633 static void Generate_ArrayCode(MacroAssembler* masm); |
633 | 634 |
| 635 // ES6 section 20.2.2.1 Math.abs ( x ) |
| 636 static void Generate_MathAbs(CodeStubAssembler* assembler); |
634 // ES6 section 20.2.2.6 Math.atan ( x ) | 637 // ES6 section 20.2.2.6 Math.atan ( x ) |
635 static void Generate_MathAtan(CodeStubAssembler* assembler); | 638 static void Generate_MathAtan(CodeStubAssembler* assembler); |
636 // ES6 section 20.2.2.8 Math.atan2 ( y, x ) | 639 // ES6 section 20.2.2.8 Math.atan2 ( y, x ) |
637 static void Generate_MathAtan2(CodeStubAssembler* assembler); | 640 static void Generate_MathAtan2(CodeStubAssembler* assembler); |
638 // ES6 section 20.2.2.7 Math.atanh ( x ) | 641 // ES6 section 20.2.2.7 Math.atanh ( x ) |
639 static void Generate_MathAtanh(CodeStubAssembler* assembler); | 642 static void Generate_MathAtanh(CodeStubAssembler* assembler); |
640 // ES6 section 20.2.2.10 Math.ceil ( x ) | 643 // ES6 section 20.2.2.10 Math.ceil ( x ) |
641 static void Generate_MathCeil(CodeStubAssembler* assembler); | 644 static void Generate_MathCeil(CodeStubAssembler* assembler); |
642 // ES6 section 20.2.2.9 Math.ceil ( x ) | 645 // ES6 section 20.2.2.9 Math.ceil ( x ) |
643 static void Generate_MathCbrt(CodeStubAssembler* assembler); | 646 static void Generate_MathCbrt(CodeStubAssembler* assembler); |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
769 friend class BuiltinFunctionTable; | 772 friend class BuiltinFunctionTable; |
770 friend class Isolate; | 773 friend class Isolate; |
771 | 774 |
772 DISALLOW_COPY_AND_ASSIGN(Builtins); | 775 DISALLOW_COPY_AND_ASSIGN(Builtins); |
773 }; | 776 }; |
774 | 777 |
775 } // namespace internal | 778 } // namespace internal |
776 } // namespace v8 | 779 } // namespace v8 |
777 | 780 |
778 #endif // V8_BUILTINS_H_ | 781 #endif // V8_BUILTINS_H_ |
OLD | NEW |