| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 static void RevertStackCheckCode(RelocInfo* rinfo, Code* check_code); | 164 static void RevertStackCheckCode(RelocInfo* rinfo, Code* check_code); |
| 165 | 165 |
| 166 ~Deoptimizer(); | 166 ~Deoptimizer(); |
| 167 | 167 |
| 168 void InsertHeapNumberValues(int index, JavaScriptFrame* frame); | 168 void InsertHeapNumberValues(int index, JavaScriptFrame* frame); |
| 169 | 169 |
| 170 static void ComputeOutputFrames(Deoptimizer* deoptimizer, Isolate* isolate); | 170 static void ComputeOutputFrames(Deoptimizer* deoptimizer, Isolate* isolate); |
| 171 | 171 |
| 172 static Address GetDeoptimizationEntry(int id, BailoutType type); | 172 static Address GetDeoptimizationEntry(int id, BailoutType type); |
| 173 static int GetDeoptimizationId(Address addr, BailoutType type); | 173 static int GetDeoptimizationId(Address addr, BailoutType type); |
| 174 static unsigned GetOutputInfo(DeoptimizationOutputData* data, | 174 static int GetOutputInfo(DeoptimizationOutputData* data, |
| 175 unsigned node_id, | 175 unsigned node_id, |
| 176 SharedFunctionInfo* shared); | 176 SharedFunctionInfo* shared); |
| 177 | 177 |
| 178 // Code generation support. | 178 // Code generation support. |
| 179 static int input_offset() { return OFFSET_OF(Deoptimizer, input_); } | 179 static int input_offset() { return OFFSET_OF(Deoptimizer, input_); } |
| 180 static int output_count_offset() { | 180 static int output_count_offset() { |
| 181 return OFFSET_OF(Deoptimizer, output_count_); | 181 return OFFSET_OF(Deoptimizer, output_count_); |
| 182 } | 182 } |
| 183 static int output_offset() { return OFFSET_OF(Deoptimizer, output_); } | 183 static int output_offset() { return OFFSET_OF(Deoptimizer, output_); } |
| 184 | 184 |
| 185 static int GetDeoptimizedCodeCount(Isolate* isolate); | 185 static int GetDeoptimizedCodeCount(Isolate* isolate); |
| 186 | 186 |
| (...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 517 Handle<Code> code_; | 517 Handle<Code> code_; |
| 518 | 518 |
| 519 // Next pointer for linked list. | 519 // Next pointer for linked list. |
| 520 DeoptimizingCodeListNode* next_; | 520 DeoptimizingCodeListNode* next_; |
| 521 }; | 521 }; |
| 522 | 522 |
| 523 | 523 |
| 524 } } // namespace v8::internal | 524 } } // namespace v8::internal |
| 525 | 525 |
| 526 #endif // V8_DEOPTIMIZER_H_ | 526 #endif // V8_DEOPTIMIZER_H_ |
| OLD | NEW |