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

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

Issue 595513002: Further improve deopt reason output. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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/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 1137 matching lines...) Expand 10 before | Expand all | Expand 10 after
1148 __ bind(&done); 1148 __ bind(&done);
1149 } 1149 }
1150 1150
1151 Deoptimizer::Reason reason(instr->hydrogen_value()->position().raw(), 1151 Deoptimizer::Reason reason(instr->hydrogen_value()->position().raw(),
1152 instr->Mnemonic(), detail); 1152 instr->Mnemonic(), detail);
1153 DCHECK(info()->IsStub() || frame_is_built_); 1153 DCHECK(info()->IsStub() || frame_is_built_);
1154 if (cc == no_condition && frame_is_built_) { 1154 if (cc == no_condition && frame_is_built_) {
1155 DeoptComment(reason); 1155 DeoptComment(reason);
1156 __ call(entry, RelocInfo::RUNTIME_ENTRY); 1156 __ call(entry, RelocInfo::RUNTIME_ENTRY);
1157 } else { 1157 } else {
1158 Deoptimizer::JumpTableEntry table_entry(entry, reason, bailout_type,
1159 !frame_is_built_);
1158 // We often have several deopts to the same entry, reuse the last 1160 // We often have several deopts to the same entry, reuse the last
1159 // jump entry if this is the case. 1161 // jump entry if this is the case.
1160 if (jump_table_.is_empty() || 1162 if (jump_table_.is_empty() ||
1161 jump_table_.last().address != entry || 1163 !table_entry.IsEquivalentTo(jump_table_.last())) {
1162 jump_table_.last().needs_frame != !frame_is_built_ ||
1163 jump_table_.last().bailout_type != bailout_type) {
1164 Deoptimizer::JumpTableEntry table_entry(entry, reason, bailout_type,
1165 !frame_is_built_);
1166 jump_table_.Add(table_entry, zone()); 1164 jump_table_.Add(table_entry, zone());
1167 } 1165 }
1168 if (cc == no_condition) { 1166 if (cc == no_condition) {
1169 __ jmp(&jump_table_.last().label); 1167 __ jmp(&jump_table_.last().label);
1170 } else { 1168 } else {
1171 __ j(cc, &jump_table_.last().label); 1169 __ j(cc, &jump_table_.last().label);
1172 } 1170 }
1173 } 1171 }
1174 } 1172 }
1175 1173
(...skipping 5067 matching lines...) Expand 10 before | Expand all | Expand 10 after
6243 CallRuntime(Runtime::kPushBlockContext, 2, instr); 6241 CallRuntime(Runtime::kPushBlockContext, 2, instr);
6244 RecordSafepoint(Safepoint::kNoLazyDeopt); 6242 RecordSafepoint(Safepoint::kNoLazyDeopt);
6245 } 6243 }
6246 6244
6247 6245
6248 #undef __ 6246 #undef __
6249 6247
6250 } } // namespace v8::internal 6248 } } // namespace v8::internal
6251 6249
6252 #endif // V8_TARGET_ARCH_X87 6250 #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