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

Side by Side Diff: src/mips64/lithium-codegen-mips64.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/mips/lithium-codegen-mips.cc ('k') | src/objects.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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/hydrogen-osr.h" 9 #include "src/hydrogen-osr.h"
10 #include "src/ic/ic.h" 10 #include "src/ic/ic.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 return GeneratePrologue() && GenerateBody() && GenerateDeferredCode() && 54 return GeneratePrologue() && GenerateBody() && GenerateDeferredCode() &&
55 GenerateJumpTable() && GenerateSafepointTable(); 55 GenerateJumpTable() && GenerateSafepointTable();
56 } 56 }
57 57
58 58
59 void LCodeGen::FinishCode(Handle<Code> code) { 59 void LCodeGen::FinishCode(Handle<Code> code) {
60 DCHECK(is_done()); 60 DCHECK(is_done());
61 code->set_stack_slots(GetStackSlotCount()); 61 code->set_stack_slots(GetStackSlotCount());
62 code->set_safepoint_table_offset(safepoints_.GetCodeOffset()); 62 code->set_safepoint_table_offset(safepoints_.GetCodeOffset());
63 if (code->is_optimized_code()) RegisterWeakObjectsInOptimizedCode(code);
64 PopulateDeoptimizationData(code); 63 PopulateDeoptimizationData(code);
65 } 64 }
66 65
67 66
68 void LCodeGen::SaveCallerDoubles() { 67 void LCodeGen::SaveCallerDoubles() {
69 DCHECK(info()->saves_caller_doubles()); 68 DCHECK(info()->saves_caller_doubles());
70 DCHECK(NeedsEagerFrame()); 69 DCHECK(NeedsEagerFrame());
71 Comment(";;; Save clobbered callee double registers"); 70 Comment(";;; Save clobbered callee double registers");
72 int count = 0; 71 int count = 0;
73 BitVector* doubles = chunk()->allocated_double_registers(); 72 BitVector* doubles = chunk()->allocated_double_registers();
(...skipping 5910 matching lines...) Expand 10 before | Expand all | Expand 10 after
5984 __ li(at, scope_info); 5983 __ li(at, scope_info);
5985 __ Push(at, ToRegister(instr->function())); 5984 __ Push(at, ToRegister(instr->function()));
5986 CallRuntime(Runtime::kPushBlockContext, 2, instr); 5985 CallRuntime(Runtime::kPushBlockContext, 2, instr);
5987 RecordSafepoint(Safepoint::kNoLazyDeopt); 5986 RecordSafepoint(Safepoint::kNoLazyDeopt);
5988 } 5987 }
5989 5988
5990 5989
5991 #undef __ 5990 #undef __
5992 5991
5993 } } // namespace v8::internal 5992 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698