| OLD | NEW | 
|---|
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 #include "src/v8.h" | 5 #include "src/v8.h" | 
| 6 | 6 | 
| 7 #include "src/ast.h" | 7 #include "src/ast.h" | 
| 8 #include "src/deoptimizer.h" | 8 #include "src/deoptimizer.h" | 
| 9 #include "src/frames-inl.h" | 9 #include "src/frames-inl.h" | 
| 10 #include "src/full-codegen.h" | 10 #include "src/full-codegen.h" | 
| (...skipping 1255 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1266   if (expressions_start < expressions_count) { | 1266   if (expressions_start < expressions_count) { | 
| 1267     accumulator->Add("  // expression stack (top to bottom)\n"); | 1267     accumulator->Add("  // expression stack (top to bottom)\n"); | 
| 1268   } | 1268   } | 
| 1269   for (int i = expressions_count - 1; i >= expressions_start; i--) { | 1269   for (int i = expressions_count - 1; i >= expressions_start; i--) { | 
| 1270     if (IsExpressionInsideHandler(i)) continue; | 1270     if (IsExpressionInsideHandler(i)) continue; | 
| 1271     accumulator->Add("  [%02d] : %o\n", i, GetExpression(i)); | 1271     accumulator->Add("  [%02d] : %o\n", i, GetExpression(i)); | 
| 1272   } | 1272   } | 
| 1273 | 1273 | 
| 1274   // Print details about the function. | 1274   // Print details about the function. | 
| 1275   if (FLAG_max_stack_trace_source_length != 0 && code != NULL) { | 1275   if (FLAG_max_stack_trace_source_length != 0 && code != NULL) { | 
|  | 1276     OStringStream os; | 
| 1276     SharedFunctionInfo* shared = function->shared(); | 1277     SharedFunctionInfo* shared = function->shared(); | 
| 1277     accumulator->Add("--------- s o u r c e   c o d e ---------\n"); | 1278     os << "--------- s o u r c e   c o d e ---------\n" | 
| 1278     shared->SourceCodePrint(accumulator, FLAG_max_stack_trace_source_length); | 1279        << SourceCodeOf(shared, FLAG_max_stack_trace_source_length) | 
| 1279     accumulator->Add("\n-----------------------------------------\n"); | 1280        << "\n-----------------------------------------\n"; | 
|  | 1281     accumulator->Add(os.c_str()); | 
| 1280   } | 1282   } | 
| 1281 | 1283 | 
| 1282   accumulator->Add("}\n\n"); | 1284   accumulator->Add("}\n\n"); | 
| 1283 } | 1285 } | 
| 1284 | 1286 | 
| 1285 | 1287 | 
| 1286 void ArgumentsAdaptorFrame::Print(StringStream* accumulator, | 1288 void ArgumentsAdaptorFrame::Print(StringStream* accumulator, | 
| 1287                                   PrintMode mode, | 1289                                   PrintMode mode, | 
| 1288                                   int index) const { | 1290                                   int index) const { | 
| 1289   int actual = ComputeParametersCount(); | 1291   int actual = ComputeParametersCount(); | 
| (...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1620   ZoneList<StackFrame*> list(10, zone); | 1622   ZoneList<StackFrame*> list(10, zone); | 
| 1621   for (StackFrameIterator it(isolate); !it.done(); it.Advance()) { | 1623   for (StackFrameIterator it(isolate); !it.done(); it.Advance()) { | 
| 1622     StackFrame* frame = AllocateFrameCopy(it.frame(), zone); | 1624     StackFrame* frame = AllocateFrameCopy(it.frame(), zone); | 
| 1623     list.Add(frame, zone); | 1625     list.Add(frame, zone); | 
| 1624   } | 1626   } | 
| 1625   return list.ToVector(); | 1627   return list.ToVector(); | 
| 1626 } | 1628 } | 
| 1627 | 1629 | 
| 1628 | 1630 | 
| 1629 } }  // namespace v8::internal | 1631 } }  // namespace v8::internal | 
| OLD | NEW | 
|---|