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

Side by Side Diff: src/codegen.cc

Issue 660072: Added fast support for Math.pow. This simply calculates the result using the... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 10 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
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 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 {&CodeGenerator::GenerateLog, "_Log"}, 372 {&CodeGenerator::GenerateLog, "_Log"},
373 {&CodeGenerator::GenerateRandomPositiveSmi, "_RandomPositiveSmi"}, 373 {&CodeGenerator::GenerateRandomPositiveSmi, "_RandomPositiveSmi"},
374 {&CodeGenerator::GenerateIsObject, "_IsObject"}, 374 {&CodeGenerator::GenerateIsObject, "_IsObject"},
375 {&CodeGenerator::GenerateIsFunction, "_IsFunction"}, 375 {&CodeGenerator::GenerateIsFunction, "_IsFunction"},
376 {&CodeGenerator::GenerateIsUndetectableObject, "_IsUndetectableObject"}, 376 {&CodeGenerator::GenerateIsUndetectableObject, "_IsUndetectableObject"},
377 {&CodeGenerator::GenerateStringAdd, "_StringAdd"}, 377 {&CodeGenerator::GenerateStringAdd, "_StringAdd"},
378 {&CodeGenerator::GenerateSubString, "_SubString"}, 378 {&CodeGenerator::GenerateSubString, "_SubString"},
379 {&CodeGenerator::GenerateStringCompare, "_StringCompare"}, 379 {&CodeGenerator::GenerateStringCompare, "_StringCompare"},
380 {&CodeGenerator::GenerateRegExpExec, "_RegExpExec"}, 380 {&CodeGenerator::GenerateRegExpExec, "_RegExpExec"},
381 {&CodeGenerator::GenerateNumberToString, "_NumberToString"}, 381 {&CodeGenerator::GenerateNumberToString, "_NumberToString"},
382 {&CodeGenerator::GeneratePow, "_Pow"},
382 {&CodeGenerator::GenerateMathSin, "_Math_sin"}, 383 {&CodeGenerator::GenerateMathSin, "_Math_sin"},
383 {&CodeGenerator::GenerateMathCos, "_Math_cos"}, 384 {&CodeGenerator::GenerateMathCos, "_Math_cos"},
384 }; 385 };
385 386
386 387
387 CodeGenerator::InlineRuntimeLUT* CodeGenerator::FindInlineRuntimeLUT( 388 CodeGenerator::InlineRuntimeLUT* CodeGenerator::FindInlineRuntimeLUT(
388 Handle<String> name) { 389 Handle<String> name) {
389 const int entries_count = 390 const int entries_count =
390 sizeof(kInlineRuntimeLUT) / sizeof(InlineRuntimeLUT); 391 sizeof(kInlineRuntimeLUT) / sizeof(InlineRuntimeLUT);
391 for (int i = 0; i < entries_count; i++) { 392 for (int i = 0; i < entries_count; i++) {
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 } 527 }
527 } 528 }
528 529
529 530
530 void ApiGetterEntryStub::SetCustomCache(Code* value) { 531 void ApiGetterEntryStub::SetCustomCache(Code* value) {
531 info()->set_load_stub_cache(value); 532 info()->set_load_stub_cache(value);
532 } 533 }
533 534
534 535
535 } } // namespace v8::internal 536 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/codegen-arm.cc ('k') | src/ia32/assembler-ia32.h » ('j') | src/ia32/codegen-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698