• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/JavaScriptCore-7600.1.17/API/

Lines Matching refs:exec

73     ExecState* exec = toJS(ctx);
74 JSLockHolder locker(exec);
76 JSValue jsValue = toJS(exec, value);
98 ExecState* exec = toJS(ctx);
99 JSLockHolder locker(exec);
101 JSValue jsValue = toJS(exec, value);
111 ExecState* exec = toJS(ctx);
112 JSLockHolder locker(exec);
114 JSValue jsValue = toJS(exec, value);
124 ExecState* exec = toJS(ctx);
125 JSLockHolder locker(exec);
127 JSValue jsValue = toJS(exec, value);
137 ExecState* exec = toJS(ctx);
138 JSLockHolder locker(exec);
140 JSValue jsValue = toJS(exec, value);
150 ExecState* exec = toJS(ctx);
151 JSLockHolder locker(exec);
153 JSValue jsValue = toJS(exec, value);
163 ExecState* exec = toJS(ctx);
164 JSLockHolder locker(exec);
166 JSValue jsValue = toJS(exec, value);
176 ExecState* exec = toJS(ctx);
177 JSLockHolder locker(exec);
179 JSValue jsValue = toJS(exec, value);
203 ExecState* exec = toJS(ctx);
204 JSLockHolder locker(exec);
206 JSValue jsA = toJS(exec, a);
207 JSValue jsB = toJS(exec, b);
209 bool result = JSValue::equal(exec, jsA, jsB); // false if an exception is thrown
210 if (exec->hadException()) {
211 JSValue exceptionValue = exec->exception();
213 *exception = toRef(exec, exceptionValue);
214 exec->clearException();
216 exec->vmEntryGlobalObject()->inspectorController().reportAPIException(exec, exceptionValue);
228 ExecState* exec = toJS(ctx);
229 JSLockHolder locker(exec);
231 JSValue jsA = toJS(exec, a);
232 JSValue jsB = toJS(exec, b);
234 return JSValue::strictEqual(exec, jsA, jsB);
243 ExecState* exec = toJS(ctx);
244 JSLockHolder locker(exec);
246 JSValue jsValue = toJS(exec, value);
251 bool result = jsConstructor->hasInstance(exec, jsValue); // false if an exception is thrown
252 if (exec->hadException()) {
253 JSValue exceptionValue = exec->exception();
255 *exception = toRef(exec, exceptionValue);
256 exec->clearException();
258 exec->vmEntryGlobalObject()->inspectorController().reportAPIException(exec, exceptionValue);
270 ExecState* exec = toJS(ctx);
271 JSLockHolder locker(exec);
273 return toRef(exec, jsUndefined());
282 ExecState* exec = toJS(ctx);
283 JSLockHolder locker(exec);
285 return toRef(exec, jsNull());
294 ExecState* exec = toJS(ctx);
295 JSLockHolder locker(exec);
297 return toRef(exec, jsBoolean(value));
306 ExecState* exec = toJS(ctx);
307 JSLockHolder locker(exec);
309 return toRef(exec, jsNumber(purifyNaN(value)));
318 ExecState* exec = toJS(ctx);
319 JSLockHolder locker(exec);
321 return toRef(exec, jsString(exec, string->string()));
330 ExecState* exec = toJS(ctx);
331 JSLockHolder locker(exec);
335 LiteralParser<LChar> parser(exec, str.characters8(), length, StrictJSON);
336 return toRef(exec, parser.tryLiteralParse());
338 LiteralParser<UChar> parser(exec, str.characters16(), length, StrictJSON);
339 return toRef(exec, parser.tryLiteralParse());
348 ExecState* exec = toJS(ctx);
349 JSLockHolder locker(exec);
350 JSValue value = toJS(exec, apiValue);
351 String result = JSONStringify(exec, value, indent);
354 if (exec->hadException()) {
355 JSValue exceptionValue = exec->exception();
357 *exception = toRef(exec, exceptionValue);
358 exec->clearException();
360 exec->vmEntryGlobalObject()->inspectorController().reportAPIException(exec, exceptionValue);
373 ExecState* exec = toJS(ctx);
374 JSLockHolder locker(exec);
376 JSValue jsValue = toJS(exec, value);
377 return jsValue.toBoolean(exec);
386 ExecState* exec = toJS(ctx);
387 JSLockHolder locker(exec);
389 JSValue jsValue = toJS(exec, value);
391 double number = jsValue.toNumber(exec);
392 if (exec->hadException()) {
393 JSValue exceptionValue = exec->exception();
395 *exception = toRef(exec, exceptionValue);
396 exec->clearException();
398 exec->vmEntryGlobalObject()->inspectorController().reportAPIException(exec, exceptionValue);
411 ExecState* exec = toJS(ctx);
412 JSLockHolder locker(exec);
414 JSValue jsValue = toJS(exec, value);
416 RefPtr<OpaqueJSString> stringRef(OpaqueJSString::create(jsValue.toString(exec)->value(exec)));
417 if (exec->hadException()) {
418 JSValue exceptionValue = exec->exception();
420 *exception = toRef(exec, exceptionValue);
421 exec->clearException();
423 exec->vmEntryGlobalObject()->inspectorController().reportAPIException(exec, exceptionValue);
436 ExecState* exec = toJS(ctx);
437 JSLockHolder locker(exec);
439 JSValue jsValue = toJS(exec, value);
441 JSObjectRef objectRef = toRef(jsValue.toObject(exec));
442 if (exec->hadException()) {
443 JSValue exceptionValue = exec->exception();
445 *exception = toRef(exec, exceptionValue);
446 exec->clearException();
448 exec->vmEntryGlobalObject()->inspectorController().reportAPIException(exec, exceptionValue);
461 ExecState* exec = toJS(ctx);
462 JSLockHolder locker(exec);
464 JSValue jsValue = toJSForGC(exec, value);
475 ExecState* exec = toJS(ctx);
476 JSLockHolder locker(exec);
478 JSValue jsValue = toJSForGC(exec, value);