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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
542 CPP(StringPrototypeLocaleCompare) \ | 545 CPP(StringPrototypeLocaleCompare) \ |
543 /* ES6 section 21.1.3.12 String.prototype.normalize ( [form] ) */ \ | 546 /* ES6 section 21.1.3.12 String.prototype.normalize ( [form] ) */ \ |
544 CPP(StringPrototypeNormalize) \ | 547 CPP(StringPrototypeNormalize) \ |
545 /* ES6 section 21.1.3.25 String.prototype.toString () */ \ | 548 /* ES6 section 21.1.3.25 String.prototype.toString () */ \ |
546 TFJ(StringPrototypeToString, 1) \ | 549 TFJ(StringPrototypeToString, 1) \ |
547 CPP(StringPrototypeTrim) \ | 550 CPP(StringPrototypeTrim) \ |
548 CPP(StringPrototypeTrimLeft) \ | 551 CPP(StringPrototypeTrimLeft) \ |
549 CPP(StringPrototypeTrimRight) \ | 552 CPP(StringPrototypeTrimRight) \ |
550 /* ES6 section 21.1.3.28 String.prototype.valueOf () */ \ | 553 /* ES6 section 21.1.3.28 String.prototype.valueOf () */ \ |
551 TFJ(StringPrototypeValueOf, 1) \ | 554 TFJ(StringPrototypeValueOf, 1) \ |
| 555 /* ES6 #sec-string.prototype-@@iterator */ \ |
| 556 CPP(StringPrototypeIterator) \ |
| 557 \ |
| 558 /* StringIterator */ \ |
| 559 CPP(StringIteratorPrototypeNext) \ |
552 \ | 560 \ |
553 /* Symbol */ \ | 561 /* Symbol */ \ |
554 CPP(SymbolConstructor) \ | 562 CPP(SymbolConstructor) \ |
555 CPP(SymbolConstructor_ConstructStub) \ | 563 CPP(SymbolConstructor_ConstructStub) \ |
556 /* ES6 section 19.4.3.4 Symbol.prototype [ @@toPrimitive ] ( hint ) */ \ | 564 /* ES6 section 19.4.3.4 Symbol.prototype [ @@toPrimitive ] ( hint ) */ \ |
557 TFJ(SymbolPrototypeToPrimitive, 2) \ | 565 TFJ(SymbolPrototypeToPrimitive, 2) \ |
558 /* ES6 section 19.4.3.2 Symbol.prototype.toString ( ) */ \ | 566 /* ES6 section 19.4.3.2 Symbol.prototype.toString ( ) */ \ |
559 TFJ(SymbolPrototypeToString, 1) \ | 567 TFJ(SymbolPrototypeToString, 1) \ |
560 /* ES6 section 19.4.3.3 Symbol.prototype.valueOf ( ) */ \ | 568 /* ES6 section 19.4.3.3 Symbol.prototype.valueOf ( ) */ \ |
561 TFJ(SymbolPrototypeValueOf, 1) \ | 569 TFJ(SymbolPrototypeValueOf, 1) \ |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
710 | 718 |
711 friend class Isolate; | 719 friend class Isolate; |
712 | 720 |
713 DISALLOW_COPY_AND_ASSIGN(Builtins); | 721 DISALLOW_COPY_AND_ASSIGN(Builtins); |
714 }; | 722 }; |
715 | 723 |
716 } // namespace internal | 724 } // namespace internal |
717 } // namespace v8 | 725 } // namespace v8 |
718 | 726 |
719 #endif // V8_BUILTINS_BUILTINS_H_ | 727 #endif // V8_BUILTINS_BUILTINS_H_ |
OLD | NEW |