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

Side by Side Diff: src/ia32/lithium-codegen-ia32.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/heap/heap-inl.h ('k') | src/lithium.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 #if V8_TARGET_ARCH_IA32 7 #if V8_TARGET_ARCH_IA32
8 8
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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 GenerateDeferredCode() && 68 GenerateDeferredCode() &&
69 GenerateJumpTable() && 69 GenerateJumpTable() &&
70 GenerateSafepointTable(); 70 GenerateSafepointTable();
71 } 71 }
72 72
73 73
74 void LCodeGen::FinishCode(Handle<Code> code) { 74 void LCodeGen::FinishCode(Handle<Code> code) {
75 DCHECK(is_done()); 75 DCHECK(is_done());
76 code->set_stack_slots(GetStackSlotCount()); 76 code->set_stack_slots(GetStackSlotCount());
77 code->set_safepoint_table_offset(safepoints_.GetCodeOffset()); 77 code->set_safepoint_table_offset(safepoints_.GetCodeOffset());
78 if (code->is_optimized_code()) RegisterWeakObjectsInOptimizedCode(code);
79 PopulateDeoptimizationData(code); 78 PopulateDeoptimizationData(code);
80 if (!info()->IsStub()) { 79 if (!info()->IsStub()) {
81 Deoptimizer::EnsureRelocSpaceForLazyDeoptimization(code); 80 Deoptimizer::EnsureRelocSpaceForLazyDeoptimization(code);
82 } 81 }
83 } 82 }
84 83
85 84
86 #ifdef _MSC_VER 85 #ifdef _MSC_VER
87 void LCodeGen::MakeSureStackPagesMapped(int offset) { 86 void LCodeGen::MakeSureStackPagesMapped(int offset) {
88 const int kPageSize = 4 * KB; 87 const int kPageSize = 4 * KB;
(...skipping 5661 matching lines...) Expand 10 before | Expand all | Expand 10 after
5750 CallRuntime(Runtime::kPushBlockContext, 2, instr); 5749 CallRuntime(Runtime::kPushBlockContext, 2, instr);
5751 RecordSafepoint(Safepoint::kNoLazyDeopt); 5750 RecordSafepoint(Safepoint::kNoLazyDeopt);
5752 } 5751 }
5753 5752
5754 5753
5755 #undef __ 5754 #undef __
5756 5755
5757 } } // namespace v8::internal 5756 } } // namespace v8::internal
5758 5757
5759 #endif // V8_TARGET_ARCH_IA32 5758 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/heap/heap-inl.h ('k') | src/lithium.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698