OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |