Index: src/runtime.cc |
=================================================================== |
--- src/runtime.cc (revision 518) |
+++ src/runtime.cc (working copy) |
@@ -246,6 +246,26 @@ |
} |
+static Object* Runtime_IsFunctionClass(Arguments args) { |
+ return IsSpecificClassOf(args, Heap::function_class_symbol()); |
+} |
+ |
+ |
+static Object* Runtime_IsNumberClass(Arguments args) { |
+ return IsSpecificClassOf(args, Heap::Number_symbol()); |
+} |
+ |
+ |
+static Object* Runtime_IsBooleanClass(Arguments args) { |
+ return IsSpecificClassOf(args, Heap::Boolean_symbol()); |
+} |
+ |
+ |
+static Object* Runtime_IsArgumentsClass(Arguments args) { |
+ return IsSpecificClassOf(args, Heap::Arguments_symbol()); |
+} |
+ |
+ |
static Object* Runtime_IsInPrototypeChain(Arguments args) { |
NoHandleAllocation ha; |
ASSERT(args.length() == 2); |