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

Side by Side Diff: src/execution.h

Issue 2275233002: Refactor call site handling for stack formatting (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address comments Created 4 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/builtins/builtins-callsite.cc ('k') | src/execution.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #ifndef V8_EXECUTION_H_ 5 #ifndef V8_EXECUTION_H_
6 #define V8_EXECUTION_H_ 6 #define V8_EXECUTION_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/base/atomicops.h" 9 #include "src/base/atomicops.h"
10 #include "src/handles.h" 10 #include "src/handles.h"
(...skipping 30 matching lines...) Expand all
41 // Call a function, just like Call(), but make sure to silently catch 41 // Call a function, just like Call(), but make sure to silently catch
42 // any thrown exceptions. The return value is either the result of 42 // any thrown exceptions. The return value is either the result of
43 // calling the function (if caught exception is false) or the exception 43 // calling the function (if caught exception is false) or the exception
44 // that occurred (if caught exception is true). 44 // that occurred (if caught exception is true).
45 // In the exception case, exception_out holds the caught exceptions, unless 45 // In the exception case, exception_out holds the caught exceptions, unless
46 // it is a termination exception. 46 // it is a termination exception.
47 static MaybeHandle<Object> TryCall(Isolate* isolate, Handle<Object> callable, 47 static MaybeHandle<Object> TryCall(Isolate* isolate, Handle<Object> callable,
48 Handle<Object> receiver, int argc, 48 Handle<Object> receiver, int argc,
49 Handle<Object> argv[], 49 Handle<Object> argv[],
50 MaybeHandle<Object>* exception_out = NULL); 50 MaybeHandle<Object>* exception_out = NULL);
51
52 static Handle<String> GetStackTraceLine(Handle<Object> recv,
53 Handle<JSFunction> fun,
54 Handle<Object> pos,
55 Handle<Object> is_global);
56 }; 51 };
57 52
58 53
59 class ExecutionAccess; 54 class ExecutionAccess;
60 class PostponeInterruptsScope; 55 class PostponeInterruptsScope;
61 56
62 57
63 // StackGuard contains the handling of the limits that are used to limit the 58 // StackGuard contains the handling of the limits that are used to limit the
64 // number of nested invocations of JavaScript and the stack size used in each 59 // number of nested invocations of JavaScript and the stack size used in each
65 // invocation. 60 // invocation.
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 friend class StackLimitCheck; 220 friend class StackLimitCheck;
226 friend class PostponeInterruptsScope; 221 friend class PostponeInterruptsScope;
227 222
228 DISALLOW_COPY_AND_ASSIGN(StackGuard); 223 DISALLOW_COPY_AND_ASSIGN(StackGuard);
229 }; 224 };
230 225
231 } // namespace internal 226 } // namespace internal
232 } // namespace v8 227 } // namespace v8
233 228
234 #endif // V8_EXECUTION_H_ 229 #endif // V8_EXECUTION_H_
OLDNEW
« no previous file with comments | « src/builtins/builtins-callsite.cc ('k') | src/execution.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698