| 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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 V(MathClz32, 2) \ | 312 V(MathClz32, 2) \ |
| 313 V(MathCos, 2) \ | 313 V(MathCos, 2) \ |
| 314 V(MathExp, 2) \ | 314 V(MathExp, 2) \ |
| 315 V(MathFloor, 2) \ | 315 V(MathFloor, 2) \ |
| 316 V(MathLog, 2) \ | 316 V(MathLog, 2) \ |
| 317 V(MathLog1p, 2) \ | 317 V(MathLog1p, 2) \ |
| 318 V(MathLog2, 2) \ | 318 V(MathLog2, 2) \ |
| 319 V(MathLog10, 2) \ | 319 V(MathLog10, 2) \ |
| 320 V(MathRound, 2) \ | 320 V(MathRound, 2) \ |
| 321 V(MathSin, 2) \ | 321 V(MathSin, 2) \ |
| 322 V(MathTan, 2) \ |
| 322 V(MathSqrt, 2) \ | 323 V(MathSqrt, 2) \ |
| 323 V(MathTrunc, 2) \ | 324 V(MathTrunc, 2) \ |
| 324 V(ObjectHasOwnProperty, 2) \ | 325 V(ObjectHasOwnProperty, 2) \ |
| 325 V(ArrayIsArray, 2) \ | 326 V(ArrayIsArray, 2) \ |
| 326 V(StringFromCharCode, 2) \ | 327 V(StringFromCharCode, 2) \ |
| 327 V(StringPrototypeCharAt, 2) \ | 328 V(StringPrototypeCharAt, 2) \ |
| 328 V(StringPrototypeCharCodeAt, 2) \ | 329 V(StringPrototypeCharCodeAt, 2) \ |
| 329 V(TypedArrayPrototypeByteLength, 1) \ | 330 V(TypedArrayPrototypeByteLength, 1) \ |
| 330 V(TypedArrayPrototypeByteOffset, 1) \ | 331 V(TypedArrayPrototypeByteOffset, 1) \ |
| 331 V(TypedArrayPrototypeLength, 1) \ | 332 V(TypedArrayPrototypeLength, 1) \ |
| (...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 654 // ES6 section 20.2.2.25 Math.min ( value1, value2 , ...values ) | 655 // ES6 section 20.2.2.25 Math.min ( value1, value2 , ...values ) |
| 655 static void Generate_MathMin(MacroAssembler* masm) { | 656 static void Generate_MathMin(MacroAssembler* masm) { |
| 656 Generate_MathMaxMin(masm, MathMaxMinKind::kMin); | 657 Generate_MathMaxMin(masm, MathMaxMinKind::kMin); |
| 657 } | 658 } |
| 658 // ES6 section 20.2.2.28 Math.round ( x ) | 659 // ES6 section 20.2.2.28 Math.round ( x ) |
| 659 static void Generate_MathRound(CodeStubAssembler* assembler); | 660 static void Generate_MathRound(CodeStubAssembler* assembler); |
| 660 // ES6 section 20.2.2.20 Math.sin ( x ) | 661 // ES6 section 20.2.2.20 Math.sin ( x ) |
| 661 static void Generate_MathSin(CodeStubAssembler* assembler); | 662 static void Generate_MathSin(CodeStubAssembler* assembler); |
| 662 // ES6 section 20.2.2.32 Math.sqrt ( x ) | 663 // ES6 section 20.2.2.32 Math.sqrt ( x ) |
| 663 static void Generate_MathSqrt(CodeStubAssembler* assembler); | 664 static void Generate_MathSqrt(CodeStubAssembler* assembler); |
| 665 // ES6 section 20.2.2.33 Math.sin ( x ) |
| 666 static void Generate_MathTan(CodeStubAssembler* assembler); |
| 664 // ES6 section 20.2.2.35 Math.trunc ( x ) | 667 // ES6 section 20.2.2.35 Math.trunc ( x ) |
| 665 static void Generate_MathTrunc(CodeStubAssembler* assembler); | 668 static void Generate_MathTrunc(CodeStubAssembler* assembler); |
| 666 | 669 |
| 667 // ES6 section 20.1.1.1 Number ( [ value ] ) for the [[Call]] case. | 670 // ES6 section 20.1.1.1 Number ( [ value ] ) for the [[Call]] case. |
| 668 static void Generate_NumberConstructor(MacroAssembler* masm); | 671 static void Generate_NumberConstructor(MacroAssembler* masm); |
| 669 // ES6 section 20.1.1.1 Number ( [ value ] ) for the [[Construct]] case. | 672 // ES6 section 20.1.1.1 Number ( [ value ] ) for the [[Construct]] case. |
| 670 static void Generate_NumberConstructor_ConstructStub(MacroAssembler* masm); | 673 static void Generate_NumberConstructor_ConstructStub(MacroAssembler* masm); |
| 671 | 674 |
| 672 // ES6 section 19.2.3.6 Function.prototype [ @@hasInstance ] ( V ) | 675 // ES6 section 19.2.3.6 Function.prototype [ @@hasInstance ] ( V ) |
| 673 static void Generate_FunctionPrototypeHasInstance( | 676 static void Generate_FunctionPrototypeHasInstance( |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 745 friend class BuiltinFunctionTable; | 748 friend class BuiltinFunctionTable; |
| 746 friend class Isolate; | 749 friend class Isolate; |
| 747 | 750 |
| 748 DISALLOW_COPY_AND_ASSIGN(Builtins); | 751 DISALLOW_COPY_AND_ASSIGN(Builtins); |
| 749 }; | 752 }; |
| 750 | 753 |
| 751 } // namespace internal | 754 } // namespace internal |
| 752 } // namespace v8 | 755 } // namespace v8 |
| 753 | 756 |
| 754 #endif // V8_BUILTINS_H_ | 757 #endif // V8_BUILTINS_H_ |
| OLD | NEW |