Changeset 209906 in webkit for trunk/Source/JavaScriptCore/jsc.cpp
- Timestamp:
- Dec 15, 2016, 8:52:20 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/jsc.cpp
r209897 r209906 1877 1877 return JSValue::encode(jsUndefined()); 1878 1878 1879 Identifier ident = Identifier::fromString(&exec->vm(), property.toWTFString(exec));1880 1881 1879 PropertySlot slot(value, PropertySlot::InternalMethodType::VMInquiry); 1882 value.getPropertySlot(exec, ident, slot);1880 value.getPropertySlot(exec, asString(property)->toIdentifier(exec), slot); 1883 1881 1884 1882 JSValue result; … … 2105 2103 if (!argument.isString()) 2106 2104 return JSValue::encode(jsBoolean(false)); 2107 const StringImpl* impl = jsCast<JSString*>(argument)->tryGetValueImpl();2105 const StringImpl* impl = asString(argument)->tryGetValueImpl(); 2108 2106 return JSValue::encode(jsBoolean(!impl)); 2109 2107 } … … 2283 2281 2284 2282 RELEASE_ASSERT(exec->argument(1).isString()); 2285 String substring = exec->argument(1).getString(exec);2283 String substring = asString(exec->argument(1))->value(exec); 2286 2284 String sourceCodeText = executable->source().view().toString(); 2287 2285 unsigned offset = static_cast<unsigned>(sourceCodeText.find(substring) + executable->source().startOffset()); … … 2321 2319 2322 2320 RELEASE_ASSERT(exec->argument(1).isString()); 2323 String substring = exec->argument(1).getString(exec);2321 String substring = asString(exec->argument(1))->value(exec); 2324 2322 String sourceCodeText = executable->source().view().toString(); 2325 2323 RELEASE_ASSERT(sourceCodeText.contains(substring)); … … 2339 2337 2340 2338 RELEASE_ASSERT(exec->argument(1).isString()); 2341 String substring = exec->argument(1).getString(exec);2339 String substring = asString(exec->argument(1))->value(exec); 2342 2340 String sourceCodeText = executable->source().view().toString(); 2343 2341 RELEASE_ASSERT(sourceCodeText.contains(substring)); … … 2404 2402 return JSValue::encode(jsUndefined()); 2405 2403 2406 String functionText = exec->argument(0).toWTFString(exec);2404 String functionText = asString(exec->argument(0))->value(exec); 2407 2405 RETURN_IF_EXCEPTION(scope, encodedJSValue()); 2408 2406 … … 2511 2509 static CString valueWithTypeOfWasmValue(ExecState* exec, VM& vm, JSValue value, JSValue wasmValue) 2512 2510 { 2513 JSString* type = jsCast<JSString*>(wasmValue.get(exec, makeIdentifier(vm, "type")));2511 JSString* type = asString(wasmValue.get(exec, makeIdentifier(vm, "type"))); 2514 2512 2515 2513 const String& typeString = type->value(exec); … … 2524 2522 { 2525 2523 2526 JSString* type = jsCast<JSString*>(wasmValue.get(exec, makeIdentifier(vm, "type")));2524 JSString* type = asString(wasmValue.get(exec, makeIdentifier(vm, "type"))); 2527 2525 JSValue value = wasmValue.get(exec, makeIdentifier(vm, "value")); 2528 2526 … … 2531 2529 return false; 2532 2530 2533 const char* str = toCString( jsCast<JSString*>(value)->value(exec)).data();2531 const char* str = toCString(asString(value)->value(exec)).data(); 2534 2532 int scanResult; 2535 2533 int length = std::strlen(str);
Note:
See TracChangeset
for help on using the changeset viewer.