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 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 deoptimizations_.Add(environment); | 546 deoptimizations_.Add(environment); |
547 } | 547 } |
548 } | 548 } |
549 | 549 |
550 | 550 |
551 void LCodeGen::DeoptimizeIf(Condition cc, LEnvironment* environment) { | 551 void LCodeGen::DeoptimizeIf(Condition cc, LEnvironment* environment) { |
552 RegisterEnvironmentForDeoptimization(environment, Safepoint::kNoLazyDeopt); | 552 RegisterEnvironmentForDeoptimization(environment, Safepoint::kNoLazyDeopt); |
553 ASSERT(environment->HasBeenRegistered()); | 553 ASSERT(environment->HasBeenRegistered()); |
554 int id = environment->deoptimization_index(); | 554 int id = environment->deoptimization_index(); |
555 Address entry = Deoptimizer::GetDeoptimizationEntry(id, Deoptimizer::EAGER); | 555 Address entry = Deoptimizer::GetDeoptimizationEntry(id, Deoptimizer::EAGER); |
556 ASSERT(entry != NULL); | |
557 if (entry == NULL) { | 556 if (entry == NULL) { |
558 Abort("bailout was not prepared"); | 557 Abort("bailout was not prepared"); |
559 return; | 558 return; |
560 } | 559 } |
561 | 560 |
562 if (FLAG_deopt_every_n_times != 0) { | 561 if (FLAG_deopt_every_n_times != 0) { |
563 Handle<SharedFunctionInfo> shared(info_->shared_info()); | 562 Handle<SharedFunctionInfo> shared(info_->shared_info()); |
564 Label no_deopt; | 563 Label no_deopt; |
565 __ pushfd(); | 564 __ pushfd(); |
566 __ push(eax); | 565 __ push(eax); |
(...skipping 4397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4964 FixedArray::kHeaderSize - kPointerSize)); | 4963 FixedArray::kHeaderSize - kPointerSize)); |
4965 __ bind(&done); | 4964 __ bind(&done); |
4966 } | 4965 } |
4967 | 4966 |
4968 | 4967 |
4969 #undef __ | 4968 #undef __ |
4970 | 4969 |
4971 } } // namespace v8::internal | 4970 } } // namespace v8::internal |
4972 | 4971 |
4973 #endif // V8_TARGET_ARCH_IA32 | 4972 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |