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

Side by Side Diff: src/x87/lithium-codegen-x87.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/x64/lithium-codegen-x64.cc ('k') | no next file » | 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_X87 7 #if V8_TARGET_ARCH_X87
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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 GenerateDeferredCode() && 69 GenerateDeferredCode() &&
70 GenerateJumpTable() && 70 GenerateJumpTable() &&
71 GenerateSafepointTable(); 71 GenerateSafepointTable();
72 } 72 }
73 73
74 74
75 void LCodeGen::FinishCode(Handle<Code> code) { 75 void LCodeGen::FinishCode(Handle<Code> code) {
76 DCHECK(is_done()); 76 DCHECK(is_done());
77 code->set_stack_slots(GetStackSlotCount()); 77 code->set_stack_slots(GetStackSlotCount());
78 code->set_safepoint_table_offset(safepoints_.GetCodeOffset()); 78 code->set_safepoint_table_offset(safepoints_.GetCodeOffset());
79 if (code->is_optimized_code()) RegisterWeakObjectsInOptimizedCode(code);
80 PopulateDeoptimizationData(code); 79 PopulateDeoptimizationData(code);
81 if (!info()->IsStub()) { 80 if (!info()->IsStub()) {
82 Deoptimizer::EnsureRelocSpaceForLazyDeoptimization(code); 81 Deoptimizer::EnsureRelocSpaceForLazyDeoptimization(code);
83 } 82 }
84 } 83 }
85 84
86 85
87 #ifdef _MSC_VER 86 #ifdef _MSC_VER
88 void LCodeGen::MakeSureStackPagesMapped(int offset) { 87 void LCodeGen::MakeSureStackPagesMapped(int offset) {
89 const int kPageSize = 4 * KB; 88 const int kPageSize = 4 * KB;
(...skipping 6240 matching lines...) Expand 10 before | Expand all | Expand 10 after
6330 CallRuntime(Runtime::kPushBlockContext, 2, instr); 6329 CallRuntime(Runtime::kPushBlockContext, 2, instr);
6331 RecordSafepoint(Safepoint::kNoLazyDeopt); 6330 RecordSafepoint(Safepoint::kNoLazyDeopt);
6332 } 6331 }
6333 6332
6334 6333
6335 #undef __ 6334 #undef __
6336 6335
6337 } } // namespace v8::internal 6336 } } // namespace v8::internal
6338 6337
6339 #endif // V8_TARGET_ARCH_X87 6338 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698