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

Side by Side Diff: src/execution.h

Issue 1507273002: Make Error.prototype.toString spec compliant; and fix various side-effect-free error printing metho… (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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/contexts.h ('k') | src/execution.cc » ('j') | src/messages.cc » ('J')
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 // any thrown exceptions. The return value is either the result of 45 // any thrown exceptions. The return value is either the result of
46 // calling the function (if caught exception is false) or the exception 46 // calling the function (if caught exception is false) or the exception
47 // that occurred (if caught exception is true). 47 // that occurred (if caught exception is true).
48 // In the exception case, exception_out holds the caught exceptions, unless 48 // In the exception case, exception_out holds the caught exceptions, unless
49 // it is a termination exception. 49 // it is a termination exception.
50 static MaybeHandle<Object> TryCall(Isolate* isolate, Handle<Object> callable, 50 static MaybeHandle<Object> TryCall(Isolate* isolate, Handle<Object> callable,
51 Handle<Object> receiver, int argc, 51 Handle<Object> receiver, int argc,
52 Handle<Object> argv[], 52 Handle<Object> argv[],
53 MaybeHandle<Object>* exception_out = NULL); 53 MaybeHandle<Object>* exception_out = NULL);
54 54
55 // ECMA-262 9.8
56 MUST_USE_RESULT static MaybeHandle<Object> ToDetailString(
57 Isolate* isolate, Handle<Object> obj);
58
59 // ECMA-262 9.9 55 // ECMA-262 9.9
60 MUST_USE_RESULT static MaybeHandle<Object> ToObject( 56 MUST_USE_RESULT static MaybeHandle<Object> ToObject(
61 Isolate* isolate, Handle<Object> obj); 57 Isolate* isolate, Handle<Object> obj);
62 58
63 // Create a new date object from 'time'. 59 // Create a new date object from 'time'.
64 MUST_USE_RESULT static MaybeHandle<Object> NewDate( 60 MUST_USE_RESULT static MaybeHandle<Object> NewDate(
65 Isolate* isolate, double time); 61 Isolate* isolate, double time);
66 62
67 static Handle<String> GetStackTraceLine(Handle<Object> recv, 63 static Handle<String> GetStackTraceLine(Handle<Object> recv,
68 Handle<JSFunction> fun, 64 Handle<JSFunction> fun,
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 friend class StackLimitCheck; 236 friend class StackLimitCheck;
241 friend class PostponeInterruptsScope; 237 friend class PostponeInterruptsScope;
242 238
243 DISALLOW_COPY_AND_ASSIGN(StackGuard); 239 DISALLOW_COPY_AND_ASSIGN(StackGuard);
244 }; 240 };
245 241
246 } // namespace internal 242 } // namespace internal
247 } // namespace v8 243 } // namespace v8
248 244
249 #endif // V8_EXECUTION_H_ 245 #endif // V8_EXECUTION_H_
OLDNEW
« no previous file with comments | « src/contexts.h ('k') | src/execution.cc » ('j') | src/messages.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698