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

Side by Side Diff: src/frames.cc

Issue 1935: New static flags system (Closed)
Patch Set: Merge, again. Created 12 years, 3 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
« no previous file with comments | « src/flags-inl.h ('k') | src/handles.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 17 matching lines...) Expand all
28 #include "v8.h" 28 #include "v8.h"
29 29
30 #include "frames-inl.h" 30 #include "frames-inl.h"
31 #include "scopeinfo.h" 31 #include "scopeinfo.h"
32 #include "string-stream.h" 32 #include "string-stream.h"
33 #include "top.h" 33 #include "top.h"
34 #include "zone-inl.h" 34 #include "zone-inl.h"
35 35
36 namespace v8 { namespace internal { 36 namespace v8 { namespace internal {
37 37
38
39 DEFINE_int(max_stack_trace_source_length, 300,
40 "maximum length of function source code printed in a stack trace.");
41
42
43 // -------------------------------------------------------------------------
44
45
46 // Iterator that supports traversing the stack handlers of a 38 // Iterator that supports traversing the stack handlers of a
47 // particular frame. Needs to know the top of the handler chain. 39 // particular frame. Needs to know the top of the handler chain.
48 class StackHandlerIterator BASE_EMBEDDED { 40 class StackHandlerIterator BASE_EMBEDDED {
49 public: 41 public:
50 StackHandlerIterator(const StackFrame* frame, StackHandler* handler) 42 StackHandlerIterator(const StackFrame* frame, StackHandler* handler)
51 : limit_(frame->fp()), handler_(handler) { 43 : limit_(frame->fp()), handler_(handler) {
52 // Make sure the handler has already been unwound to this frame. 44 // Make sure the handler has already been unwound to this frame.
53 ASSERT(frame->sp() <= handler->address()); 45 ASSERT(frame->sp() <= handler->address());
54 } 46 }
55 47
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 reg_code[i++] = r; 578 reg_code[i++] = r;
587 579
588 ASSERT(i == kNumJSCallerSaved); 580 ASSERT(i == kNumJSCallerSaved);
589 } 581 }
590 ASSERT(0 <= n && n < kNumJSCallerSaved); 582 ASSERT(0 <= n && n < kNumJSCallerSaved);
591 return reg_code[n]; 583 return reg_code[n];
592 } 584 }
593 585
594 586
595 } } // namespace v8::internal 587 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/flags-inl.h ('k') | src/handles.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698