OLD | NEW |
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 Loading... |
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::GenerateMathSin, "_Math_sin"}, |
| 383 {&CodeGenerator::GenerateMathCos, "_Math_cos"}, |
382 }; | 384 }; |
383 | 385 |
384 | 386 |
385 CodeGenerator::InlineRuntimeLUT* CodeGenerator::FindInlineRuntimeLUT( | 387 CodeGenerator::InlineRuntimeLUT* CodeGenerator::FindInlineRuntimeLUT( |
386 Handle<String> name) { | 388 Handle<String> name) { |
387 const int entries_count = | 389 const int entries_count = |
388 sizeof(kInlineRuntimeLUT) / sizeof(InlineRuntimeLUT); | 390 sizeof(kInlineRuntimeLUT) / sizeof(InlineRuntimeLUT); |
389 for (int i = 0; i < entries_count; i++) { | 391 for (int i = 0; i < entries_count; i++) { |
390 InlineRuntimeLUT* entry = &kInlineRuntimeLUT[i]; | 392 InlineRuntimeLUT* entry = &kInlineRuntimeLUT[i]; |
391 if (name->IsEqualTo(CStrVector(entry->name))) { | 393 if (name->IsEqualTo(CStrVector(entry->name))) { |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
524 } | 526 } |
525 } | 527 } |
526 | 528 |
527 | 529 |
528 void ApiGetterEntryStub::SetCustomCache(Code* value) { | 530 void ApiGetterEntryStub::SetCustomCache(Code* value) { |
529 info()->set_load_stub_cache(value); | 531 info()->set_load_stub_cache(value); |
530 } | 532 } |
531 | 533 |
532 | 534 |
533 } } // namespace v8::internal | 535 } } // namespace v8::internal |
OLD | NEW |