| 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 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 V(GeneratorPrototypeThrow, 2) \ | 305 V(GeneratorPrototypeThrow, 2) \ |
| 306 V(MathCeil, 2) \ | 306 V(MathCeil, 2) \ |
| 307 V(MathClz32, 2) \ | 307 V(MathClz32, 2) \ |
| 308 V(MathFloor, 2) \ | 308 V(MathFloor, 2) \ |
| 309 V(MathRound, 2) \ | 309 V(MathRound, 2) \ |
| 310 V(MathSqrt, 2) \ | 310 V(MathSqrt, 2) \ |
| 311 V(MathTrunc, 2) \ | 311 V(MathTrunc, 2) \ |
| 312 V(ObjectHasOwnProperty, 2) \ | 312 V(ObjectHasOwnProperty, 2) \ |
| 313 V(StringPrototypeCharAt, 2) \ | 313 V(StringPrototypeCharAt, 2) \ |
| 314 V(StringPrototypeCharCodeAt, 2) \ | 314 V(StringPrototypeCharCodeAt, 2) \ |
| 315 V(AtomicsLoadCheck, 3) | 315 V(AtomicsLoad, 3) |
| 316 | 316 |
| 317 // Define list of builtin handlers implemented in assembly. | 317 // Define list of builtin handlers implemented in assembly. |
| 318 #define BUILTIN_LIST_H(V) \ | 318 #define BUILTIN_LIST_H(V) \ |
| 319 V(LoadIC_Slow, LOAD_IC) \ | 319 V(LoadIC_Slow, LOAD_IC) \ |
| 320 V(KeyedLoadIC_Slow, KEYED_LOAD_IC) \ | 320 V(KeyedLoadIC_Slow, KEYED_LOAD_IC) \ |
| 321 V(StoreIC_Slow, STORE_IC) \ | 321 V(StoreIC_Slow, STORE_IC) \ |
| 322 V(KeyedStoreIC_Slow, KEYED_STORE_IC) \ | 322 V(KeyedStoreIC_Slow, KEYED_STORE_IC) \ |
| 323 V(LoadIC_Normal, LOAD_IC) \ | 323 V(LoadIC_Normal, LOAD_IC) \ |
| 324 V(StoreIC_Normal, STORE_IC) | 324 V(StoreIC_Normal, STORE_IC) |
| 325 | 325 |
| (...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 657 MacroAssembler* masm); \ | 657 MacroAssembler* masm); \ |
| 658 static void Generate_Make##C##CodeYoungAgainOddMarking( \ | 658 static void Generate_Make##C##CodeYoungAgainOddMarking( \ |
| 659 MacroAssembler* masm); | 659 MacroAssembler* masm); |
| 660 CODE_AGE_LIST(DECLARE_CODE_AGE_BUILTIN_GENERATOR) | 660 CODE_AGE_LIST(DECLARE_CODE_AGE_BUILTIN_GENERATOR) |
| 661 #undef DECLARE_CODE_AGE_BUILTIN_GENERATOR | 661 #undef DECLARE_CODE_AGE_BUILTIN_GENERATOR |
| 662 | 662 |
| 663 static void Generate_MarkCodeAsToBeExecutedOnce(MacroAssembler* masm); | 663 static void Generate_MarkCodeAsToBeExecutedOnce(MacroAssembler* masm); |
| 664 static void Generate_MarkCodeAsExecutedOnce(MacroAssembler* masm); | 664 static void Generate_MarkCodeAsExecutedOnce(MacroAssembler* masm); |
| 665 static void Generate_MarkCodeAsExecutedTwice(MacroAssembler* masm); | 665 static void Generate_MarkCodeAsExecutedTwice(MacroAssembler* masm); |
| 666 | 666 |
| 667 static void Generate_AtomicsLoadCheck(CodeStubAssembler* assembler); | 667 static void Generate_AtomicsLoad(CodeStubAssembler* assembler); |
| 668 | 668 |
| 669 static void InitBuiltinFunctionTable(); | 669 static void InitBuiltinFunctionTable(); |
| 670 | 670 |
| 671 bool initialized_; | 671 bool initialized_; |
| 672 | 672 |
| 673 friend class BuiltinFunctionTable; | 673 friend class BuiltinFunctionTable; |
| 674 friend class Isolate; | 674 friend class Isolate; |
| 675 | 675 |
| 676 DISALLOW_COPY_AND_ASSIGN(Builtins); | 676 DISALLOW_COPY_AND_ASSIGN(Builtins); |
| 677 }; | 677 }; |
| 678 | 678 |
| 679 } // namespace internal | 679 } // namespace internal |
| 680 } // namespace v8 | 680 } // namespace v8 |
| 681 | 681 |
| 682 #endif // V8_BUILTINS_H_ | 682 #endif // V8_BUILTINS_H_ |
| OLD | NEW |