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/handles.h" | 8 #include "src/handles.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 51 matching lines...) Loading... |
62 Isolate* isolate, Handle<Object> obj); | 62 Isolate* isolate, Handle<Object> obj); |
63 | 63 |
64 // ECMA-262 9.5 | 64 // ECMA-262 9.5 |
65 MUST_USE_RESULT static MaybeHandle<Object> ToInt32( | 65 MUST_USE_RESULT static MaybeHandle<Object> ToInt32( |
66 Isolate* isolate, Handle<Object> obj); | 66 Isolate* isolate, Handle<Object> obj); |
67 | 67 |
68 // ECMA-262 9.6 | 68 // ECMA-262 9.6 |
69 MUST_USE_RESULT static MaybeHandle<Object> ToUint32( | 69 MUST_USE_RESULT static MaybeHandle<Object> ToUint32( |
70 Isolate* isolate, Handle<Object> obj); | 70 Isolate* isolate, Handle<Object> obj); |
71 | 71 |
| 72 |
| 73 // ES6, draft 10-14-14, section 7.1.15 |
| 74 MUST_USE_RESULT static MaybeHandle<Object> ToLength( |
| 75 Isolate* isolate, Handle<Object> obj); |
| 76 |
72 // ECMA-262 9.8 | 77 // ECMA-262 9.8 |
73 MUST_USE_RESULT static MaybeHandle<Object> ToString( | 78 MUST_USE_RESULT static MaybeHandle<Object> ToString( |
74 Isolate* isolate, Handle<Object> obj); | 79 Isolate* isolate, Handle<Object> obj); |
75 | 80 |
76 // ECMA-262 9.8 | 81 // ECMA-262 9.8 |
77 MUST_USE_RESULT static MaybeHandle<Object> ToDetailString( | 82 MUST_USE_RESULT static MaybeHandle<Object> ToDetailString( |
78 Isolate* isolate, Handle<Object> obj); | 83 Isolate* isolate, Handle<Object> obj); |
79 | 84 |
80 // ECMA-262 9.9 | 85 // ECMA-262 9.9 |
81 MUST_USE_RESULT static MaybeHandle<Object> ToObject( | 86 MUST_USE_RESULT static MaybeHandle<Object> ToObject( |
(...skipping 187 matching lines...) Loading... |
269 friend class Isolate; | 274 friend class Isolate; |
270 friend class StackLimitCheck; | 275 friend class StackLimitCheck; |
271 friend class PostponeInterruptsScope; | 276 friend class PostponeInterruptsScope; |
272 | 277 |
273 DISALLOW_COPY_AND_ASSIGN(StackGuard); | 278 DISALLOW_COPY_AND_ASSIGN(StackGuard); |
274 }; | 279 }; |
275 | 280 |
276 } } // namespace v8::internal | 281 } } // namespace v8::internal |
277 | 282 |
278 #endif // V8_EXECUTION_H_ | 283 #endif // V8_EXECUTION_H_ |
OLD | NEW |