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 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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) \ | 317 V(StringPrototypeCharAt, 2) \ |
318 V(StringPrototypeCharCodeAt, 2) \ | 318 V(StringPrototypeCharCodeAt, 2) \ |
319 V(AtomicsLoad, 3) | 319 V(AtomicsLoadCheck, 3) |
320 | 320 |
321 // Define list of builtin handlers implemented in assembly. | 321 // Define list of builtin handlers implemented in assembly. |
322 #define BUILTIN_LIST_H(V) \ | 322 #define BUILTIN_LIST_H(V) \ |
323 V(LoadIC_Slow, LOAD_IC) \ | 323 V(LoadIC_Slow, LOAD_IC) \ |
324 V(KeyedLoadIC_Slow, KEYED_LOAD_IC) \ | 324 V(KeyedLoadIC_Slow, KEYED_LOAD_IC) \ |
325 V(StoreIC_Slow, STORE_IC) \ | 325 V(StoreIC_Slow, STORE_IC) \ |
326 V(KeyedStoreIC_Slow, KEYED_STORE_IC) \ | 326 V(KeyedStoreIC_Slow, KEYED_STORE_IC) \ |
327 V(LoadIC_Normal, LOAD_IC) \ | 327 V(LoadIC_Normal, LOAD_IC) \ |
328 V(StoreIC_Normal, STORE_IC) | 328 V(StoreIC_Normal, STORE_IC) |
329 | 329 |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
667 MacroAssembler* masm); \ | 667 MacroAssembler* masm); \ |
668 static void Generate_Make##C##CodeYoungAgainOddMarking( \ | 668 static void Generate_Make##C##CodeYoungAgainOddMarking( \ |
669 MacroAssembler* masm); | 669 MacroAssembler* masm); |
670 CODE_AGE_LIST(DECLARE_CODE_AGE_BUILTIN_GENERATOR) | 670 CODE_AGE_LIST(DECLARE_CODE_AGE_BUILTIN_GENERATOR) |
671 #undef DECLARE_CODE_AGE_BUILTIN_GENERATOR | 671 #undef DECLARE_CODE_AGE_BUILTIN_GENERATOR |
672 | 672 |
673 static void Generate_MarkCodeAsToBeExecutedOnce(MacroAssembler* masm); | 673 static void Generate_MarkCodeAsToBeExecutedOnce(MacroAssembler* masm); |
674 static void Generate_MarkCodeAsExecutedOnce(MacroAssembler* masm); | 674 static void Generate_MarkCodeAsExecutedOnce(MacroAssembler* masm); |
675 static void Generate_MarkCodeAsExecutedTwice(MacroAssembler* masm); | 675 static void Generate_MarkCodeAsExecutedTwice(MacroAssembler* masm); |
676 | 676 |
677 static void Generate_AtomicsLoad(compiler::CodeStubAssembler* assembler); | 677 static void Generate_AtomicsLoadCheck(compiler::CodeStubAssembler* assembler); |
678 | 678 |
679 static void InitBuiltinFunctionTable(); | 679 static void InitBuiltinFunctionTable(); |
680 | 680 |
681 bool initialized_; | 681 bool initialized_; |
682 | 682 |
683 friend class BuiltinFunctionTable; | 683 friend class BuiltinFunctionTable; |
684 friend class Isolate; | 684 friend class Isolate; |
685 | 685 |
686 DISALLOW_COPY_AND_ASSIGN(Builtins); | 686 DISALLOW_COPY_AND_ASSIGN(Builtins); |
687 }; | 687 }; |
688 | 688 |
689 } // namespace internal | 689 } // namespace internal |
690 } // namespace v8 | 690 } // namespace v8 |
691 | 691 |
692 #endif // V8_BUILTINS_H_ | 692 #endif // V8_BUILTINS_H_ |
OLD | NEW |