OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 // Call a function, just like Call(), but make sure to silently catch | 84 // Call a function, just like Call(), but make sure to silently catch |
85 // any thrown exceptions. The return value is either the result of | 85 // any thrown exceptions. The return value is either the result of |
86 // calling the function (if caught exception is false) or the exception | 86 // calling the function (if caught exception is false) or the exception |
87 // that occurred (if caught exception is true). | 87 // that occurred (if caught exception is true). |
88 static Handle<Object> TryCall(Handle<JSFunction> func, | 88 static Handle<Object> TryCall(Handle<JSFunction> func, |
89 Handle<Object> receiver, | 89 Handle<Object> receiver, |
90 int argc, | 90 int argc, |
91 Handle<Object> argv[], | 91 Handle<Object> argv[], |
92 bool* caught_exception); | 92 bool* caught_exception); |
93 | 93 |
94 // ECMA-262 9.2 | |
95 static Handle<Object> ToBoolean(Isolate* isolate, Handle<Object> obj); | |
96 | |
97 // ECMA-262 9.3 | 94 // ECMA-262 9.3 |
98 static Handle<Object> ToNumber(Handle<Object> obj, bool* exc); | 95 static Handle<Object> ToNumber(Handle<Object> obj, bool* exc); |
99 | 96 |
100 // ECMA-262 9.4 | 97 // ECMA-262 9.4 |
101 static Handle<Object> ToInteger(Handle<Object> obj, bool* exc); | 98 static Handle<Object> ToInteger(Handle<Object> obj, bool* exc); |
102 | 99 |
103 // ECMA-262 9.5 | 100 // ECMA-262 9.5 |
104 static Handle<Object> ToInt32(Handle<Object> obj, bool* exc); | 101 static Handle<Object> ToInt32(Handle<Object> obj, bool* exc); |
105 | 102 |
106 // ECMA-262 9.6 | 103 // ECMA-262 9.6 |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 friend class StackLimitCheck; | 298 friend class StackLimitCheck; |
302 friend class PostponeInterruptsScope; | 299 friend class PostponeInterruptsScope; |
303 | 300 |
304 DISALLOW_COPY_AND_ASSIGN(StackGuard); | 301 DISALLOW_COPY_AND_ASSIGN(StackGuard); |
305 }; | 302 }; |
306 | 303 |
307 | 304 |
308 } } // namespace v8::internal | 305 } } // namespace v8::internal |
309 | 306 |
310 #endif // V8_EXECUTION_H_ | 307 #endif // V8_EXECUTION_H_ |
OLD | NEW |