Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(688)

Unified Diff: src/runtime.cc

Issue 7475: - Specialized IsClassOf for Number, Boolean, Arguments, and Function. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« src/runtime.h ('K') | « src/runtime.h ('k') | src/runtime.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« src/runtime.h ('K') | « src/runtime.h ('k') | src/runtime.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698