v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#include <builtins.h>
Public Types | |
enum | Name { builtin_count } |
enum | CFunctionId { cfunction_count } |
enum | JavaScript { id_count } |
Public Member Functions | |
~Builtins () | |
void | SetUp (Isolate *isolate, bool create_heap_objects) |
void | TearDown () |
void | IterateBuiltins (ObjectVisitor *v) |
const char * | Lookup (byte *pc) |
Code * | builtin (Name name) |
Address | builtin_address (Name name) |
const char * | name (int index) |
Handle< Code > | GetCode (JavaScript id, bool *resolved) |
bool | is_initialized () const |
Static Public Member Functions | |
static Address | c_function_address (CFunctionId id) |
static const char * | GetName (JavaScript id) |
static int | GetArgumentsCount (JavaScript id) |
static int | NumberOfJavaScriptBuiltins () |
Friends | |
class | BuiltinFunctionTable |
class | Isolate |
Definition at line 269 of file builtins.h.
enum CFunctionId |
Enumerator | |
---|---|
cfunction_count |
Definition at line 297 of file builtins.h.
enum JavaScript |
Enumerator | |
---|---|
id_count |
Definition at line 304 of file builtins.h.
enum Name |
Enumerator | |
---|---|
builtin_count |
Definition at line 284 of file builtins.h.
~Builtins | ( | ) |
Definition at line 1502 of file builtins.cc.
Definition at line 322 of file builtins.h.
References Builtins::name().
Referenced by BackEdgeTable::AddStackCheck(), Heap::AllocateSharedFunctionInfo(), SharedFunctionInfo::AttachInitialMap(), Logger::CodeCreateEvent(), SharedFunctionInfo::is_compiled(), JSFunction::is_compiled(), JSFunction::IsInOptimizationQueue(), JSFunction::IsMarkedForConcurrentOptimization(), JSFunction::IsMarkedForOptimization(), TypeFeedbackOracle::LoadIsBuiltin(), BackEdgeTable::Patch(), BackEdgeTable::RemoveStackCheck(), BackEdgeTable::Revert(), SharedFunctionInfo::StartInobjectSlackTracking(), and ArgumentsAdaptorFrame::unchecked_code().
Definition at line 328 of file builtins.h.
References Builtins::name().
|
inlinestatic |
Definition at line 332 of file builtins.h.
|
inlinestatic |
Definition at line 342 of file builtins.h.
Handle<Code> GetCode | ( | JavaScript | id, |
bool * | resolved | ||
) |
|
inlinestatic |
Definition at line 336 of file builtins.h.
|
inline |
Definition at line 346 of file builtins.h.
void IterateBuiltins | ( | ObjectVisitor * | v | ) |
Definition at line 1682 of file builtins.cc.
Referenced by Heap::IterateStrongRoots().
const char * Lookup | ( | byte * | pc | ) |
Definition at line 1687 of file builtins.cc.
References Code::contains(), and NULL.
|
inline |
Definition at line 337 of file builtins.h.
References ASSERT, and Builtins::builtin_count.
Referenced by Builtins::builtin(), and Builtins::builtin_address().
|
inlinestatic |
Definition at line 344 of file builtins.h.
References Builtins::id_count.
void SetUp | ( | Isolate * | isolate, |
bool | create_heap_objects | ||
) |
Definition at line 1603 of file builtins.cc.
References ASSERT, BUILTIN, code(), MacroAssembler::CodeObject(), Heap::CreateCode(), V8::FatalProcessOutOfMemory(), flags, BuiltinDesc::flags, BuiltinFunctionTable::functions(), GDBJIT, BuiltinDesc::generator, Assembler::GetCode(), Isolate::GetCodeTracer(), MacroAssembler::has_frame(), Isolate::heap(), v8::internal::KB, NULL, v8::internal::PrintF(), PROFILE, and BuiltinDesc::s_name.
void TearDown | ( | ) |
Definition at line 1677 of file builtins.cc.
|
friend |
Definition at line 408 of file builtins.h.
|
friend |
Definition at line 409 of file builtins.h.