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

Side by Side Diff: src/builtins/ppc/builtins-ppc.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/mips64/builtins-mips64.cc ('k') | src/builtins/s390/builtins-s390.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_PPC 5 #if V8_TARGET_ARCH_PPC
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 1559 matching lines...) Expand 10 before | Expand all | Expand 10 after
1570 __ PrepareCallCFunction(2, 0, r5); 1570 __ PrepareCallCFunction(2, 0, r5);
1571 __ mov(r4, Operand(ExternalReference::isolate_address(masm->isolate()))); 1571 __ mov(r4, Operand(ExternalReference::isolate_address(masm->isolate())));
1572 __ CallCFunction( 1572 __ CallCFunction(
1573 ExternalReference::get_make_code_young_function(masm->isolate()), 2); 1573 ExternalReference::get_make_code_young_function(masm->isolate()), 2);
1574 __ MultiPop(r0.bit() | r3.bit() | r4.bit() | r6.bit() | fp.bit()); 1574 __ MultiPop(r0.bit() | r3.bit() | r4.bit() | r6.bit() | fp.bit());
1575 __ mtlr(r0); 1575 __ mtlr(r0);
1576 __ mr(ip, r3); 1576 __ mr(ip, r3);
1577 __ Jump(ip); 1577 __ Jump(ip);
1578 } 1578 }
1579 1579
1580 #define DEFINE_CODE_AGE_BUILTIN_GENERATOR(C) \ 1580 #define DEFINE_CODE_AGE_BUILTIN_GENERATOR(C) \
1581 void Builtins::Generate_Make##C##CodeYoungAgainEvenMarking( \ 1581 void Builtins::Generate_Make##C##CodeYoungAgain(MacroAssembler* masm) { \
1582 MacroAssembler* masm) { \ 1582 GenerateMakeCodeYoungAgainCommon(masm); \
1583 GenerateMakeCodeYoungAgainCommon(masm); \
1584 } \
1585 void Builtins::Generate_Make##C##CodeYoungAgainOddMarking( \
1586 MacroAssembler* masm) { \
1587 GenerateMakeCodeYoungAgainCommon(masm); \
1588 } 1583 }
1589 CODE_AGE_LIST(DEFINE_CODE_AGE_BUILTIN_GENERATOR) 1584 CODE_AGE_LIST(DEFINE_CODE_AGE_BUILTIN_GENERATOR)
1590 #undef DEFINE_CODE_AGE_BUILTIN_GENERATOR 1585 #undef DEFINE_CODE_AGE_BUILTIN_GENERATOR
1591 1586
1592 void Builtins::Generate_MarkCodeAsExecutedOnce(MacroAssembler* masm) { 1587 void Builtins::Generate_MarkCodeAsExecutedOnce(MacroAssembler* masm) {
1593 // For now, we are relying on the fact that make_code_young doesn't do any 1588 // For now, we are relying on the fact that make_code_young doesn't do any
1594 // garbage collection which allows us to save/restore the registers without 1589 // garbage collection which allows us to save/restore the registers without
1595 // worrying about which of them contain pointers. We also don't build an 1590 // worrying about which of them contain pointers. We also don't build an
1596 // internal frame to make the code faster, since we shouldn't have to do stack 1591 // internal frame to make the code faster, since we shouldn't have to do stack
1597 // crawls in MakeCodeYoung. This seems a bit fragile. 1592 // crawls in MakeCodeYoung. This seems a bit fragile.
(...skipping 1353 matching lines...) Expand 10 before | Expand all | Expand 10 after
2951 __ CallRuntime(Runtime::kThrowStackOverflow); 2946 __ CallRuntime(Runtime::kThrowStackOverflow);
2952 __ bkpt(0); 2947 __ bkpt(0);
2953 } 2948 }
2954 } 2949 }
2955 2950
2956 #undef __ 2951 #undef __
2957 } // namespace internal 2952 } // namespace internal
2958 } // namespace v8 2953 } // namespace v8
2959 2954
2960 #endif // V8_TARGET_ARCH_PPC 2955 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/builtins/mips64/builtins-mips64.cc ('k') | src/builtins/s390/builtins-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698