Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Side by Side Diff: src/deoptimizer.cc

Issue 15012016: small misspelling fixes. (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/debug.cc ('k') | src/extensions/statistics-extension.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/debug.cc ('k') | src/extensions/statistics-extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698