| 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 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 /* Generator and Async */ \ | 354 /* Generator and Async */ \ |
| 355 CPP(GeneratorFunctionConstructor) \ | 355 CPP(GeneratorFunctionConstructor) \ |
| 356 /* ES6 section 25.3.1.2 Generator.prototype.next ( value ) */ \ | 356 /* ES6 section 25.3.1.2 Generator.prototype.next ( value ) */ \ |
| 357 TFJ(GeneratorPrototypeNext, 2) \ | 357 TFJ(GeneratorPrototypeNext, 2) \ |
| 358 /* ES6 section 25.3.1.3 Generator.prototype.return ( value ) */ \ | 358 /* ES6 section 25.3.1.3 Generator.prototype.return ( value ) */ \ |
| 359 TFJ(GeneratorPrototypeReturn, 2) \ | 359 TFJ(GeneratorPrototypeReturn, 2) \ |
| 360 /* ES6 section 25.3.1.4 Generator.prototype.throw ( exception ) */ \ | 360 /* ES6 section 25.3.1.4 Generator.prototype.throw ( exception ) */ \ |
| 361 TFJ(GeneratorPrototypeThrow, 2) \ | 361 TFJ(GeneratorPrototypeThrow, 2) \ |
| 362 CPP(AsyncFunctionConstructor) \ | 362 CPP(AsyncFunctionConstructor) \ |
| 363 \ | 363 \ |
| 364 /* Encode and decode */ \ | 364 /* Global object */ \ |
| 365 CPP(GlobalDecodeURI) \ | 365 CPP(GlobalDecodeURI) \ |
| 366 CPP(GlobalDecodeURIComponent) \ | 366 CPP(GlobalDecodeURIComponent) \ |
| 367 CPP(GlobalEncodeURI) \ | 367 CPP(GlobalEncodeURI) \ |
| 368 CPP(GlobalEncodeURIComponent) \ | 368 CPP(GlobalEncodeURIComponent) \ |
| 369 CPP(GlobalEscape) \ | 369 CPP(GlobalEscape) \ |
| 370 CPP(GlobalUnescape) \ | 370 CPP(GlobalUnescape) \ |
| 371 \ | |
| 372 /* Eval */ \ | |
| 373 CPP(GlobalEval) \ | 371 CPP(GlobalEval) \ |
| 372 /* ES6 section 18.2.2 isFinite ( number ) */ \ |
| 373 TFJ(GlobalIsFinite, 2) \ |
| 374 /* ES6 section 18.2.3 isNaN ( number ) */ \ |
| 375 TFJ(GlobalIsNaN, 2) \ |
| 374 \ | 376 \ |
| 375 /* JSON */ \ | 377 /* JSON */ \ |
| 376 CPP(JsonParse) \ | 378 CPP(JsonParse) \ |
| 377 CPP(JsonStringify) \ | 379 CPP(JsonStringify) \ |
| 378 \ | 380 \ |
| 379 /* Math */ \ | 381 /* Math */ \ |
| 380 /* ES6 section 20.2.2.1 Math.abs ( x ) */ \ | 382 /* ES6 section 20.2.2.1 Math.abs ( x ) */ \ |
| 381 TFJ(MathAbs, 2) \ | 383 TFJ(MathAbs, 2) \ |
| 382 /* ES6 section 20.2.2.2 Math.acos ( x ) */ \ | 384 /* ES6 section 20.2.2.2 Math.acos ( x ) */ \ |
| 383 TFJ(MathAcos, 2) \ | 385 TFJ(MathAcos, 2) \ |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 /* ES6 section 20.2.2.34 Math.tanh ( x ) */ \ | 446 /* ES6 section 20.2.2.34 Math.tanh ( x ) */ \ |
| 445 TFJ(MathSqrt, 2) \ | 447 TFJ(MathSqrt, 2) \ |
| 446 /* ES6 section 20.2.2.35 Math.trunc ( x ) */ \ | 448 /* ES6 section 20.2.2.35 Math.trunc ( x ) */ \ |
| 447 TFJ(MathTrunc, 2) \ | 449 TFJ(MathTrunc, 2) \ |
| 448 \ | 450 \ |
| 449 /* Number */ \ | 451 /* Number */ \ |
| 450 /* ES6 section 20.1.1.1 Number ( [ value ] ) for the [[Call]] case */ \ | 452 /* ES6 section 20.1.1.1 Number ( [ value ] ) for the [[Call]] case */ \ |
| 451 ASM(NumberConstructor) \ | 453 ASM(NumberConstructor) \ |
| 452 /* ES6 section 20.1.1.1 Number ( [ value ] ) for the [[Construct]] case */ \ | 454 /* ES6 section 20.1.1.1 Number ( [ value ] ) for the [[Construct]] case */ \ |
| 453 ASM(NumberConstructor_ConstructStub) \ | 455 ASM(NumberConstructor_ConstructStub) \ |
| 456 /* ES6 section 20.1.2.2 Number.isFinite ( number ) */ \ |
| 457 TFJ(NumberIsFinite, 2) \ |
| 458 /* ES6 section 20.1.2.3 Number.isInteger ( number ) */ \ |
| 459 TFJ(NumberIsInteger, 2) \ |
| 460 /* ES6 section 20.1.2.4 Number.isNaN ( number ) */ \ |
| 461 TFJ(NumberIsNaN, 2) \ |
| 462 /* ES6 section 20.1.2.5 Number.isSafeInteger ( number ) */ \ |
| 463 TFJ(NumberIsSafeInteger, 2) \ |
| 454 CPP(NumberPrototypeToExponential) \ | 464 CPP(NumberPrototypeToExponential) \ |
| 455 CPP(NumberPrototypeToFixed) \ | 465 CPP(NumberPrototypeToFixed) \ |
| 456 CPP(NumberPrototypeToLocaleString) \ | 466 CPP(NumberPrototypeToLocaleString) \ |
| 457 CPP(NumberPrototypeToPrecision) \ | 467 CPP(NumberPrototypeToPrecision) \ |
| 458 CPP(NumberPrototypeToString) \ | 468 CPP(NumberPrototypeToString) \ |
| 459 /* ES6 section 20.1.3.7 Number.prototype.valueOf ( ) */ \ | 469 /* ES6 section 20.1.3.7 Number.prototype.valueOf ( ) */ \ |
| 460 TFJ(NumberPrototypeValueOf, 1) \ | 470 TFJ(NumberPrototypeValueOf, 1) \ |
| 461 \ | 471 \ |
| 462 /* Object */ \ | 472 /* Object */ \ |
| 463 CPP(ObjectAssign) \ | 473 CPP(ObjectAssign) \ |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 691 | 701 |
| 692 friend class Isolate; | 702 friend class Isolate; |
| 693 | 703 |
| 694 DISALLOW_COPY_AND_ASSIGN(Builtins); | 704 DISALLOW_COPY_AND_ASSIGN(Builtins); |
| 695 }; | 705 }; |
| 696 | 706 |
| 697 } // namespace internal | 707 } // namespace internal |
| 698 } // namespace v8 | 708 } // namespace v8 |
| 699 | 709 |
| 700 #endif // V8_BUILTINS_BUILTINS_H_ | 710 #endif // V8_BUILTINS_BUILTINS_H_ |
| OLD | NEW |