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

Side by Side Diff: src/x64/lithium-codegen-x64.cc

Issue 6730050: Reimplement the padding of relocation information for lazy deoptimization on ia32. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address comments. Created 9 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « src/x64/deoptimizer-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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 GenerateJumpTable() && 90 GenerateJumpTable() &&
91 GenerateSafepointTable(); 91 GenerateSafepointTable();
92 } 92 }
93 93
94 94
95 void LCodeGen::FinishCode(Handle<Code> code) { 95 void LCodeGen::FinishCode(Handle<Code> code) {
96 ASSERT(is_done()); 96 ASSERT(is_done());
97 code->set_stack_slots(StackSlotCount()); 97 code->set_stack_slots(StackSlotCount());
98 code->set_safepoint_table_offset(safepoints_.GetCodeOffset()); 98 code->set_safepoint_table_offset(safepoints_.GetCodeOffset());
99 PopulateDeoptimizationData(code); 99 PopulateDeoptimizationData(code);
100 Deoptimizer::EnsureRelocSpaceForLazyDeoptimization(code);
100 } 101 }
101 102
102 103
103 void LCodeGen::Abort(const char* format, ...) { 104 void LCodeGen::Abort(const char* format, ...) {
104 if (FLAG_trace_bailout) { 105 if (FLAG_trace_bailout) {
105 SmartPointer<char> name(info()->shared_info()->DebugName()->ToCString()); 106 SmartPointer<char> name(info()->shared_info()->DebugName()->ToCString());
106 PrintF("Aborting LCodeGen in @\"%s\": ", *name); 107 PrintF("Aborting LCodeGen in @\"%s\": ", *name);
107 va_list arguments; 108 va_list arguments;
108 va_start(arguments, format); 109 va_start(arguments, format);
109 OS::VPrint(format, arguments); 110 OS::VPrint(format, arguments);
(...skipping 3832 matching lines...) Expand 10 before | Expand all | Expand 10 after
3942 RegisterEnvironmentForDeoptimization(environment); 3943 RegisterEnvironmentForDeoptimization(environment);
3943 ASSERT(osr_pc_offset_ == -1); 3944 ASSERT(osr_pc_offset_ == -1);
3944 osr_pc_offset_ = masm()->pc_offset(); 3945 osr_pc_offset_ = masm()->pc_offset();
3945 } 3946 }
3946 3947
3947 #undef __ 3948 #undef __
3948 3949
3949 } } // namespace v8::internal 3950 } } // namespace v8::internal
3950 3951
3951 #endif // V8_TARGET_ARCH_X64 3952 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/deoptimizer-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698