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 #if V8_TARGET_ARCH_IA32 | 5 #if V8_TARGET_ARCH_IA32 |
6 | 6 |
7 #include "src/crankshaft/ia32/lithium-codegen-ia32.h" | 7 #include "src/crankshaft/ia32/lithium-codegen-ia32.h" |
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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 GenerateJumpTable() && | 62 GenerateJumpTable() && |
63 GenerateSafepointTable(); | 63 GenerateSafepointTable(); |
64 } | 64 } |
65 | 65 |
66 | 66 |
67 void LCodeGen::FinishCode(Handle<Code> code) { | 67 void LCodeGen::FinishCode(Handle<Code> code) { |
68 DCHECK(is_done()); | 68 DCHECK(is_done()); |
69 code->set_stack_slots(GetTotalFrameSlotCount()); | 69 code->set_stack_slots(GetTotalFrameSlotCount()); |
70 code->set_safepoint_table_offset(safepoints_.GetCodeOffset()); | 70 code->set_safepoint_table_offset(safepoints_.GetCodeOffset()); |
71 PopulateDeoptimizationData(code); | 71 PopulateDeoptimizationData(code); |
72 Handle<ByteArray> source_positions = | |
73 source_position_table_builder_.ToSourcePositionTable(); | |
74 code->set_source_position_table(*source_positions); | |
75 if (info()->ShouldEnsureSpaceForLazyDeopt()) { | 72 if (info()->ShouldEnsureSpaceForLazyDeopt()) { |
76 Deoptimizer::EnsureRelocSpaceForLazyDeoptimization(code); | 73 Deoptimizer::EnsureRelocSpaceForLazyDeoptimization(code); |
77 } | 74 } |
78 } | 75 } |
79 | 76 |
80 | 77 |
81 #ifdef _MSC_VER | 78 #ifdef _MSC_VER |
82 void LCodeGen::MakeSureStackPagesMapped(int offset) { | 79 void LCodeGen::MakeSureStackPagesMapped(int offset) { |
83 const int kPageSize = 4 * KB; | 80 const int kPageSize = 4 * KB; |
84 for (offset -= kPageSize; offset > 0; offset -= kPageSize) { | 81 for (offset -= kPageSize; offset > 0; offset -= kPageSize) { |
(...skipping 5199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5284 __ bind(deferred->exit()); | 5281 __ bind(deferred->exit()); |
5285 __ bind(&done); | 5282 __ bind(&done); |
5286 } | 5283 } |
5287 | 5284 |
5288 #undef __ | 5285 #undef __ |
5289 | 5286 |
5290 } // namespace internal | 5287 } // namespace internal |
5291 } // namespace v8 | 5288 } // namespace v8 |
5292 | 5289 |
5293 #endif // V8_TARGET_ARCH_IA32 | 5290 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |