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

Side by Side Diff: src/codegen.cc

Issue 661179: Inline Math.sqrt(). ... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 9 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 | « no previous file | src/ia32/codegen-ia32.h » ('j') | src/ia32/codegen-ia32.cc » ('J')
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 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 {&CodeGenerator::GenerateLog, "_Log"}, 374 {&CodeGenerator::GenerateLog, "_Log"},
375 {&CodeGenerator::GenerateRandomPositiveSmi, "_RandomPositiveSmi"}, 375 {&CodeGenerator::GenerateRandomPositiveSmi, "_RandomPositiveSmi"},
376 {&CodeGenerator::GenerateIsObject, "_IsObject"}, 376 {&CodeGenerator::GenerateIsObject, "_IsObject"},
377 {&CodeGenerator::GenerateIsFunction, "_IsFunction"}, 377 {&CodeGenerator::GenerateIsFunction, "_IsFunction"},
378 {&CodeGenerator::GenerateIsUndetectableObject, "_IsUndetectableObject"}, 378 {&CodeGenerator::GenerateIsUndetectableObject, "_IsUndetectableObject"},
379 {&CodeGenerator::GenerateStringAdd, "_StringAdd"}, 379 {&CodeGenerator::GenerateStringAdd, "_StringAdd"},
380 {&CodeGenerator::GenerateSubString, "_SubString"}, 380 {&CodeGenerator::GenerateSubString, "_SubString"},
381 {&CodeGenerator::GenerateStringCompare, "_StringCompare"}, 381 {&CodeGenerator::GenerateStringCompare, "_StringCompare"},
382 {&CodeGenerator::GenerateRegExpExec, "_RegExpExec"}, 382 {&CodeGenerator::GenerateRegExpExec, "_RegExpExec"},
383 {&CodeGenerator::GenerateNumberToString, "_NumberToString"}, 383 {&CodeGenerator::GenerateNumberToString, "_NumberToString"},
384 {&CodeGenerator::GeneratePow, "_Pow"}, 384 {&CodeGenerator::GenerateMathPow, "_Math_pow"},
385 {&CodeGenerator::GenerateMathSin, "_Math_sin"}, 385 {&CodeGenerator::GenerateMathSin, "_Math_sin"},
386 {&CodeGenerator::GenerateMathCos, "_Math_cos"}, 386 {&CodeGenerator::GenerateMathCos, "_Math_cos"},
387 {&CodeGenerator::GenerateMathSqrt, "_Math_sqrt"},
387 }; 388 };
388 389
389 390
390 CodeGenerator::InlineRuntimeLUT* CodeGenerator::FindInlineRuntimeLUT( 391 CodeGenerator::InlineRuntimeLUT* CodeGenerator::FindInlineRuntimeLUT(
391 Handle<String> name) { 392 Handle<String> name) {
392 const int entries_count = 393 const int entries_count =
393 sizeof(kInlineRuntimeLUT) / sizeof(InlineRuntimeLUT); 394 sizeof(kInlineRuntimeLUT) / sizeof(InlineRuntimeLUT);
394 for (int i = 0; i < entries_count; i++) { 395 for (int i = 0; i < entries_count; i++) {
395 InlineRuntimeLUT* entry = &kInlineRuntimeLUT[i]; 396 InlineRuntimeLUT* entry = &kInlineRuntimeLUT[i];
396 if (name->IsEqualTo(CStrVector(entry->name))) { 397 if (name->IsEqualTo(CStrVector(entry->name))) {
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 } 530 }
530 } 531 }
531 532
532 533
533 void ApiGetterEntryStub::SetCustomCache(Code* value) { 534 void ApiGetterEntryStub::SetCustomCache(Code* value) {
534 info()->set_load_stub_cache(value); 535 info()->set_load_stub_cache(value);
535 } 536 }
536 537
537 538
538 } } // namespace v8::internal 539 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/ia32/codegen-ia32.h » ('j') | src/ia32/codegen-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698