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