| OLD | NEW |
| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 // code patching below, and is not needed any more. | 50 // code patching below, and is not needed any more. |
| 51 code->InvalidateRelocation(); | 51 code->InvalidateRelocation(); |
| 52 | 52 |
| 53 // TODO(jkummerow): if (FLAG_zap_code_space), make the code object's | 53 // TODO(jkummerow): if (FLAG_zap_code_space), make the code object's |
| 54 // entry sequence unusable (see other architectures). | 54 // entry sequence unusable (see other architectures). |
| 55 | 55 |
| 56 // For each LLazyBailout instruction insert a call to the corresponding | 56 // For each LLazyBailout instruction insert a call to the corresponding |
| 57 // deoptimization entry. | 57 // deoptimization entry. |
| 58 DeoptimizationInputData* deopt_data = | 58 DeoptimizationInputData* deopt_data = |
| 59 DeoptimizationInputData::cast(code->deoptimization_data()); | 59 DeoptimizationInputData::cast(code->deoptimization_data()); |
| 60 SharedFunctionInfo* shared = |
| 61 SharedFunctionInfo::cast(deopt_data->SharedFunctionInfo()); |
| 62 shared->EvictFromOptimizedCodeMap(code, "deoptimized code"); |
| 60 Address code_start_address = code->instruction_start(); | 63 Address code_start_address = code->instruction_start(); |
| 61 #ifdef DEBUG | 64 #ifdef DEBUG |
| 62 Address prev_call_address = NULL; | 65 Address prev_call_address = NULL; |
| 63 #endif | 66 #endif |
| 64 | 67 |
| 65 for (int i = 0; i < deopt_data->DeoptCount(); i++) { | 68 for (int i = 0; i < deopt_data->DeoptCount(); i++) { |
| 66 if (deopt_data->Pc(i)->value() == -1) continue; | 69 if (deopt_data->Pc(i)->value() == -1) continue; |
| 67 | 70 |
| 68 Address call_address = code_start_address + deopt_data->Pc(i)->value(); | 71 Address call_address = code_start_address + deopt_data->Pc(i)->value(); |
| 69 Address deopt_entry = GetDeoptimizationEntry(isolate, i, LAZY); | 72 Address deopt_entry = GetDeoptimizationEntry(isolate, i, LAZY); |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 | 373 |
| 371 | 374 |
| 372 void FrameDescription::SetCallerFp(unsigned offset, intptr_t value) { | 375 void FrameDescription::SetCallerFp(unsigned offset, intptr_t value) { |
| 373 SetFrameSlot(offset, value); | 376 SetFrameSlot(offset, value); |
| 374 } | 377 } |
| 375 | 378 |
| 376 | 379 |
| 377 #undef __ | 380 #undef __ |
| 378 | 381 |
| 379 } } // namespace v8::internal | 382 } } // namespace v8::internal |
| OLD | NEW |