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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 #define BUILTIN_LIST_T(V) \ | 306 #define BUILTIN_LIST_T(V) \ |
307 V(GeneratorPrototypeNext, 2) \ | 307 V(GeneratorPrototypeNext, 2) \ |
308 V(GeneratorPrototypeReturn, 2) \ | 308 V(GeneratorPrototypeReturn, 2) \ |
309 V(GeneratorPrototypeThrow, 2) \ | 309 V(GeneratorPrototypeThrow, 2) \ |
310 V(MathCeil, 2) \ | 310 V(MathCeil, 2) \ |
311 V(MathClz32, 2) \ | 311 V(MathClz32, 2) \ |
312 V(MathFloor, 2) \ | 312 V(MathFloor, 2) \ |
313 V(MathRound, 2) \ | 313 V(MathRound, 2) \ |
314 V(MathSqrt, 2) \ | 314 V(MathSqrt, 2) \ |
315 V(MathTrunc, 2) \ | 315 V(MathTrunc, 2) \ |
316 V(ObjectHasOwnProperty, 2) | 316 V(ObjectHasOwnProperty, 2) \ |
| 317 V(StringPrototypeCharAt, 2) \ |
| 318 V(StringPrototypeCharCodeAt, 2) |
317 | 319 |
318 // Define list of builtin handlers implemented in assembly. | 320 // Define list of builtin handlers implemented in assembly. |
319 #define BUILTIN_LIST_H(V) \ | 321 #define BUILTIN_LIST_H(V) \ |
320 V(LoadIC_Slow, LOAD_IC) \ | 322 V(LoadIC_Slow, LOAD_IC) \ |
321 V(KeyedLoadIC_Slow, KEYED_LOAD_IC) \ | 323 V(KeyedLoadIC_Slow, KEYED_LOAD_IC) \ |
322 V(StoreIC_Slow, STORE_IC) \ | 324 V(StoreIC_Slow, STORE_IC) \ |
323 V(KeyedStoreIC_Slow, KEYED_STORE_IC) \ | 325 V(KeyedStoreIC_Slow, KEYED_STORE_IC) \ |
324 V(LoadIC_Normal, LOAD_IC) \ | 326 V(LoadIC_Normal, LOAD_IC) \ |
325 V(StoreIC_Normal, STORE_IC) | 327 V(StoreIC_Normal, STORE_IC) |
326 | 328 |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
622 static void Generate_GeneratorPrototypeReturn( | 624 static void Generate_GeneratorPrototypeReturn( |
623 compiler::CodeStubAssembler* assembler); | 625 compiler::CodeStubAssembler* assembler); |
624 // ES6 section 25.3.1.4 Generator.prototype.throw ( exception ) | 626 // ES6 section 25.3.1.4 Generator.prototype.throw ( exception ) |
625 static void Generate_GeneratorPrototypeThrow( | 627 static void Generate_GeneratorPrototypeThrow( |
626 compiler::CodeStubAssembler* assembler); | 628 compiler::CodeStubAssembler* assembler); |
627 | 629 |
628 // ES6 section 19.1.3.2 Object.prototype.hasOwnProperty | 630 // ES6 section 19.1.3.2 Object.prototype.hasOwnProperty |
629 static void Generate_ObjectHasOwnProperty( | 631 static void Generate_ObjectHasOwnProperty( |
630 compiler::CodeStubAssembler* assembler); | 632 compiler::CodeStubAssembler* assembler); |
631 | 633 |
| 634 // ES6 section 21.1.3.1 String.prototype.charAt ( pos ) |
| 635 static void Generate_StringPrototypeCharAt( |
| 636 compiler::CodeStubAssembler* assembler); |
| 637 // ES6 section 21.1.3.2 String.prototype.charCodeAt ( pos ) |
| 638 static void Generate_StringPrototypeCharCodeAt( |
| 639 compiler::CodeStubAssembler* assembler); |
| 640 |
632 static void Generate_StringConstructor(MacroAssembler* masm); | 641 static void Generate_StringConstructor(MacroAssembler* masm); |
633 static void Generate_StringConstructor_ConstructStub(MacroAssembler* masm); | 642 static void Generate_StringConstructor_ConstructStub(MacroAssembler* masm); |
634 static void Generate_OnStackReplacement(MacroAssembler* masm); | 643 static void Generate_OnStackReplacement(MacroAssembler* masm); |
635 static void Generate_InterruptCheck(MacroAssembler* masm); | 644 static void Generate_InterruptCheck(MacroAssembler* masm); |
636 static void Generate_StackCheck(MacroAssembler* masm); | 645 static void Generate_StackCheck(MacroAssembler* masm); |
637 | 646 |
638 static void Generate_InterpreterEntryTrampoline(MacroAssembler* masm); | 647 static void Generate_InterpreterEntryTrampoline(MacroAssembler* masm); |
639 static void Generate_InterpreterExitTrampoline(MacroAssembler* masm); | 648 static void Generate_InterpreterExitTrampoline(MacroAssembler* masm); |
640 static void Generate_InterpreterPushArgsAndCall(MacroAssembler* masm) { | 649 static void Generate_InterpreterPushArgsAndCall(MacroAssembler* masm) { |
641 return Generate_InterpreterPushArgsAndCallImpl(masm, | 650 return Generate_InterpreterPushArgsAndCallImpl(masm, |
(...skipping 29 matching lines...) Expand all Loading... |
671 friend class BuiltinFunctionTable; | 680 friend class BuiltinFunctionTable; |
672 friend class Isolate; | 681 friend class Isolate; |
673 | 682 |
674 DISALLOW_COPY_AND_ASSIGN(Builtins); | 683 DISALLOW_COPY_AND_ASSIGN(Builtins); |
675 }; | 684 }; |
676 | 685 |
677 } // namespace internal | 686 } // namespace internal |
678 } // namespace v8 | 687 } // namespace v8 |
679 | 688 |
680 #endif // V8_BUILTINS_H_ | 689 #endif // V8_BUILTINS_H_ |
OLD | NEW |