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

Side by Side Diff: src/ia32/lithium-codegen-ia32.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: Addressed comments, added mips 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 | « src/flag-definitions.h ('k') | src/mips/lithium-codegen-mips.cc » ('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 986 matching lines...) Expand 10 before | Expand all | Expand 10 after
997 // we can have inputs or outputs of the current instruction on the stack, 997 // we can have inputs or outputs of the current instruction on the stack,
998 // thus we need to flush them here from the physical stack to leave it in a 998 // thus we need to flush them here from the physical stack to leave it in a
999 // consistent state. 999 // consistent state.
1000 if (x87_stack_depth_ > 0) { 1000 if (x87_stack_depth_ > 0) {
1001 Label done; 1001 Label done;
1002 if (cc != no_condition) __ j(NegateCondition(cc), &done, Label::kNear); 1002 if (cc != no_condition) __ j(NegateCondition(cc), &done, Label::kNear);
1003 EmitFlushX87ForDeopt(); 1003 EmitFlushX87ForDeopt();
1004 __ bind(&done); 1004 __ bind(&done);
1005 } 1005 }
1006 1006
1007 if (FLAG_trap_on_deopt && info()->IsOptimizing()) { 1007 if (info()->ShouldTrapOnDeopt()) {
1008 Label done; 1008 Label done;
1009 if (cc != no_condition) __ j(NegateCondition(cc), &done, Label::kNear); 1009 if (cc != no_condition) __ j(NegateCondition(cc), &done, Label::kNear);
1010 __ int3(); 1010 __ int3();
1011 __ bind(&done); 1011 __ bind(&done);
1012 } 1012 }
1013 1013
1014 ASSERT(info()->IsStub() || frame_is_built_); 1014 ASSERT(info()->IsStub() || frame_is_built_);
1015 if (cc == no_condition && frame_is_built_) { 1015 if (cc == no_condition && frame_is_built_) {
1016 __ call(entry, RelocInfo::RUNTIME_ENTRY); 1016 __ call(entry, RelocInfo::RUNTIME_ENTRY);
1017 } else { 1017 } else {
(...skipping 5532 matching lines...) Expand 10 before | Expand all | Expand 10 after
6550 FixedArray::kHeaderSize - kPointerSize)); 6550 FixedArray::kHeaderSize - kPointerSize));
6551 __ bind(&done); 6551 __ bind(&done);
6552 } 6552 }
6553 6553
6554 6554
6555 #undef __ 6555 #undef __
6556 6556
6557 } } // namespace v8::internal 6557 } } // namespace v8::internal
6558 6558
6559 #endif // V8_TARGET_ARCH_IA32 6559 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698