v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#include <runtime.h>
Data Structures | |
struct | Function |
Public Types | |
enum | FunctionId { kNumFunctions, kFirstInlineFunction = kInlineIsSmi } |
enum | IntrinsicType { RUNTIME, RUNTIME_HIDDEN, INLINE, INLINE_OPTIMIZED } |
enum | TypedArrayId { ARRAY_ID_UINT8 = 1, ARRAY_ID_INT8 = 2, ARRAY_ID_UINT16 = 3, ARRAY_ID_INT16 = 4, ARRAY_ID_UINT32 = 5, ARRAY_ID_INT32 = 6, ARRAY_ID_FLOAT32 = 7, ARRAY_ID_FLOAT64 = 8, ARRAY_ID_UINT8_CLAMPED = 9 } |
Static Public Member Functions | |
static MUST_USE_RESULT MaybeObject * | InitializeIntrinsicFunctionNames (Heap *heap, Object *dictionary) |
static const Function * | FunctionForName (Handle< String > name) |
static const Function * | FunctionForId (FunctionId id) |
static int | StringMatch (Isolate *isolate, Handle< String > sub, Handle< String > pat, int index) |
static bool | IsUpperCaseChar (RuntimeState *runtime_state, uint16_t ch) |
static Handle< Object > | GetElementOrCharAt (Isolate *isolate, Handle< Object > object, uint32_t index) |
static Handle< Object > | SetObjectProperty (Isolate *isolate, Handle< Object > object, Handle< Object > key, Handle< Object > value, PropertyAttributes attr, StrictMode strict_mode) |
static Handle< Object > | ForceSetObjectProperty (Isolate *isolate, Handle< JSObject > object, Handle< Object > key, Handle< Object > value, PropertyAttributes attr) |
static MUST_USE_RESULT MaybeObject * | DeleteObjectProperty (Isolate *isolate, Handle< JSReceiver > object, Handle< Object > key, JSReceiver::DeleteMode mode) |
static MUST_USE_RESULT MaybeObject * | HasObjectProperty (Isolate *isolate, Handle< JSReceiver > object, Handle< Object > key) |
static MUST_USE_RESULT MaybeObject * | GetObjectProperty (Isolate *isolate, Handle< Object > object, Handle< Object > key) |
static MUST_USE_RESULT MaybeObject * | GetObjectPropertyOrFail (Isolate *isolate, Handle< Object > object, Handle< Object > key) |
static void | SetupArrayBuffer (Isolate *isolate, Handle< JSArrayBuffer > array_buffer, bool is_external, void *data, size_t allocated_length) |
static bool | SetupArrayBufferAllocatingData (Isolate *isolate, Handle< JSArrayBuffer > array_buffer, size_t allocated_length, bool initialize=true) |
static void | NeuterArrayBuffer (Handle< JSArrayBuffer > array_buffer) |
static void | FreeArrayBuffer (Isolate *isolate, JSArrayBuffer *phantom_array_buffer) |
static void | ArrayIdToTypeAndSize (int array_id, ExternalArrayType *type, ElementsKind *external_elements_kind, ElementsKind *fixed_elements_kind, size_t *element_size) |
static void | PerformGC (Object *result, Isolate *isolate) |
static void | OutOfMemory () |
static Handle< Object > | CreateArrayLiteralBoilerplate (Isolate *isolate, Handle< FixedArray > literals, Handle< FixedArray > elements) |
Static Public Attributes | |
static const int | kNotFound = -1 |
enum FunctionId |
enum IntrinsicType |
enum TypedArrayId |
|
static |
Definition at line 928 of file runtime.cc.
References ARRAY_ID_CASE, TYPED_ARRAYS, and UNREACHABLE.
Referenced by v8::internal::RUNTIME_FUNCTION().
|
static |
Definition at line 352 of file runtime.cc.
References ASSERT, Handle< T >::cast(), Smi::cast(), FixedArrayBase::cast(), FixedArray::cast(), Map::cast(), CHECK, Isolate::context(), Factory::CopyFixedArray(), Factory::CopyFixedDoubleArray(), Isolate::factory(), v8::internal::FAST_ELEMENTS, v8::internal::FAST_HOLEY_ELEMENTS, Smi::FromInt(), FixedArray::get(), Isolate::heap(), Heap::InNewSpace(), v8::internal::IsFastDoubleElementsKind(), v8::internal::IsFastElementsKind(), v8::internal::IsFastHoleyElementsKind(), v8::internal::IsFastObjectElementsKind(), v8::internal::IsFastSmiOrObjectElementsKind(), Context::native_context(), JSFunction::NativeContextFromLiterals(), Factory::NewJSObject(), v8::internal::NOT_TENURED, v8::internal::TENURED, and v8::internal::TransitionElements().
|
static |
Definition at line 5442 of file runtime.cc.
References Handle< T >::cast(), JSReceiver::DeleteElement(), JSReceiver::DeleteProperty(), Failure::Exception(), Isolate::heap(), v8::internal::name, RETURN_IF_EMPTY_HANDLE, Value::ToArrayIndex(), and Execution::ToString().
Referenced by v8::internal::DeleteProperty(), and v8::internal::ForceDeleteProperty().
|
static |
Definition at line 5387 of file runtime.cc.
References Handle< T >::cast(), v8::internal::DEFINE_PROPERTY, JSObject::SetElement(), JSObject::SetLocalPropertyIgnoreAttributes(), v8::internal::SLOPPY, Value::ToArrayIndex(), and Execution::ToString().
Referenced by v8::internal::ForceSetProperty(), and v8::internal::RUNTIME_FUNCTION().
|
static |
Definition at line 748 of file runtime.cc.
References Heap::AdjustAmountOfExternalAllocatedMemory(), V8::ArrayBufferAllocator(), ASSERT, CHECK, ArrayBuffer::Allocator::Free(), Isolate::heap(), JSArrayBuffer::is_external(), v8::internal::NULL, v8::internal::NumberToSize(), and JSArrayBuffer::should_be_freed().
Referenced by WeakListVisitor< JSArrayBuffer >::VisitPhantomObject().
|
static |
Definition at line 15154 of file runtime.cc.
Referenced by MacroAssembler::CallRuntime(), and MacroAssembler::CallRuntimeSaveDoubles().
|
static |
Definition at line 15142 of file runtime.cc.
References Smi::cast(), Runtime::kNotFound, v8::internal::NULL, and Smi::value().
|
static |
Definition at line 4924 of file runtime.cc.
References Handle< T >::cast(), String::cast(), Object::GetElement(), Object::GetPrototype(), Value::IsString(), and Value::IsUndefined().
Referenced by Runtime::GetObjectProperty(), and LoadIC::Load().
|
static |
Definition at line 4990 of file runtime.cc.
References Isolate::factory(), Runtime::GetElementOrCharAt(), v8::internal::HandleVector(), Value::IsUndefined(), Factory::NewTypeError(), RETURN_IF_EMPTY_HANDLE, Isolate::Throw(), and Value::ToArrayIndex().
Referenced by Runtime::GetObjectPropertyOrFail(), v8::internal::GetProperty(), and v8::internal::RUNTIME_FUNCTION().
|
static |
Definition at line 4982 of file runtime.cc.
References CALL_HEAP_FUNCTION_PASS_EXCEPTION, and Runtime::GetObjectProperty().
Referenced by KeyedLoadIC::Load().
|
static |
Definition at line 4964 of file runtime.cc.
References JSReceiver::HasElement(), JSReceiver::HasProperty(), Isolate::heap(), RETURN_IF_EMPTY_HANDLE, Value::ToArrayIndex(), and Heap::ToBoolean().
Referenced by v8::internal::HasProperty().
Definition at line 15114 of file runtime.cc.
References Dictionary< Shape, Key >::Add(), ASSERT, NameDictionary::cast(), String::cast(), Smi::FromInt(), Heap::InternalizeUtf8String(), Runtime::kNumFunctions, Runtime::Function::name, NONE, Representation::None(), v8::internal::NORMAL, and v8::internal::NULL.
|
static |
Definition at line 6913 of file runtime.cc.
References Mapping< T, size >::get(), ToUppercase::kMaxWidth, and RuntimeState::to_upper_mapping().
Referenced by FuncNameInferrer::PushEnclosingName().
|
static |
Definition at line 820 of file runtime.cc.
References JSArrayBufferView::cast(), JSTypedArray::cast(), JSDataView::cast(), v8::internal::handle(), Value::IsUndefined(), JSTypedArray::Neuter(), JSDataView::Neuter(), and UNREACHABLE.
Referenced by ArrayBuffer::Neuter(), and v8::internal::RUNTIME_FUNCTION().
|
static |
Definition at line 15180 of file runtime.cc.
References Heap::FatalProcessOutOfMemory(), and UNREACHABLE.
Definition at line 15159 of file runtime.cc.
References NewSpace::AddFreshPage(), Failure::allocation_space(), Failure::cast(), Heap::CollectAllGarbage(), Heap::CollectGarbage(), Isolate::counters(), Isolate::heap(), Heap::kNoGCFlags, and Heap::new_space().
|
static |
Definition at line 5283 of file runtime.cc.
References Handle< T >::cast(), v8::internal::DEFINE_PROPERTY, Isolate::factory(), v8::internal::HandleVector(), Value::IsNumber(), Value::IsSymbol(), Value::IsUndefined(), Factory::NewTypeError(), NONE, v8::internal::SET_PROPERTY, JSObject::SetElement(), JSReceiver::SetProperty(), Isolate::Throw(), Value::ToArrayIndex(), Execution::ToNumber(), and Execution::ToString().
Referenced by ScopeInfo::CopyContextLocalsToScopeObject(), v8::internal::RUNTIME_FUNCTION(), Object::Set(), and KeyedStoreIC::Store().
|
static |
Definition at line 768 of file runtime.cc.
References Heap::array_buffers_list(), ASSERT, CHECK, Isolate::factory(), Smi::FromInt(), Isolate::heap(), ArrayBuffer::kInternalFieldCount, Factory::NewNumberFromSize(), and Heap::set_array_buffers_list().
Referenced by ArrayBuffer::New(), and Runtime::SetupArrayBufferAllocatingData().
|
static |
Definition at line 793 of file runtime.cc.
References Heap::AdjustAmountOfExternalAllocatedMemory(), ArrayBuffer::Allocator::Allocate(), ArrayBuffer::Allocator::AllocateUninitialized(), V8::ArrayBufferAllocator(), CHECK, Isolate::heap(), v8::internal::NULL, and Runtime::SetupArrayBuffer().
Referenced by ArrayBuffer::New(), and v8::internal::RUNTIME_FUNCTION().
Definition at line 4347 of file runtime.cc.
References ASSERT, v8::internal::FlattenString(), String::FlatContent::IsAscii(), v8::internal::SearchString(), String::FlatContent::ToOneByteVector(), and String::FlatContent::ToUC16Vector().
Referenced by v8::internal::RUNTIME_FUNCTION(), and v8::internal::StringReplaceOneCharWithString().
|
static |
Definition at line 790 of file runtime.h.
Referenced by Runtime::FunctionForName().