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

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

Issue 22593003: Add flag trap_on_stub_deopt. We want to be able to trap on hydrogen stub bailouts. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 4 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 | « no previous file | src/flag-definitions.h » ('j') | 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 // 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 787 matching lines...) Expand 10 before | Expand all | Expand 10 after
798 798
799 ASSERT(FLAG_deopt_every_n_times < 2); // Other values not supported on ARM. 799 ASSERT(FLAG_deopt_every_n_times < 2); // Other values not supported on ARM.
800 if (FLAG_deopt_every_n_times == 1 && 800 if (FLAG_deopt_every_n_times == 1 &&
801 !info()->IsStub() && 801 !info()->IsStub() &&
802 info()->opt_count() == id) { 802 info()->opt_count() == id) {
803 ASSERT(frame_is_built_); 803 ASSERT(frame_is_built_);
804 __ Call(entry, RelocInfo::RUNTIME_ENTRY); 804 __ Call(entry, RelocInfo::RUNTIME_ENTRY);
805 return; 805 return;
806 } 806 }
807 807
808 if (FLAG_trap_on_deopt && info()->IsOptimizing()) { 808 if ((FLAG_trap_on_deopt && info()->IsOptimizing()) ||
809 (FLAG_trap_on_stub_deopt && info()->IsStub())) {
Sven Panne 2013/08/08 06:31:28 To remove the copy-n-paste, please make this a pre
809 __ stop("trap_on_deopt", cc); 810 __ stop("trap_on_deopt", cc);
810 } 811 }
811 812
812 ASSERT(info()->IsStub() || frame_is_built_); 813 ASSERT(info()->IsStub() || frame_is_built_);
813 if (cc == al && frame_is_built_) { 814 if (cc == al && frame_is_built_) {
814 __ Call(entry, RelocInfo::RUNTIME_ENTRY); 815 __ Call(entry, RelocInfo::RUNTIME_ENTRY);
815 } else { 816 } else {
816 // We often have several deopts to the same entry, reuse the last 817 // We often have several deopts to the same entry, reuse the last
817 // jump entry if this is the case. 818 // jump entry if this is the case.
818 if (deopt_jump_table_.is_empty() || 819 if (deopt_jump_table_.is_empty() ||
(...skipping 5037 matching lines...) Expand 10 before | Expand all | Expand 10 after
5856 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); 5857 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index));
5857 __ ldr(result, FieldMemOperand(scratch, 5858 __ ldr(result, FieldMemOperand(scratch,
5858 FixedArray::kHeaderSize - kPointerSize)); 5859 FixedArray::kHeaderSize - kPointerSize));
5859 __ bind(&done); 5860 __ bind(&done);
5860 } 5861 }
5861 5862
5862 5863
5863 #undef __ 5864 #undef __
5864 5865
5865 } } // namespace v8::internal 5866 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698