| 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 2284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2295 return base - ((slot_index + 1) * kPointerSize); | 2295 return base - ((slot_index + 1) * kPointerSize); |
| 2296 } | 2296 } |
| 2297 } | 2297 } |
| 2298 | 2298 |
| 2299 | 2299 |
| 2300 int FrameDescription::ComputeParametersCount() { | 2300 int FrameDescription::ComputeParametersCount() { |
| 2301 switch (type_) { | 2301 switch (type_) { |
| 2302 case StackFrame::JAVA_SCRIPT: | 2302 case StackFrame::JAVA_SCRIPT: |
| 2303 return function_->shared()->formal_parameter_count(); | 2303 return function_->shared()->formal_parameter_count(); |
| 2304 case StackFrame::ARGUMENTS_ADAPTOR: { | 2304 case StackFrame::ARGUMENTS_ADAPTOR: { |
| 2305 // Last slot contains number of incomming arguments as a smi. | 2305 // Last slot contains number of incoming arguments as a smi. |
| 2306 // Can't use GetExpression(0) because it would cause infinite recursion. | 2306 // Can't use GetExpression(0) because it would cause infinite recursion. |
| 2307 return reinterpret_cast<Smi*>(*GetFrameSlotPointer(0))->value(); | 2307 return reinterpret_cast<Smi*>(*GetFrameSlotPointer(0))->value(); |
| 2308 } | 2308 } |
| 2309 case StackFrame::STUB: | 2309 case StackFrame::STUB: |
| 2310 return -1; // Minus receiver. | 2310 return -1; // Minus receiver. |
| 2311 default: | 2311 default: |
| 2312 UNREACHABLE(); | 2312 UNREACHABLE(); |
| 2313 return 0; | 2313 return 0; |
| 2314 } | 2314 } |
| 2315 } | 2315 } |
| (...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2773 | 2773 |
| 2774 void DeoptimizedFrameInfo::Iterate(ObjectVisitor* v) { | 2774 void DeoptimizedFrameInfo::Iterate(ObjectVisitor* v) { |
| 2775 v->VisitPointer(BitCast<Object**>(&function_)); | 2775 v->VisitPointer(BitCast<Object**>(&function_)); |
| 2776 v->VisitPointers(parameters_, parameters_ + parameters_count_); | 2776 v->VisitPointers(parameters_, parameters_ + parameters_count_); |
| 2777 v->VisitPointers(expression_stack_, expression_stack_ + expression_count_); | 2777 v->VisitPointers(expression_stack_, expression_stack_ + expression_count_); |
| 2778 } | 2778 } |
| 2779 | 2779 |
| 2780 #endif // ENABLE_DEBUGGER_SUPPORT | 2780 #endif // ENABLE_DEBUGGER_SUPPORT |
| 2781 | 2781 |
| 2782 } } // namespace v8::internal | 2782 } } // namespace v8::internal |
| OLD | NEW |