| OLD | NEW |
| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 Isolate* isolate, Handle<Object> obj); | 57 Isolate* isolate, Handle<Object> obj); |
| 58 | 58 |
| 59 // ECMA-262 9.9 | 59 // ECMA-262 9.9 |
| 60 MUST_USE_RESULT static MaybeHandle<Object> ToObject( | 60 MUST_USE_RESULT static MaybeHandle<Object> ToObject( |
| 61 Isolate* isolate, Handle<Object> obj); | 61 Isolate* isolate, Handle<Object> obj); |
| 62 | 62 |
| 63 // Create a new date object from 'time'. | 63 // Create a new date object from 'time'. |
| 64 MUST_USE_RESULT static MaybeHandle<Object> NewDate( | 64 MUST_USE_RESULT static MaybeHandle<Object> NewDate( |
| 65 Isolate* isolate, double time); | 65 Isolate* isolate, double time); |
| 66 | 66 |
| 67 // Create a new regular expression object from 'pattern' and 'flags'. | |
| 68 MUST_USE_RESULT static MaybeHandle<JSRegExp> NewJSRegExp( | |
| 69 Handle<String> pattern, Handle<String> flags); | |
| 70 | |
| 71 static Handle<String> GetStackTraceLine(Handle<Object> recv, | 67 static Handle<String> GetStackTraceLine(Handle<Object> recv, |
| 72 Handle<JSFunction> fun, | 68 Handle<JSFunction> fun, |
| 73 Handle<Object> pos, | 69 Handle<Object> pos, |
| 74 Handle<Object> is_global); | 70 Handle<Object> is_global); |
| 75 }; | 71 }; |
| 76 | 72 |
| 77 | 73 |
| 78 class ExecutionAccess; | 74 class ExecutionAccess; |
| 79 class PostponeInterruptsScope; | 75 class PostponeInterruptsScope; |
| 80 | 76 |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 friend class StackLimitCheck; | 240 friend class StackLimitCheck; |
| 245 friend class PostponeInterruptsScope; | 241 friend class PostponeInterruptsScope; |
| 246 | 242 |
| 247 DISALLOW_COPY_AND_ASSIGN(StackGuard); | 243 DISALLOW_COPY_AND_ASSIGN(StackGuard); |
| 248 }; | 244 }; |
| 249 | 245 |
| 250 } // namespace internal | 246 } // namespace internal |
| 251 } // namespace v8 | 247 } // namespace v8 |
| 252 | 248 |
| 253 #endif // V8_EXECUTION_H_ | 249 #endif // V8_EXECUTION_H_ |
| OLD | NEW |