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 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 CPP(GlobalEncodeURI) \ | 369 CPP(GlobalEncodeURI) \ |
370 CPP(GlobalEncodeURIComponent) \ | 370 CPP(GlobalEncodeURIComponent) \ |
371 CPP(GlobalEscape) \ | 371 CPP(GlobalEscape) \ |
372 CPP(GlobalUnescape) \ | 372 CPP(GlobalUnescape) \ |
373 CPP(GlobalEval) \ | 373 CPP(GlobalEval) \ |
374 /* ES6 section 18.2.2 isFinite ( number ) */ \ | 374 /* ES6 section 18.2.2 isFinite ( number ) */ \ |
375 TFJ(GlobalIsFinite, 2) \ | 375 TFJ(GlobalIsFinite, 2) \ |
376 /* ES6 section 18.2.3 isNaN ( number ) */ \ | 376 /* ES6 section 18.2.3 isNaN ( number ) */ \ |
377 TFJ(GlobalIsNaN, 2) \ | 377 TFJ(GlobalIsNaN, 2) \ |
378 \ | 378 \ |
| 379 /* ES6 #sec-%iteratorprototype%-@@iterator */ \ |
| 380 TFJ(IteratorPrototypeIterator, 1) \ |
| 381 \ |
379 /* JSON */ \ | 382 /* JSON */ \ |
380 CPP(JsonParse) \ | 383 CPP(JsonParse) \ |
381 CPP(JsonStringify) \ | 384 CPP(JsonStringify) \ |
382 \ | 385 \ |
383 /* Math */ \ | 386 /* Math */ \ |
384 /* ES6 section 20.2.2.1 Math.abs ( x ) */ \ | 387 /* ES6 section 20.2.2.1 Math.abs ( x ) */ \ |
385 TFJ(MathAbs, 2) \ | 388 TFJ(MathAbs, 2) \ |
386 /* ES6 section 20.2.2.2 Math.acos ( x ) */ \ | 389 /* ES6 section 20.2.2.2 Math.acos ( x ) */ \ |
387 TFJ(MathAcos, 2) \ | 390 TFJ(MathAcos, 2) \ |
388 /* ES6 section 20.2.2.3 Math.acosh ( x ) */ \ | 391 /* ES6 section 20.2.2.3 Math.acosh ( x ) */ \ |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
539 CPP(StringPrototypeLocaleCompare) \ | 542 CPP(StringPrototypeLocaleCompare) \ |
540 /* ES6 section 21.1.3.12 String.prototype.normalize ( [form] ) */ \ | 543 /* ES6 section 21.1.3.12 String.prototype.normalize ( [form] ) */ \ |
541 CPP(StringPrototypeNormalize) \ | 544 CPP(StringPrototypeNormalize) \ |
542 /* ES6 section 21.1.3.25 String.prototype.toString () */ \ | 545 /* ES6 section 21.1.3.25 String.prototype.toString () */ \ |
543 TFJ(StringPrototypeToString, 1) \ | 546 TFJ(StringPrototypeToString, 1) \ |
544 CPP(StringPrototypeTrim) \ | 547 CPP(StringPrototypeTrim) \ |
545 CPP(StringPrototypeTrimLeft) \ | 548 CPP(StringPrototypeTrimLeft) \ |
546 CPP(StringPrototypeTrimRight) \ | 549 CPP(StringPrototypeTrimRight) \ |
547 /* ES6 section 21.1.3.28 String.prototype.valueOf () */ \ | 550 /* ES6 section 21.1.3.28 String.prototype.valueOf () */ \ |
548 TFJ(StringPrototypeValueOf, 1) \ | 551 TFJ(StringPrototypeValueOf, 1) \ |
| 552 /* ES6 #sec-string.prototype-@@iterator */ \ |
| 553 CPP(StringPrototypeIterator) \ |
| 554 \ |
| 555 /* StringIterator */ \ |
| 556 CPP(StringIteratorPrototypeNext) \ |
549 \ | 557 \ |
550 /* Symbol */ \ | 558 /* Symbol */ \ |
551 CPP(SymbolConstructor) \ | 559 CPP(SymbolConstructor) \ |
552 CPP(SymbolConstructor_ConstructStub) \ | 560 CPP(SymbolConstructor_ConstructStub) \ |
553 /* ES6 section 19.4.3.4 Symbol.prototype [ @@toPrimitive ] ( hint ) */ \ | 561 /* ES6 section 19.4.3.4 Symbol.prototype [ @@toPrimitive ] ( hint ) */ \ |
554 TFJ(SymbolPrototypeToPrimitive, 2) \ | 562 TFJ(SymbolPrototypeToPrimitive, 2) \ |
555 /* ES6 section 19.4.3.2 Symbol.prototype.toString ( ) */ \ | 563 /* ES6 section 19.4.3.2 Symbol.prototype.toString ( ) */ \ |
556 TFJ(SymbolPrototypeToString, 1) \ | 564 TFJ(SymbolPrototypeToString, 1) \ |
557 /* ES6 section 19.4.3.3 Symbol.prototype.valueOf ( ) */ \ | 565 /* ES6 section 19.4.3.3 Symbol.prototype.valueOf ( ) */ \ |
558 TFJ(SymbolPrototypeValueOf, 1) \ | 566 TFJ(SymbolPrototypeValueOf, 1) \ |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
707 | 715 |
708 friend class Isolate; | 716 friend class Isolate; |
709 | 717 |
710 DISALLOW_COPY_AND_ASSIGN(Builtins); | 718 DISALLOW_COPY_AND_ASSIGN(Builtins); |
711 }; | 719 }; |
712 | 720 |
713 } // namespace internal | 721 } // namespace internal |
714 } // namespace v8 | 722 } // namespace v8 |
715 | 723 |
716 #endif // V8_BUILTINS_BUILTINS_H_ | 724 #endif // V8_BUILTINS_BUILTINS_H_ |
OLD | NEW |