| 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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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(MathFloor, 2) \ | 323 V(MathFloor, 2) \ |
| 324 V(MathLog, 2) \ | 324 V(MathLog, 2) \ |
| 325 V(MathLog1p, 2) \ | 325 V(MathLog1p, 2) \ |
| 326 V(MathLog2, 2) \ |
| 327 V(MathLog10, 2) \ |
| 326 V(MathRound, 2) \ | 328 V(MathRound, 2) \ |
| 327 V(MathSqrt, 2) \ | 329 V(MathSqrt, 2) \ |
| 328 V(MathTrunc, 2) \ | 330 V(MathTrunc, 2) \ |
| 329 V(ObjectHasOwnProperty, 2) \ | 331 V(ObjectHasOwnProperty, 2) \ |
| 330 V(ArrayIsArray, 2) \ | 332 V(ArrayIsArray, 2) \ |
| 331 V(StringFromCharCode, 2) \ | 333 V(StringFromCharCode, 2) \ |
| 332 V(StringPrototypeCharAt, 2) \ | 334 V(StringPrototypeCharAt, 2) \ |
| 333 V(StringPrototypeCharCodeAt, 2) \ | 335 V(StringPrototypeCharCodeAt, 2) \ |
| 334 V(TypedArrayPrototypeByteLength, 1) \ | 336 V(TypedArrayPrototypeByteLength, 1) \ |
| 335 V(TypedArrayPrototypeByteOffset, 1) \ | 337 V(TypedArrayPrototypeByteOffset, 1) \ |
| (...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 631 // ES6 section 20.2.2.10 Math.ceil ( x ) | 633 // ES6 section 20.2.2.10 Math.ceil ( x ) |
| 632 static void Generate_MathCeil(CodeStubAssembler* assembler); | 634 static void Generate_MathCeil(CodeStubAssembler* assembler); |
| 633 // ES6 section 20.2.2.11 Math.clz32 ( x ) | 635 // ES6 section 20.2.2.11 Math.clz32 ( x ) |
| 634 static void Generate_MathClz32(CodeStubAssembler* assembler); | 636 static void Generate_MathClz32(CodeStubAssembler* assembler); |
| 635 // ES6 section 20.2.2.16 Math.floor ( x ) | 637 // ES6 section 20.2.2.16 Math.floor ( x ) |
| 636 static void Generate_MathFloor(CodeStubAssembler* assembler); | 638 static void Generate_MathFloor(CodeStubAssembler* assembler); |
| 637 // ES6 section 20.2.2.20 Math.log ( x ) | 639 // ES6 section 20.2.2.20 Math.log ( x ) |
| 638 static void Generate_MathLog(CodeStubAssembler* assembler); | 640 static void Generate_MathLog(CodeStubAssembler* assembler); |
| 639 // ES6 section 20.2.2.21 Math.log ( x ) | 641 // ES6 section 20.2.2.21 Math.log ( x ) |
| 640 static void Generate_MathLog1p(CodeStubAssembler* assembler); | 642 static void Generate_MathLog1p(CodeStubAssembler* assembler); |
| 643 |
| 644 static void Generate_MathLog2(CodeStubAssembler* assembler); |
| 645 static void Generate_MathLog10(CodeStubAssembler* assembler); |
| 646 |
| 641 enum class MathMaxMinKind { kMax, kMin }; | 647 enum class MathMaxMinKind { kMax, kMin }; |
| 642 static void Generate_MathMaxMin(MacroAssembler* masm, MathMaxMinKind kind); | 648 static void Generate_MathMaxMin(MacroAssembler* masm, MathMaxMinKind kind); |
| 643 // ES6 section 20.2.2.24 Math.max ( value1, value2 , ...values ) | 649 // ES6 section 20.2.2.24 Math.max ( value1, value2 , ...values ) |
| 644 static void Generate_MathMax(MacroAssembler* masm) { | 650 static void Generate_MathMax(MacroAssembler* masm) { |
| 645 Generate_MathMaxMin(masm, MathMaxMinKind::kMax); | 651 Generate_MathMaxMin(masm, MathMaxMinKind::kMax); |
| 646 } | 652 } |
| 647 // ES6 section 20.2.2.25 Math.min ( value1, value2 , ...values ) | 653 // ES6 section 20.2.2.25 Math.min ( value1, value2 , ...values ) |
| 648 static void Generate_MathMin(MacroAssembler* masm) { | 654 static void Generate_MathMin(MacroAssembler* masm) { |
| 649 Generate_MathMaxMin(masm, MathMaxMinKind::kMin); | 655 Generate_MathMaxMin(masm, MathMaxMinKind::kMin); |
| 650 } | 656 } |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 736 friend class BuiltinFunctionTable; | 742 friend class BuiltinFunctionTable; |
| 737 friend class Isolate; | 743 friend class Isolate; |
| 738 | 744 |
| 739 DISALLOW_COPY_AND_ASSIGN(Builtins); | 745 DISALLOW_COPY_AND_ASSIGN(Builtins); |
| 740 }; | 746 }; |
| 741 | 747 |
| 742 } // namespace internal | 748 } // namespace internal |
| 743 } // namespace v8 | 749 } // namespace v8 |
| 744 | 750 |
| 745 #endif // V8_BUILTINS_H_ | 751 #endif // V8_BUILTINS_H_ |
| OLD | NEW |