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 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 V(MathCeil, 2) \ | 315 V(MathCeil, 2) \ |
316 V(MathClz32, 2) \ | 316 V(MathClz32, 2) \ |
317 V(MathFloor, 2) \ | 317 V(MathFloor, 2) \ |
318 V(MathRound, 2) \ | 318 V(MathRound, 2) \ |
319 V(MathSqrt, 2) \ | 319 V(MathSqrt, 2) \ |
320 V(MathTrunc, 2) \ | 320 V(MathTrunc, 2) \ |
321 V(ObjectHasOwnProperty, 2) \ | 321 V(ObjectHasOwnProperty, 2) \ |
322 V(ArrayIsArray, 2) \ | 322 V(ArrayIsArray, 2) \ |
323 V(StringPrototypeCharAt, 2) \ | 323 V(StringPrototypeCharAt, 2) \ |
324 V(StringPrototypeCharCodeAt, 2) \ | 324 V(StringPrototypeCharCodeAt, 2) \ |
325 V(AtomicsLoad, 3) | 325 V(AtomicsLoad, 3) \ |
| 326 V(AtomicsStore, 4) |
326 | 327 |
327 // Define list of builtin handlers implemented in assembly. | 328 // Define list of builtin handlers implemented in assembly. |
328 #define BUILTIN_LIST_H(V) \ | 329 #define BUILTIN_LIST_H(V) \ |
329 V(LoadIC_Slow, LOAD_IC) \ | 330 V(LoadIC_Slow, LOAD_IC) \ |
330 V(KeyedLoadIC_Slow, KEYED_LOAD_IC) \ | 331 V(KeyedLoadIC_Slow, KEYED_LOAD_IC) \ |
331 V(StoreIC_Slow, STORE_IC) \ | 332 V(StoreIC_Slow, STORE_IC) \ |
332 V(KeyedStoreIC_Slow, KEYED_STORE_IC) \ | 333 V(KeyedStoreIC_Slow, KEYED_STORE_IC) \ |
333 V(LoadIC_Normal, LOAD_IC) \ | 334 V(LoadIC_Normal, LOAD_IC) \ |
334 V(StoreIC_Normal, STORE_IC) | 335 V(StoreIC_Normal, STORE_IC) |
335 | 336 |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
674 static void Generate_Make##C##CodeYoungAgainOddMarking( \ | 675 static void Generate_Make##C##CodeYoungAgainOddMarking( \ |
675 MacroAssembler* masm); | 676 MacroAssembler* masm); |
676 CODE_AGE_LIST(DECLARE_CODE_AGE_BUILTIN_GENERATOR) | 677 CODE_AGE_LIST(DECLARE_CODE_AGE_BUILTIN_GENERATOR) |
677 #undef DECLARE_CODE_AGE_BUILTIN_GENERATOR | 678 #undef DECLARE_CODE_AGE_BUILTIN_GENERATOR |
678 | 679 |
679 static void Generate_MarkCodeAsToBeExecutedOnce(MacroAssembler* masm); | 680 static void Generate_MarkCodeAsToBeExecutedOnce(MacroAssembler* masm); |
680 static void Generate_MarkCodeAsExecutedOnce(MacroAssembler* masm); | 681 static void Generate_MarkCodeAsExecutedOnce(MacroAssembler* masm); |
681 static void Generate_MarkCodeAsExecutedTwice(MacroAssembler* masm); | 682 static void Generate_MarkCodeAsExecutedTwice(MacroAssembler* masm); |
682 | 683 |
683 static void Generate_AtomicsLoad(CodeStubAssembler* assembler); | 684 static void Generate_AtomicsLoad(CodeStubAssembler* assembler); |
| 685 static void Generate_AtomicsStore(CodeStubAssembler* assembler); |
684 | 686 |
685 static void InitBuiltinFunctionTable(); | 687 static void InitBuiltinFunctionTable(); |
686 | 688 |
687 bool initialized_; | 689 bool initialized_; |
688 | 690 |
689 friend class BuiltinFunctionTable; | 691 friend class BuiltinFunctionTable; |
690 friend class Isolate; | 692 friend class Isolate; |
691 | 693 |
692 DISALLOW_COPY_AND_ASSIGN(Builtins); | 694 DISALLOW_COPY_AND_ASSIGN(Builtins); |
693 }; | 695 }; |
694 | 696 |
695 } // namespace internal | 697 } // namespace internal |
696 } // namespace v8 | 698 } // namespace v8 |
697 | 699 |
698 #endif // V8_BUILTINS_H_ | 700 #endif // V8_BUILTINS_H_ |
OLD | NEW |