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