/external/v8/src/runtime/ |
D | runtime-utils.h | 13 #define RUNTIME_ASSERT(value) \ macro 26 RUNTIME_ASSERT(args[index]->Is##Type()); \ 30 RUNTIME_ASSERT(args[index]->Is##Type()); \ 34 RUNTIME_ASSERT(args[index]->IsNumber()); \ 41 RUNTIME_ASSERT(args[index]->IsBoolean()); \ 48 RUNTIME_ASSERT(args[index]->IsSmi()); \ 55 RUNTIME_ASSERT(args[index]->IsNumber()); \ 63 RUNTIME_ASSERT(args[index]->IsNumber()); \ 66 RUNTIME_ASSERT(TryNumberToSize(isolate, *name##_object, &name)); 73 RUNTIME_ASSERT(obj->IsNumber()); \ [all …]
|
D | runtime-futex.cc | 27 RUNTIME_ASSERT(sta->GetBuffer()->is_shared()); in RUNTIME_FUNCTION() 28 RUNTIME_ASSERT(index < NumberToSize(isolate, sta->length())); in RUNTIME_FUNCTION() 29 RUNTIME_ASSERT(sta->type() == kExternalInt32Array); in RUNTIME_FUNCTION() 30 RUNTIME_ASSERT(timeout == V8_INFINITY || !std::isnan(timeout)); in RUNTIME_FUNCTION() 45 RUNTIME_ASSERT(sta->GetBuffer()->is_shared()); in RUNTIME_FUNCTION() 46 RUNTIME_ASSERT(index < NumberToSize(isolate, sta->length())); in RUNTIME_FUNCTION() 47 RUNTIME_ASSERT(sta->type() == kExternalInt32Array); in RUNTIME_FUNCTION() 64 RUNTIME_ASSERT(sta->GetBuffer()->is_shared()); in RUNTIME_FUNCTION() 65 RUNTIME_ASSERT(index1 < NumberToSize(isolate, sta->length())); in RUNTIME_FUNCTION() 66 RUNTIME_ASSERT(index2 < NumberToSize(isolate, sta->length())); in RUNTIME_FUNCTION() [all …]
|
D | runtime-liveedit.cc | 27 RUNTIME_ASSERT(script_value->value()->IsScript()); in RUNTIME_FUNCTION() 70 RUNTIME_ASSERT(script->value()->IsScript()); in RUNTIME_FUNCTION() 91 RUNTIME_ASSERT(original_script_value->value()->IsScript()); in RUNTIME_FUNCTION() 111 RUNTIME_ASSERT(SharedInfoWrapper::IsInstance(shared_info)); in RUNTIME_FUNCTION() 125 RUNTIME_ASSERT(SharedInfoWrapper::IsInstance(shared_info)); in RUNTIME_FUNCTION() 143 RUNTIME_ASSERT(JSValue::cast(*script_object)->value()->IsScript()); in RUNTIME_FUNCTION() 147 RUNTIME_ASSERT(function_wrapper->value()->IsSharedFunctionInfo()); in RUNTIME_FUNCTION() 168 RUNTIME_ASSERT(parent_wrapper->value()->IsSharedFunctionInfo()); in RUNTIME_FUNCTION() 169 RUNTIME_ASSERT(orig_wrapper->value()->IsSharedFunctionInfo()); in RUNTIME_FUNCTION() 170 RUNTIME_ASSERT(subst_wrapper->value()->IsSharedFunctionInfo()); in RUNTIME_FUNCTION() [all …]
|
D | runtime-typedarray.cc | 31 RUNTIME_ASSERT(!source.is_identical_to(target)); in RUNTIME_FUNCTION() 33 RUNTIME_ASSERT(TryNumberToSize(isolate, *first, &start)); in RUNTIME_FUNCTION() 34 RUNTIME_ASSERT(TryNumberToSize(isolate, *new_length, &target_length)); in RUNTIME_FUNCTION() 35 RUNTIME_ASSERT(NumberToSize(isolate, target->byte_length()) >= target_length); in RUNTIME_FUNCTION() 40 RUNTIME_ASSERT(start <= source_byte_length); in RUNTIME_FUNCTION() 41 RUNTIME_ASSERT(source_byte_length - start >= target_length); in RUNTIME_FUNCTION() 58 RUNTIME_ASSERT(!array_buffer->is_shared()); in RUNTIME_FUNCTION() 100 RUNTIME_ASSERT(arrayId >= Runtime::ARRAY_ID_FIRST && in RUNTIME_FUNCTION() 108 RUNTIME_ASSERT(holder->map()->elements_kind() == fixed_elements_kind); in RUNTIME_FUNCTION() 112 RUNTIME_ASSERT(TryNumberToSize(isolate, *byte_offset_object, &byte_offset)); in RUNTIME_FUNCTION() [all …]
|
D | runtime-internal.cc | 23 RUNTIME_ASSERT(isolate->bootstrapper()->IsActive()); in RUNTIME_FUNCTION() 32 RUNTIME_ASSERT(isolate->bootstrapper()->IsActive()); in RUNTIME_FUNCTION() 45 RUNTIME_ASSERT(isolate->bootstrapper()->IsActive()); in RUNTIME_FUNCTION() 58 RUNTIME_ASSERT(array->HasFastElements()); in RUNTIME_FUNCTION() 59 RUNTIME_ASSERT(isolate->bootstrapper()->IsActive()); in RUNTIME_FUNCTION() 64 RUNTIME_ASSERT(fixed_array->get(i)->IsString()); in RUNTIME_FUNCTION() 66 RUNTIME_ASSERT(fixed_array->get(i + 1)->IsJSObject()); in RUNTIME_FUNCTION() 72 RUNTIME_ASSERT(index != Context::kNotFound); in RUNTIME_FUNCTION() 215 RUNTIME_ASSERT(JSReceiver::GetDataProperty(promise, key)->IsUndefined()); in RUNTIME_FUNCTION() 247 RUNTIME_ASSERT(IsAligned(size, kPointerSize)); in RUNTIME_FUNCTION() [all …]
|
D | runtime-collections.cc | 34 RUNTIME_ASSERT(object->IsJSSet() || object->IsJSMap()); in RUNTIME_FUNCTION() 94 RUNTIME_ASSERT(kind == JSSetIterator::kKindValues || in RUNTIME_FUNCTION() 189 RUNTIME_ASSERT(kind == JSMapIterator::kKindKeys || in RUNTIME_FUNCTION() 235 RUNTIME_ASSERT(max_entries >= 0); in RUNTIME_FUNCTION() 289 RUNTIME_ASSERT(key->IsJSReceiver() || key->IsSymbol()); in RUNTIME_FUNCTION() 292 RUNTIME_ASSERT(table->IsKey(*key)); in RUNTIME_FUNCTION() 304 RUNTIME_ASSERT(key->IsJSReceiver() || key->IsSymbol()); in RUNTIME_FUNCTION() 307 RUNTIME_ASSERT(table->IsKey(*key)); in RUNTIME_FUNCTION() 319 RUNTIME_ASSERT(key->IsJSReceiver() || key->IsSymbol()); in RUNTIME_FUNCTION() 322 RUNTIME_ASSERT(table->IsKey(*key)); in RUNTIME_FUNCTION() [all …]
|
D | runtime-atomics.cc | 376 RUNTIME_ASSERT(sta->GetBuffer()->is_shared()); in RUNTIME_FUNCTION() 377 RUNTIME_ASSERT(index < NumberToSize(isolate, sta->length())); in RUNTIME_FUNCTION() 408 RUNTIME_ASSERT(sta->GetBuffer()->is_shared()); in RUNTIME_FUNCTION() 409 RUNTIME_ASSERT(index < NumberToSize(isolate, sta->length())); in RUNTIME_FUNCTION() 440 RUNTIME_ASSERT(sta->GetBuffer()->is_shared()); in RUNTIME_FUNCTION() 441 RUNTIME_ASSERT(index < NumberToSize(isolate, sta->length())); in RUNTIME_FUNCTION() 472 RUNTIME_ASSERT(sta->GetBuffer()->is_shared()); in RUNTIME_FUNCTION() 473 RUNTIME_ASSERT(index < NumberToSize(isolate, sta->length())); in RUNTIME_FUNCTION() 504 RUNTIME_ASSERT(sta->GetBuffer()->is_shared()); in RUNTIME_FUNCTION() 505 RUNTIME_ASSERT(index < NumberToSize(isolate, sta->length())); in RUNTIME_FUNCTION() [all …]
|
D | runtime-debug.cc | 47 RUNTIME_ASSERT(args[0]->IsJSFunction() || args[0]->IsUndefined() || in RUNTIME_FUNCTION() 398 RUNTIME_ASSERT(obj->HasNamedInterceptor()); in RUNTIME_FUNCTION() 415 RUNTIME_ASSERT(obj->HasIndexedInterceptor()); in RUNTIME_FUNCTION() 428 RUNTIME_ASSERT(isolate->debug()->CheckExecutionState(break_id)); in RUNTIME_FUNCTION() 437 RUNTIME_ASSERT(isolate->debug()->CheckExecutionState(break_id)); in RUNTIME_FUNCTION() 492 RUNTIME_ASSERT(isolate->debug()->CheckExecutionState(break_id)); in RUNTIME_FUNCTION() 530 RUNTIME_ASSERT(function->shared()->IsSubjectToDebugging()); in RUNTIME_FUNCTION() 737 RUNTIME_ASSERT(isolate->debug()->CheckExecutionState(break_id)); in RUNTIME_FUNCTION() 764 RUNTIME_ASSERT(isolate->debug()->CheckExecutionState(break_id)); in RUNTIME_FUNCTION() 771 RUNTIME_ASSERT(!frame_it.done()); in RUNTIME_FUNCTION() [all …]
|
D | runtime-numbers.cc | 20 RUNTIME_ASSERT(2 <= radix && radix <= 36); in RUNTIME_FUNCTION() 59 RUNTIME_ASSERT(f >= 0 && f <= 20); in RUNTIME_FUNCTION() 60 RUNTIME_ASSERT(!Double(value).IsSpecial()); in RUNTIME_FUNCTION() 75 RUNTIME_ASSERT(f >= -1 && f <= 20); in RUNTIME_FUNCTION() 76 RUNTIME_ASSERT(!Double(value).IsSpecial()); in RUNTIME_FUNCTION() 91 RUNTIME_ASSERT(f >= 1 && f <= 21); in RUNTIME_FUNCTION() 92 RUNTIME_ASSERT(!Double(value).IsSpecial()); in RUNTIME_FUNCTION() 124 RUNTIME_ASSERT(radix == 0 || (2 <= radix && radix <= 36)); in RUNTIME_FUNCTION()
|
D | runtime-strings.cc | 146 RUNTIME_ASSERT(start_index <= static_cast<uint32_t>(sub->length())); in RUNTIME_FUNCTION() 304 RUNTIME_ASSERT(end >= start); in RUNTIME_FUNCTION() 305 RUNTIME_ASSERT(start >= 0); in RUNTIME_FUNCTION() 306 RUNTIME_ASSERT(end <= string->length()); in RUNTIME_FUNCTION() 328 RUNTIME_ASSERT(args.length() == 1); in RUNTIME_FUNCTION() 342 RUNTIME_ASSERT(regexp_info->HasFastObjectElements()); in RUNTIME_FUNCTION() 440 RUNTIME_ASSERT( in RUNTIME_FUNCTION() 442 RUNTIME_ASSERT(array_length >= 0); in RUNTIME_FUNCTION() 443 RUNTIME_ASSERT(static_cast<size_t>(array_length) <= actual_array_length); in RUNTIME_FUNCTION() 448 RUNTIME_ASSERT(array->HasFastElements()); in RUNTIME_FUNCTION() [all …]
|
D | runtime-function.cc | 45 RUNTIME_ASSERT(f->RemovePrototype()); in RUNTIME_FUNCTION() 92 RUNTIME_ASSERT(0 <= offset && offset < code->Size()); in RUNTIME_FUNCTION() 116 RUNTIME_ASSERT((length & 0xC0000000) == 0xC0000000 || in RUNTIME_FUNCTION() 129 RUNTIME_ASSERT(fun->IsConstructor()); in RUNTIME_FUNCTION() 216 RUNTIME_ASSERT(args.length() == 1); in RUNTIME_FUNCTION() 238 RUNTIME_ASSERT(args.length() == 1); in RUNTIME_FUNCTION() 293 RUNTIME_ASSERT(offset >= 0); in RUNTIME_FUNCTION() 297 RUNTIME_ASSERT(argc >= 0 && argc <= kMaxArgc); in RUNTIME_FUNCTION()
|
D | runtime-test.cc | 86 RUNTIME_ASSERT(args.length() == 1 || args.length() == 2); in RUNTIME_FUNCTION() 90 RUNTIME_ASSERT(function->shared()->allows_lazy_compilation() || in RUNTIME_FUNCTION() 114 RUNTIME_ASSERT(args.length() == 0 || args.length() == 1); in RUNTIME_FUNCTION() 135 RUNTIME_ASSERT(function->shared()->allows_lazy_compilation() || in RUNTIME_FUNCTION() 164 RUNTIME_ASSERT(args.length() == 1 || args.length() == 2); in RUNTIME_FUNCTION() 201 RUNTIME_ASSERT(FLAG_block_concurrent_recompilation); in RUNTIME_FUNCTION() 202 RUNTIME_ASSERT(isolate->concurrent_recompilation_enabled()); in RUNTIME_FUNCTION()
|
D | runtime-symbol.cc | 19 RUNTIME_ASSERT(name->IsString() || name->IsUndefined()); in RUNTIME_FUNCTION() 30 RUNTIME_ASSERT(name->IsString() || name->IsUndefined()); in RUNTIME_FUNCTION()
|
D | runtime-array.cc | 24 RUNTIME_ASSERT(length->IsSmi() && Smi::cast(length)->value() == 0); in RUNTIME_FUNCTION() 25 RUNTIME_ASSERT(prototype->HasFastSmiOrObjectElements()); in RUNTIME_FUNCTION() 83 RUNTIME_ASSERT(args.length() == 2); in RUNTIME_FUNCTION() 99 RUNTIME_ASSERT(array->HasFastSmiOrObjectElements()); in RUNTIME_FUNCTION() 203 RUNTIME_ASSERT(array->HasFastSmiOrObjectElements() || in RUNTIME_FUNCTION() 400 RUNTIME_ASSERT(!array->HasFixedTypedArrayElements() && in RUNTIME_FUNCTION()
|
D | runtime-object.cc | 300 RUNTIME_ASSERT(properties <= 100000); in RUNTIME_FUNCTION() 466 RUNTIME_ASSERT(args.length() == 4); in RUNTIME_FUNCTION() 479 RUNTIME_ASSERT(!it.IsFound()); in RUNTIME_FUNCTION() 494 RUNTIME_ASSERT(args.length() == 3); in RUNTIME_FUNCTION() 508 RUNTIME_ASSERT(!it.IsFound()); in RUNTIME_FUNCTION() 512 RUNTIME_ASSERT(!JSArray::WouldChangeReadOnlyLength(array, index)); in RUNTIME_FUNCTION() 526 RUNTIME_ASSERT(args.length() == 2); in RUNTIME_FUNCTION() 544 RUNTIME_ASSERT(args.length() == 4); in RUNTIME_FUNCTION() 850 RUNTIME_ASSERT((index->value() & 1) == 1); in RUNTIME_FUNCTION() 854 RUNTIME_ASSERT(field_index.property_index() < in RUNTIME_FUNCTION() [all …]
|
D | runtime-generator.cc | 22 RUNTIME_ASSERT(function->shared()->is_generator()); in RUNTIME_FUNCTION() 47 RUNTIME_ASSERT(frame->function()->shared()->is_generator()); in RUNTIME_FUNCTION() 202 RUNTIME_ASSERT(0 <= offset && offset < code->Size()); in RUNTIME_FUNCTION()
|
D | runtime-regexp.cc | 661 RUNTIME_ASSERT(regexp->GetFlags() & JSRegExp::kGlobal); in RUNTIME_FUNCTION() 662 RUNTIME_ASSERT(last_match_info->HasFastObjectElements()); in RUNTIME_FUNCTION() 689 RUNTIME_ASSERT(limit > 0); in RUNTIME_FUNCTION() 693 RUNTIME_ASSERT(pattern_length > 0); in RUNTIME_FUNCTION() 780 RUNTIME_ASSERT(index >= 0); in RUNTIME_FUNCTION() 781 RUNTIME_ASSERT(index <= subject->length()); in RUNTIME_FUNCTION() 811 RUNTIME_ASSERT(size >= 0 && size <= FixedArray::kMaxLength); in RUNTIME_FUNCTION() 999 RUNTIME_ASSERT(last_match_info->HasFastObjectElements()); in RUNTIME_FUNCTION() 1000 RUNTIME_ASSERT(result_array->HasFastObjectElements()); in RUNTIME_FUNCTION() 1003 RUNTIME_ASSERT(regexp->GetFlags() & JSRegExp::kGlobal); in RUNTIME_FUNCTION()
|
D | runtime-observe.cc | 29 RUNTIME_ASSERT(!obj->IsJSGlobalProxy()); in RUNTIME_FUNCTION() 31 RUNTIME_ASSERT(!obj->map()->is_observed()); in RUNTIME_FUNCTION()
|
D | runtime-simd.cc | 213 RUNTIME_ASSERT(name >= 0 && name < lanes); 439 RUNTIME_ASSERT(args[index]->IsNumber()); \ 441 RUNTIME_ASSERT(args[index]->ToInt32(&signed_shift)); \ 829 RUNTIME_ASSERT(CanCast<lane_type>(a_value)); \ 917 RUNTIME_ASSERT(index >= 0 && index * bpe + bytes <= byte_length); \ 936 RUNTIME_ASSERT(index >= 0 && index * bpe + bytes <= byte_length); \
|
D | runtime-compiler.cc | 151 RUNTIME_ASSERT(frame->function()->IsJSFunction()); in RUNTIME_FUNCTION() 219 RUNTIME_ASSERT(FLAG_use_osr); in RUNTIME_FUNCTION()
|
D | runtime-literals.cc | 269 RUNTIME_ASSERT(literals_index >= 0 && in RUNTIME_FUNCTION() 406 RUNTIME_ASSERT(args.length() == 5); in RUNTIME_FUNCTION()
|
D | runtime-maths.cc | 71 RUNTIME_ASSERT(result->byte_length() == Smi::FromInt(2 * sizeof(double))); in RUNTIME_FUNCTION()
|
D | runtime-i18n.cc | 155 RUNTIME_ASSERT(length < 100); in RUNTIME_FUNCTION() 581 RUNTIME_ASSERT(form_id >= 0 && in RUNTIME_FUNCTION()
|
D | runtime-scopes.cc | 153 RUNTIME_ASSERT(args.length() == 3); in RUNTIME_FUNCTION() 172 RUNTIME_ASSERT(args.length() == 2); in RUNTIME_FUNCTION()
|