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 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 | 381 |
382 // Deoptimize function assuming that function->next_function_link() points | 382 // Deoptimize function assuming that function->next_function_link() points |
383 // to a list that contains all functions that share the same optimized code. | 383 // to a list that contains all functions that share the same optimized code. |
384 static void DeoptimizeFunctionWithPreparedFunctionList(JSFunction* function); | 384 static void DeoptimizeFunctionWithPreparedFunctionList(JSFunction* function); |
385 | 385 |
386 // Fill the input from from a JavaScript frame. This is used when | 386 // Fill the input from from a JavaScript frame. This is used when |
387 // the debugger needs to inspect an optimized frame. For normal | 387 // the debugger needs to inspect an optimized frame. For normal |
388 // deoptimizations the input frame is filled in generated code. | 388 // deoptimizations the input frame is filled in generated code. |
389 void FillInputFrame(Address tos, JavaScriptFrame* frame); | 389 void FillInputFrame(Address tos, JavaScriptFrame* frame); |
390 | 390 |
| 391 // Fill the given output frame's registers to contain the failure handler |
| 392 // address and the number of parameters for a stub failure trampoline. |
| 393 void FillStubFailureTrampolineFrame(FrameDescription* output_frame, |
| 394 CodeStubInterfaceDescriptor* descriptor); |
| 395 |
| 396 // Fill the given output frame's double registers with the original values |
| 397 // from the input frame's double registers. |
| 398 void CopyDoubleRegisters(FrameDescription* output_frame); |
| 399 |
391 Isolate* isolate_; | 400 Isolate* isolate_; |
392 JSFunction* function_; | 401 JSFunction* function_; |
393 Code* compiled_code_; | 402 Code* compiled_code_; |
394 unsigned bailout_id_; | 403 unsigned bailout_id_; |
395 BailoutType bailout_type_; | 404 BailoutType bailout_type_; |
396 Address from_; | 405 Address from_; |
397 int fp_to_sp_delta_; | 406 int fp_to_sp_delta_; |
398 int has_alignment_padding_; | 407 int has_alignment_padding_; |
399 | 408 |
400 // Input frame description. | 409 // Input frame description. |
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
879 Object** expression_stack_; | 888 Object** expression_stack_; |
880 int source_position_; | 889 int source_position_; |
881 | 890 |
882 friend class Deoptimizer; | 891 friend class Deoptimizer; |
883 }; | 892 }; |
884 #endif | 893 #endif |
885 | 894 |
886 } } // namespace v8::internal | 895 } } // namespace v8::internal |
887 | 896 |
888 #endif // V8_DEOPTIMIZER_H_ | 897 #endif // V8_DEOPTIMIZER_H_ |
OLD | NEW |