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

Side by Side Diff: src/x64/lithium-codegen-x64.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/mips/lithium-codegen-mips.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 669 matching lines...) Expand 10 before | Expand all | Expand 10 after
680 ASSERT(info()->IsOptimizing() || info()->IsStub()); 680 ASSERT(info()->IsOptimizing() || info()->IsStub());
681 Address entry = 681 Address entry =
682 Deoptimizer::GetDeoptimizationEntry(isolate(), id, bailout_type); 682 Deoptimizer::GetDeoptimizationEntry(isolate(), id, bailout_type);
683 if (entry == NULL) { 683 if (entry == NULL) {
684 Abort(kBailoutWasNotPrepared); 684 Abort(kBailoutWasNotPrepared);
685 return; 685 return;
686 } 686 }
687 687
688 ASSERT(FLAG_deopt_every_n_times == 0); // Not yet implemented on x64. 688 ASSERT(FLAG_deopt_every_n_times == 0); // Not yet implemented on x64.
689 689
690 if (FLAG_trap_on_deopt && info()->IsOptimizing()) { 690 if (info()->ShouldTrapOnDeopt()) {
691 Label done; 691 Label done;
692 if (cc != no_condition) { 692 if (cc != no_condition) {
693 __ j(NegateCondition(cc), &done, Label::kNear); 693 __ j(NegateCondition(cc), &done, Label::kNear);
694 } 694 }
695 __ int3(); 695 __ int3();
696 __ bind(&done); 696 __ bind(&done);
697 } 697 }
698 698
699 ASSERT(info()->IsStub() || frame_is_built_); 699 ASSERT(info()->IsStub() || frame_is_built_);
700 if (cc == no_condition && frame_is_built_) { 700 if (cc == no_condition && frame_is_built_) {
(...skipping 4916 matching lines...) Expand 10 before | Expand all | Expand 10 after
5617 FixedArray::kHeaderSize - kPointerSize)); 5617 FixedArray::kHeaderSize - kPointerSize));
5618 __ bind(&done); 5618 __ bind(&done);
5619 } 5619 }
5620 5620
5621 5621
5622 #undef __ 5622 #undef __
5623 5623
5624 } } // namespace v8::internal 5624 } } // namespace v8::internal
5625 5625
5626 #endif // V8_TARGET_ARCH_X64 5626 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698