Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(965)

Side by Side Diff: src/builtins.h

Issue 1617503003: [Atomics] code stubs for atomic operations (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: smi dcheck Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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(AtomicsLoadCheck, 3)
314 315
315 // Define list of builtin handlers implemented in assembly. 316 // Define list of builtin handlers implemented in assembly.
316 #define BUILTIN_LIST_H(V) \ 317 #define BUILTIN_LIST_H(V) \
317 V(LoadIC_Slow, LOAD_IC) \ 318 V(LoadIC_Slow, LOAD_IC) \
318 V(KeyedLoadIC_Slow, KEYED_LOAD_IC) \ 319 V(KeyedLoadIC_Slow, KEYED_LOAD_IC) \
319 V(StoreIC_Slow, STORE_IC) \ 320 V(StoreIC_Slow, STORE_IC) \
320 V(KeyedStoreIC_Slow, KEYED_STORE_IC) \ 321 V(KeyedStoreIC_Slow, KEYED_STORE_IC) \
321 V(LoadIC_Normal, LOAD_IC) \ 322 V(LoadIC_Normal, LOAD_IC) \
322 V(StoreIC_Normal, STORE_IC) 323 V(StoreIC_Normal, STORE_IC)
323 324
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
654 MacroAssembler* masm); \ 655 MacroAssembler* masm); \
655 static void Generate_Make##C##CodeYoungAgainOddMarking( \ 656 static void Generate_Make##C##CodeYoungAgainOddMarking( \
656 MacroAssembler* masm); 657 MacroAssembler* masm);
657 CODE_AGE_LIST(DECLARE_CODE_AGE_BUILTIN_GENERATOR) 658 CODE_AGE_LIST(DECLARE_CODE_AGE_BUILTIN_GENERATOR)
658 #undef DECLARE_CODE_AGE_BUILTIN_GENERATOR 659 #undef DECLARE_CODE_AGE_BUILTIN_GENERATOR
659 660
660 static void Generate_MarkCodeAsToBeExecutedOnce(MacroAssembler* masm); 661 static void Generate_MarkCodeAsToBeExecutedOnce(MacroAssembler* masm);
661 static void Generate_MarkCodeAsExecutedOnce(MacroAssembler* masm); 662 static void Generate_MarkCodeAsExecutedOnce(MacroAssembler* masm);
662 static void Generate_MarkCodeAsExecutedTwice(MacroAssembler* masm); 663 static void Generate_MarkCodeAsExecutedTwice(MacroAssembler* masm);
663 664
665 static void Generate_AtomicsLoadCheck(compiler::CodeStubAssembler* assembler);
666
664 static void InitBuiltinFunctionTable(); 667 static void InitBuiltinFunctionTable();
665 668
666 bool initialized_; 669 bool initialized_;
667 670
668 friend class BuiltinFunctionTable; 671 friend class BuiltinFunctionTable;
669 friend class Isolate; 672 friend class Isolate;
670 673
671 DISALLOW_COPY_AND_ASSIGN(Builtins); 674 DISALLOW_COPY_AND_ASSIGN(Builtins);
672 }; 675 };
673 676
674 } // namespace internal 677 } // namespace internal
675 } // namespace v8 678 } // namespace v8
676 679
677 #endif // V8_BUILTINS_H_ 680 #endif // V8_BUILTINS_H_
OLDNEW
« src/arm64/code-stubs-arm64.cc ('K') | « src/bootstrapper.cc ('k') | src/builtins.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698