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

Side by Side Diff: src/codegen.cc

Issue 151018: Optimize %ClassOf() on IA-32 and use it instead of the... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 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/arm/codegen-arm.cc ('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 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 // inline instead of generating calls to them. They are used 412 // inline instead of generating calls to them. They are used
413 // for implementing Function.prototype.call() and 413 // for implementing Function.prototype.call() and
414 // Function.prototype.apply(). 414 // Function.prototype.apply().
415 CodeGenerator::InlineRuntimeLUT CodeGenerator::kInlineRuntimeLUT[] = { 415 CodeGenerator::InlineRuntimeLUT CodeGenerator::kInlineRuntimeLUT[] = {
416 {&CodeGenerator::GenerateIsSmi, "_IsSmi"}, 416 {&CodeGenerator::GenerateIsSmi, "_IsSmi"},
417 {&CodeGenerator::GenerateIsNonNegativeSmi, "_IsNonNegativeSmi"}, 417 {&CodeGenerator::GenerateIsNonNegativeSmi, "_IsNonNegativeSmi"},
418 {&CodeGenerator::GenerateIsArray, "_IsArray"}, 418 {&CodeGenerator::GenerateIsArray, "_IsArray"},
419 {&CodeGenerator::GenerateIsConstructCall, "_IsConstructCall"}, 419 {&CodeGenerator::GenerateIsConstructCall, "_IsConstructCall"},
420 {&CodeGenerator::GenerateArgumentsLength, "_ArgumentsLength"}, 420 {&CodeGenerator::GenerateArgumentsLength, "_ArgumentsLength"},
421 {&CodeGenerator::GenerateArgumentsAccess, "_Arguments"}, 421 {&CodeGenerator::GenerateArgumentsAccess, "_Arguments"},
422 {&CodeGenerator::GenerateClassOf, "_ClassOf"},
422 {&CodeGenerator::GenerateValueOf, "_ValueOf"}, 423 {&CodeGenerator::GenerateValueOf, "_ValueOf"},
423 {&CodeGenerator::GenerateSetValueOf, "_SetValueOf"}, 424 {&CodeGenerator::GenerateSetValueOf, "_SetValueOf"},
424 {&CodeGenerator::GenerateFastCharCodeAt, "_FastCharCodeAt"}, 425 {&CodeGenerator::GenerateFastCharCodeAt, "_FastCharCodeAt"},
425 {&CodeGenerator::GenerateObjectEquals, "_ObjectEquals"}, 426 {&CodeGenerator::GenerateObjectEquals, "_ObjectEquals"},
426 {&CodeGenerator::GenerateLog, "_Log"}, 427 {&CodeGenerator::GenerateLog, "_Log"},
427 {&CodeGenerator::GenerateRandomPositiveSmi, "_RandomPositiveSmi"}, 428 {&CodeGenerator::GenerateRandomPositiveSmi, "_RandomPositiveSmi"},
428 {&CodeGenerator::GenerateMathSin, "_Math_sin"}, 429 {&CodeGenerator::GenerateMathSin, "_Math_sin"},
429 {&CodeGenerator::GenerateMathCos, "_Math_cos"} 430 {&CodeGenerator::GenerateMathCos, "_Math_cos"}
430 }; 431 };
431 432
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 void ArgumentsAccessStub::Generate(MacroAssembler* masm) { 529 void ArgumentsAccessStub::Generate(MacroAssembler* masm) {
529 switch (type_) { 530 switch (type_) {
530 case READ_LENGTH: GenerateReadLength(masm); break; 531 case READ_LENGTH: GenerateReadLength(masm); break;
531 case READ_ELEMENT: GenerateReadElement(masm); break; 532 case READ_ELEMENT: GenerateReadElement(masm); break;
532 case NEW_OBJECT: GenerateNewObject(masm); break; 533 case NEW_OBJECT: GenerateNewObject(masm); break;
533 } 534 }
534 } 535 }
535 536
536 537
537 } } // namespace v8::internal 538 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/codegen-arm.cc ('k') | src/ia32/codegen-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698