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

Side by Side Diff: src/full-codegen.cc

Issue 2877018: Refactor type checks in v8natives.js and runtime.js.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/full-codegen.h ('k') | src/ia32/codegen-ia32.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 839 matching lines...) Expand 10 before | Expand all | Expand 10 after
850 850
851 851
852 void FullCodeGenerator::EmitInlineRuntimeCall(CallRuntime* expr) { 852 void FullCodeGenerator::EmitInlineRuntimeCall(CallRuntime* expr) {
853 Handle<String> name = expr->name(); 853 Handle<String> name = expr->name();
854 if (strcmp("_IsSmi", *name->ToCString()) == 0) { 854 if (strcmp("_IsSmi", *name->ToCString()) == 0) {
855 EmitIsSmi(expr->arguments()); 855 EmitIsSmi(expr->arguments());
856 } else if (strcmp("_IsNonNegativeSmi", *name->ToCString()) == 0) { 856 } else if (strcmp("_IsNonNegativeSmi", *name->ToCString()) == 0) {
857 EmitIsNonNegativeSmi(expr->arguments()); 857 EmitIsNonNegativeSmi(expr->arguments());
858 } else if (strcmp("_IsObject", *name->ToCString()) == 0) { 858 } else if (strcmp("_IsObject", *name->ToCString()) == 0) {
859 EmitIsObject(expr->arguments()); 859 EmitIsObject(expr->arguments());
860 } else if (strcmp("_IsSpecObject", *name->ToCString()) == 0) {
861 EmitIsSpecObject(expr->arguments());
860 } else if (strcmp("_IsUndetectableObject", *name->ToCString()) == 0) { 862 } else if (strcmp("_IsUndetectableObject", *name->ToCString()) == 0) {
861 EmitIsUndetectableObject(expr->arguments()); 863 EmitIsUndetectableObject(expr->arguments());
862 } else if (strcmp("_IsFunction", *name->ToCString()) == 0) { 864 } else if (strcmp("_IsFunction", *name->ToCString()) == 0) {
863 EmitIsFunction(expr->arguments()); 865 EmitIsFunction(expr->arguments());
864 } else if (strcmp("_IsArray", *name->ToCString()) == 0) { 866 } else if (strcmp("_IsArray", *name->ToCString()) == 0) {
865 EmitIsArray(expr->arguments()); 867 EmitIsArray(expr->arguments());
866 } else if (strcmp("_IsRegExp", *name->ToCString()) == 0) { 868 } else if (strcmp("_IsRegExp", *name->ToCString()) == 0) {
867 EmitIsRegExp(expr->arguments()); 869 EmitIsRegExp(expr->arguments());
868 } else if (strcmp("_IsConstructCall", *name->ToCString()) == 0) { 870 } else if (strcmp("_IsConstructCall", *name->ToCString()) == 0) {
869 EmitIsConstructCall(expr->arguments()); 871 EmitIsConstructCall(expr->arguments());
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after
1432 // The macros used here must preserve the result register. 1434 // The macros used here must preserve the result register.
1433 __ Drop(stack_depth); 1435 __ Drop(stack_depth);
1434 __ PopTryHandler(); 1436 __ PopTryHandler();
1435 return 0; 1437 return 0;
1436 } 1438 }
1437 1439
1438 #undef __ 1440 #undef __
1439 1441
1440 1442
1441 } } // namespace v8::internal 1443 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/full-codegen.h ('k') | src/ia32/codegen-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698