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 883 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
894 __ jmp(entry, RelocInfo::RUNTIME_ENTRY); | 894 __ jmp(entry, RelocInfo::RUNTIME_ENTRY); |
895 | 895 |
896 __ bind(&no_deopt); | 896 __ bind(&no_deopt); |
897 __ mov(FieldOperand(ebx, SharedFunctionInfo::kStressDeoptCounterOffset), | 897 __ mov(FieldOperand(ebx, SharedFunctionInfo::kStressDeoptCounterOffset), |
898 eax); | 898 eax); |
899 __ pop(ebx); | 899 __ pop(ebx); |
900 __ pop(eax); | 900 __ pop(eax); |
901 __ popfd(); | 901 __ popfd(); |
902 } | 902 } |
903 | 903 |
904 if (FLAG_trap_on_deopt) { | 904 if (FLAG_trap_on_deopt && info()->IsOptimizing()) { |
905 Label done; | 905 Label done; |
906 if (cc != no_condition) { | 906 if (cc != no_condition) { |
907 __ j(NegateCondition(cc), &done, Label::kNear); | 907 __ j(NegateCondition(cc), &done, Label::kNear); |
908 } | 908 } |
909 __ int3(); | 909 __ int3(); |
910 __ bind(&done); | 910 __ bind(&done); |
911 } | 911 } |
912 | 912 |
913 ASSERT(info()->IsStub() || frame_is_built_); | 913 ASSERT(info()->IsStub() || frame_is_built_); |
914 if (cc == no_condition && frame_is_built_) { | 914 if (cc == no_condition && frame_is_built_) { |
(...skipping 5589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6504 FixedArray::kHeaderSize - kPointerSize)); | 6504 FixedArray::kHeaderSize - kPointerSize)); |
6505 __ bind(&done); | 6505 __ bind(&done); |
6506 } | 6506 } |
6507 | 6507 |
6508 | 6508 |
6509 #undef __ | 6509 #undef __ |
6510 | 6510 |
6511 } } // namespace v8::internal | 6511 } } // namespace v8::internal |
6512 | 6512 |
6513 #endif // V8_TARGET_ARCH_IA32 | 6513 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |