OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |