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

Side by Side Diff: src/arm/lithium-codegen-arm.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 | « no previous file | src/arm64/lithium-codegen-arm64.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. 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/arm/lithium-codegen-arm.h" 7 #include "src/arm/lithium-codegen-arm.h"
8 #include "src/arm/lithium-gap-resolver-arm.h" 8 #include "src/arm/lithium-gap-resolver-arm.h"
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 return GeneratePrologue() && GenerateBody() && GenerateDeferredCode() && 55 return GeneratePrologue() && GenerateBody() && GenerateDeferredCode() &&
56 GenerateJumpTable() && GenerateSafepointTable(); 56 GenerateJumpTable() && GenerateSafepointTable();
57 } 57 }
58 58
59 59
60 void LCodeGen::FinishCode(Handle<Code> code) { 60 void LCodeGen::FinishCode(Handle<Code> code) {
61 DCHECK(is_done()); 61 DCHECK(is_done());
62 code->set_stack_slots(GetStackSlotCount()); 62 code->set_stack_slots(GetStackSlotCount());
63 code->set_safepoint_table_offset(safepoints_.GetCodeOffset()); 63 code->set_safepoint_table_offset(safepoints_.GetCodeOffset());
64 if (code->is_optimized_code()) RegisterWeakObjectsInOptimizedCode(code);
65 PopulateDeoptimizationData(code); 64 PopulateDeoptimizationData(code);
66 } 65 }
67 66
68 67
69 void LCodeGen::SaveCallerDoubles() { 68 void LCodeGen::SaveCallerDoubles() {
70 DCHECK(info()->saves_caller_doubles()); 69 DCHECK(info()->saves_caller_doubles());
71 DCHECK(NeedsEagerFrame()); 70 DCHECK(NeedsEagerFrame());
72 Comment(";;; Save clobbered callee double registers"); 71 Comment(";;; Save clobbered callee double registers");
73 int count = 0; 72 int count = 0;
74 BitVector* doubles = chunk()->allocated_double_registers(); 73 BitVector* doubles = chunk()->allocated_double_registers();
(...skipping 5881 matching lines...) Expand 10 before | Expand all | Expand 10 after
5956 __ Push(scope_info); 5955 __ Push(scope_info);
5957 __ push(ToRegister(instr->function())); 5956 __ push(ToRegister(instr->function()));
5958 CallRuntime(Runtime::kPushBlockContext, 2, instr); 5957 CallRuntime(Runtime::kPushBlockContext, 2, instr);
5959 RecordSafepoint(Safepoint::kNoLazyDeopt); 5958 RecordSafepoint(Safepoint::kNoLazyDeopt);
5960 } 5959 }
5961 5960
5962 5961
5963 #undef __ 5962 #undef __
5964 5963
5965 } } // namespace v8::internal 5964 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/arm64/lithium-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698