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

Side by Side Diff: src/mips/lithium-codegen-mips.cc

Issue 866723002: Treat pointers in optimized code as strong before all weak dependencies are registered. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix check Created 5 years, 11 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
« no previous file with comments | « src/lithium-codegen.cc ('k') | src/mips64/lithium-codegen-mips64.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 2012 the V8 project authors. All rights reserved.7 1 // Copyright 2012 the V8 project authors. All rights reserved.7
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 78
79 return GeneratePrologue() && GenerateBody() && GenerateDeferredCode() && 79 return GeneratePrologue() && GenerateBody() && GenerateDeferredCode() &&
80 GenerateJumpTable() && GenerateSafepointTable(); 80 GenerateJumpTable() && GenerateSafepointTable();
81 } 81 }
82 82
83 83
84 void LCodeGen::FinishCode(Handle<Code> code) { 84 void LCodeGen::FinishCode(Handle<Code> code) {
85 DCHECK(is_done()); 85 DCHECK(is_done());
86 code->set_stack_slots(GetStackSlotCount()); 86 code->set_stack_slots(GetStackSlotCount());
87 code->set_safepoint_table_offset(safepoints_.GetCodeOffset()); 87 code->set_safepoint_table_offset(safepoints_.GetCodeOffset());
88 if (code->is_optimized_code()) RegisterWeakObjectsInOptimizedCode(code);
89 PopulateDeoptimizationData(code); 88 PopulateDeoptimizationData(code);
90 } 89 }
91 90
92 91
93 void LCodeGen::SaveCallerDoubles() { 92 void LCodeGen::SaveCallerDoubles() {
94 DCHECK(info()->saves_caller_doubles()); 93 DCHECK(info()->saves_caller_doubles());
95 DCHECK(NeedsEagerFrame()); 94 DCHECK(NeedsEagerFrame());
96 Comment(";;; Save clobbered callee double registers"); 95 Comment(";;; Save clobbered callee double registers");
97 int count = 0; 96 int count = 0;
98 BitVector* doubles = chunk()->allocated_double_registers(); 97 BitVector* doubles = chunk()->allocated_double_registers();
(...skipping 5869 matching lines...) Expand 10 before | Expand all | Expand 10 after
5968 __ li(at, scope_info); 5967 __ li(at, scope_info);
5969 __ Push(at, ToRegister(instr->function())); 5968 __ Push(at, ToRegister(instr->function()));
5970 CallRuntime(Runtime::kPushBlockContext, 2, instr); 5969 CallRuntime(Runtime::kPushBlockContext, 2, instr);
5971 RecordSafepoint(Safepoint::kNoLazyDeopt); 5970 RecordSafepoint(Safepoint::kNoLazyDeopt);
5972 } 5971 }
5973 5972
5974 5973
5975 #undef __ 5974 #undef __
5976 5975
5977 } } // namespace v8::internal 5976 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/lithium-codegen.cc ('k') | src/mips64/lithium-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698