| 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 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 | 396 |
| 397 void AddArgumentsObject(intptr_t slot_address, int argc); | 397 void AddArgumentsObject(intptr_t slot_address, int argc); |
| 398 void AddArgumentsObjectValue(intptr_t value); | 398 void AddArgumentsObjectValue(intptr_t value); |
| 399 void AddDoubleValue(intptr_t slot_address, double value); | 399 void AddDoubleValue(intptr_t slot_address, double value); |
| 400 | 400 |
| 401 static void GenerateDeoptimizationEntries( | 401 static void GenerateDeoptimizationEntries( |
| 402 MacroAssembler* masm, int count, BailoutType type); | 402 MacroAssembler* masm, int count, BailoutType type); |
| 403 | 403 |
| 404 // Weak handle callback for deoptimizing code objects. | 404 // Weak handle callback for deoptimizing code objects. |
| 405 static void HandleWeakDeoptimizedCode(v8::Isolate* isolate, | 405 static void HandleWeakDeoptimizedCode(v8::Isolate* isolate, |
| 406 v8::Persistent<v8::Value> obj, | 406 v8::Persistent<v8::Value>* obj, |
| 407 void* data); | 407 void* data); |
| 408 | 408 |
| 409 // Deoptimize function assuming that function->next_function_link() points | 409 // Deoptimize function assuming that function->next_function_link() points |
| 410 // to a list that contains all functions that share the same optimized code. | 410 // to a list that contains all functions that share the same optimized code. |
| 411 static void DeoptimizeFunctionWithPreparedFunctionList(JSFunction* function); | 411 static void DeoptimizeFunctionWithPreparedFunctionList(JSFunction* function); |
| 412 | 412 |
| 413 // Fill the input from from a JavaScript frame. This is used when | 413 // Fill the input from from a JavaScript frame. This is used when |
| 414 // the debugger needs to inspect an optimized frame. For normal | 414 // the debugger needs to inspect an optimized frame. For normal |
| 415 // deoptimizations the input frame is filled in generated code. | 415 // deoptimizations the input frame is filled in generated code. |
| 416 void FillInputFrame(Address tos, JavaScriptFrame* frame); | 416 void FillInputFrame(Address tos, JavaScriptFrame* frame); |
| (...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 941 Object** expression_stack_; | 941 Object** expression_stack_; |
| 942 int source_position_; | 942 int source_position_; |
| 943 | 943 |
| 944 friend class Deoptimizer; | 944 friend class Deoptimizer; |
| 945 }; | 945 }; |
| 946 #endif | 946 #endif |
| 947 | 947 |
| 948 } } // namespace v8::internal | 948 } } // namespace v8::internal |
| 949 | 949 |
| 950 #endif // V8_DEOPTIMIZER_H_ | 950 #endif // V8_DEOPTIMIZER_H_ |
| OLD | NEW |