v8  3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ToBooleanStub Class Reference

#include <code-stubs.h>

Inheritance diagram for ToBooleanStub:
Collaboration diagram for ToBooleanStub:

Data Structures

class  Types
 

Public Types

enum  Type {
  UNDEFINED, BOOLEAN, NULL_TYPE, SMI,
  SPEC_OBJECT, STRING, HEAP_NUMBER, NUMBER_OF_TYPES
}
 

Public Member Functions

 STATIC_ASSERT (NUMBER_OF_TYPES<=8)
 
 ToBooleanStub (Register tos, Types types=Types())
 
void Generate (MacroAssembler *masm)
 
virtual int GetCodeKind ()
 
virtual void PrintName (StringStream *stream)
 
virtual bool SometimesSetsUpAFrame ()
 

Static Public Member Functions

static Types no_types ()
 
static Types all_types ()
 

Detailed Description

Definition at line 1032 of file code-stubs.h.

Member Enumeration Documentation

enum Type
Enumerator
UNDEFINED 
BOOLEAN 
NULL_TYPE 
SMI 
SPEC_OBJECT 
STRING 
HEAP_NUMBER 
NUMBER_OF_TYPES 

Definition at line 1034 of file code-stubs.h.

Constructor & Destructor Documentation

ToBooleanStub ( Register  tos,
Types  types = Types() 
)
inlineexplicit

Definition at line 1071 of file code-stubs.h.

Member Function Documentation

static Types all_types ( )
inlinestatic

Definition at line 1069 of file code-stubs.h.

References ToBooleanStub::NUMBER_OF_TYPES.

void Generate ( MacroAssembler masm)
virtual int GetCodeKind ( )
inlinevirtual

Definition at line 1075 of file code-stubs.h.

static Types no_types ( )
inlinestatic

Definition at line 1068 of file code-stubs.h.

void PrintName ( StringStream stream)
virtual

Definition at line 368 of file code-stubs.cc.

References StringStream::Add(), and ToBooleanStub::Types::Print().

virtual bool SometimesSetsUpAFrame ( )
inlinevirtual

Definition at line 1078 of file code-stubs.h.

STATIC_ASSERT ( NUMBER_OF_TYPES<=  8)

The documentation for this class was generated from the following files: