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

Side by Side Diff: src/builtins/x87/builtins-x87.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/x64/builtins-x64.cc ('k') | src/heap/mark-compact.h » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_X87 5 #if V8_TARGET_ARCH_X87
6 6
7 #include "src/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/codegen.h" 8 #include "src/codegen.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 1235 matching lines...) Expand 10 before | Expand all | Expand 10 after
1246 __ mov(Operand(esp, 1 * kPointerSize), 1246 __ mov(Operand(esp, 1 * kPointerSize),
1247 Immediate(ExternalReference::isolate_address(masm->isolate()))); 1247 Immediate(ExternalReference::isolate_address(masm->isolate())));
1248 __ mov(Operand(esp, 0), eax); 1248 __ mov(Operand(esp, 0), eax);
1249 __ CallCFunction( 1249 __ CallCFunction(
1250 ExternalReference::get_make_code_young_function(masm->isolate()), 2); 1250 ExternalReference::get_make_code_young_function(masm->isolate()), 2);
1251 } 1251 }
1252 __ popad(); 1252 __ popad();
1253 __ ret(0); 1253 __ ret(0);
1254 } 1254 }
1255 1255
1256 #define DEFINE_CODE_AGE_BUILTIN_GENERATOR(C) \ 1256 #define DEFINE_CODE_AGE_BUILTIN_GENERATOR(C) \
1257 void Builtins::Generate_Make##C##CodeYoungAgainEvenMarking( \ 1257 void Builtins::Generate_Make##C##CodeYoungAgain(MacroAssembler* masm) { \
1258 MacroAssembler* masm) { \ 1258 GenerateMakeCodeYoungAgainCommon(masm); \
1259 GenerateMakeCodeYoungAgainCommon(masm); \
1260 } \
1261 void Builtins::Generate_Make##C##CodeYoungAgainOddMarking( \
1262 MacroAssembler* masm) { \
1263 GenerateMakeCodeYoungAgainCommon(masm); \
1264 } 1259 }
1265 CODE_AGE_LIST(DEFINE_CODE_AGE_BUILTIN_GENERATOR) 1260 CODE_AGE_LIST(DEFINE_CODE_AGE_BUILTIN_GENERATOR)
1266 #undef DEFINE_CODE_AGE_BUILTIN_GENERATOR 1261 #undef DEFINE_CODE_AGE_BUILTIN_GENERATOR
1267 1262
1268 void Builtins::Generate_MarkCodeAsExecutedOnce(MacroAssembler* masm) { 1263 void Builtins::Generate_MarkCodeAsExecutedOnce(MacroAssembler* masm) {
1269 // For now, as in GenerateMakeCodeYoungAgainCommon, we are relying on the fact 1264 // For now, as in GenerateMakeCodeYoungAgainCommon, we are relying on the fact
1270 // that make_code_young doesn't do any garbage collection which allows us to 1265 // that make_code_young doesn't do any garbage collection which allows us to
1271 // save/restore the registers without worrying about which of them contain 1266 // save/restore the registers without worrying about which of them contain
1272 // pointers. 1267 // pointers.
1273 __ pushad(); 1268 __ pushad();
(...skipping 1869 matching lines...) Expand 10 before | Expand all | Expand 10 after
3143 3138
3144 void Builtins::Generate_InterpreterOnStackReplacement(MacroAssembler* masm) { 3139 void Builtins::Generate_InterpreterOnStackReplacement(MacroAssembler* masm) {
3145 Generate_OnStackReplacementHelper(masm, true); 3140 Generate_OnStackReplacementHelper(masm, true);
3146 } 3141 }
3147 3142
3148 #undef __ 3143 #undef __
3149 } // namespace internal 3144 } // namespace internal
3150 } // namespace v8 3145 } // namespace v8
3151 3146
3152 #endif // V8_TARGET_ARCH_X87 3147 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/builtins/x64/builtins-x64.cc ('k') | src/heap/mark-compact.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698