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

Side by Side Diff: src/builtins/s390/builtins-s390.cc

Issue 2529173002: [Heap] Remove concept of MarkingParity. (Closed)
Patch Set: Rebase Created 4 years 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
« no previous file with comments | « src/builtins/ppc/builtins-ppc.cc ('k') | src/builtins/x64/builtins-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #if V8_TARGET_ARCH_S390 5 #if V8_TARGET_ARCH_S390
6 6
7 #include "src/codegen.h" 7 #include "src/codegen.h"
8 #include "src/debug/debug.h" 8 #include "src/debug/debug.h"
9 #include "src/deoptimizer.h" 9 #include "src/deoptimizer.h"
10 #include "src/full-codegen/full-codegen.h" 10 #include "src/full-codegen/full-codegen.h"
(...skipping 1566 matching lines...) Expand 10 before | Expand all | Expand 10 after
1577 __ MultiPush(r14.bit() | r2.bit() | r3.bit() | r5.bit() | fp.bit()); 1577 __ MultiPush(r14.bit() | r2.bit() | r3.bit() | r5.bit() | fp.bit());
1578 __ PrepareCallCFunction(2, 0, r4); 1578 __ PrepareCallCFunction(2, 0, r4);
1579 __ mov(r3, Operand(ExternalReference::isolate_address(masm->isolate()))); 1579 __ mov(r3, Operand(ExternalReference::isolate_address(masm->isolate())));
1580 __ CallCFunction( 1580 __ CallCFunction(
1581 ExternalReference::get_make_code_young_function(masm->isolate()), 2); 1581 ExternalReference::get_make_code_young_function(masm->isolate()), 2);
1582 __ MultiPop(r14.bit() | r2.bit() | r3.bit() | r5.bit() | fp.bit()); 1582 __ MultiPop(r14.bit() | r2.bit() | r3.bit() | r5.bit() | fp.bit());
1583 __ LoadRR(ip, r2); 1583 __ LoadRR(ip, r2);
1584 __ Jump(ip); 1584 __ Jump(ip);
1585 } 1585 }
1586 1586
1587 #define DEFINE_CODE_AGE_BUILTIN_GENERATOR(C) \ 1587 #define DEFINE_CODE_AGE_BUILTIN_GENERATOR(C) \
1588 void Builtins::Generate_Make##C##CodeYoungAgainEvenMarking( \ 1588 void Builtins::Generate_Make##C##CodeYoungAgain(MacroAssembler* masm) { \
1589 MacroAssembler* masm) { \ 1589 GenerateMakeCodeYoungAgainCommon(masm); \
1590 GenerateMakeCodeYoungAgainCommon(masm); \
1591 } \
1592 void Builtins::Generate_Make##C##CodeYoungAgainOddMarking( \
1593 MacroAssembler* masm) { \
1594 GenerateMakeCodeYoungAgainCommon(masm); \
1595 } 1590 }
1596 CODE_AGE_LIST(DEFINE_CODE_AGE_BUILTIN_GENERATOR) 1591 CODE_AGE_LIST(DEFINE_CODE_AGE_BUILTIN_GENERATOR)
1597 #undef DEFINE_CODE_AGE_BUILTIN_GENERATOR 1592 #undef DEFINE_CODE_AGE_BUILTIN_GENERATOR
1598 1593
1599 void Builtins::Generate_MarkCodeAsExecutedOnce(MacroAssembler* masm) { 1594 void Builtins::Generate_MarkCodeAsExecutedOnce(MacroAssembler* masm) {
1600 // For now, we are relying on the fact that make_code_young doesn't do any 1595 // For now, we are relying on the fact that make_code_young doesn't do any
1601 // garbage collection which allows us to save/restore the registers without 1596 // garbage collection which allows us to save/restore the registers without
1602 // worrying about which of them contain pointers. We also don't build an 1597 // worrying about which of them contain pointers. We also don't build an
1603 // internal frame to make the code faster, since we shouldn't have to do stack 1598 // internal frame to make the code faster, since we shouldn't have to do stack
1604 // crawls in MakeCodeYoung. This seems a bit fragile. 1599 // crawls in MakeCodeYoung. This seems a bit fragile.
(...skipping 1359 matching lines...) Expand 10 before | Expand all | Expand 10 after
2964 __ bkpt(0); 2959 __ bkpt(0);
2965 } 2960 }
2966 } 2961 }
2967 2962
2968 #undef __ 2963 #undef __
2969 2964
2970 } // namespace internal 2965 } // namespace internal
2971 } // namespace v8 2966 } // namespace v8
2972 2967
2973 #endif // V8_TARGET_ARCH_S390 2968 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « src/builtins/ppc/builtins-ppc.cc ('k') | src/builtins/x64/builtins-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698