Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 284 int limit = input_offset - (parameter_count * kPointerSize); | 284 int limit = input_offset - (parameter_count * kPointerSize); |
| 285 while (ok && input_offset > limit) { | 285 while (ok && input_offset > limit) { |
| 286 ok = DoOsrTranslateCommand(&iterator, &input_offset); | 286 ok = DoOsrTranslateCommand(&iterator, &input_offset); |
| 287 } | 287 } |
| 288 | 288 |
| 289 // There are no translation commands for the caller's pc and fp, the | 289 // There are no translation commands for the caller's pc and fp, the |
| 290 // context, and the function. Set them up explicitly. | 290 // context, and the function. Set them up explicitly. |
| 291 for (int i = 0; ok && i < 4; i++) { | 291 for (int i = 0; ok && i < 4; i++) { |
| 292 uint32_t input_value = input_->GetFrameSlot(input_offset); | 292 uint32_t input_value = input_->GetFrameSlot(input_offset); |
| 293 if (FLAG_trace_osr) { | 293 if (FLAG_trace_osr) { |
| 294 PrintF(" [sp + %d] <- 0x%08x ; [sp + %d] (fixed part)\n", | 294 const char* name = "UNKNOWN"; |
| 295 switch (i) { | |
|
Kevin Millikin (Chromium)
2011/03/28 09:07:01
Maybe it would be nicer to use the constants in fr
Søren Thygesen Gjesse
2011/03/28 12:27:29
Good point, used
for (int i = StandardFrameCon
Kevin Millikin (Chromium)
2011/03/28 13:11:40
Sounds good.
| |
| 296 case 0: name = "caller's pc"; break; | |
| 297 case 1: name = "fp"; break; | |
| 298 case 2: name = "context"; break; | |
| 299 case 3: name = "function"; break; | |
| 300 } | |
| 301 PrintF(" [sp + %d] <- 0x%08x ; [sp + %d] (fixed part - %s)\n", | |
| 295 output_offset, | 302 output_offset, |
| 296 input_value, | 303 input_value, |
| 297 input_offset); | 304 input_offset, |
| 305 name); | |
| 298 } | 306 } |
| 299 output_[0]->SetFrameSlot(output_offset, input_->GetFrameSlot(input_offset)); | 307 output_[0]->SetFrameSlot(output_offset, input_->GetFrameSlot(input_offset)); |
| 300 input_offset -= kPointerSize; | 308 input_offset -= kPointerSize; |
| 301 output_offset -= kPointerSize; | 309 output_offset -= kPointerSize; |
| 302 } | 310 } |
| 303 | 311 |
| 304 // Translate the rest of the frame. | 312 // Translate the rest of the frame. |
| 305 while (ok && input_offset >= 0) { | 313 while (ok && input_offset >= 0) { |
| 306 ok = DoOsrTranslateCommand(&iterator, &input_offset); | 314 ok = DoOsrTranslateCommand(&iterator, &input_offset); |
| 307 } | 315 } |
| (...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 707 __ push(ip); | 715 __ push(ip); |
| 708 __ b(&done); | 716 __ b(&done); |
| 709 ASSERT(masm()->pc_offset() - start == table_entry_size_); | 717 ASSERT(masm()->pc_offset() - start == table_entry_size_); |
| 710 } | 718 } |
| 711 __ bind(&done); | 719 __ bind(&done); |
| 712 } | 720 } |
| 713 | 721 |
| 714 #undef __ | 722 #undef __ |
| 715 | 723 |
| 716 } } // namespace v8::internal | 724 } } // namespace v8::internal |
| OLD | NEW |