| 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 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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::GenerateArgumentsLength, "_ArgumentsLength"}, | 419 {&CodeGenerator::GenerateArgumentsLength, "_ArgumentsLength"}, |
| 420 {&CodeGenerator::GenerateArgumentsAccess, "_Arguments"}, | 420 {&CodeGenerator::GenerateArgumentsAccess, "_Arguments"}, |
| 421 {&CodeGenerator::GenerateValueOf, "_ValueOf"}, | 421 {&CodeGenerator::GenerateValueOf, "_ValueOf"}, |
| 422 {&CodeGenerator::GenerateSetValueOf, "_SetValueOf"}, | 422 {&CodeGenerator::GenerateSetValueOf, "_SetValueOf"}, |
| 423 {&CodeGenerator::GenerateFastCharCodeAt, "_FastCharCodeAt"}, | 423 {&CodeGenerator::GenerateFastCharCodeAt, "_FastCharCodeAt"}, |
| 424 {&CodeGenerator::GenerateObjectEquals, "_ObjectEquals"}, | 424 {&CodeGenerator::GenerateObjectEquals, "_ObjectEquals"}, |
| 425 {&CodeGenerator::GenerateLog, "_Log"}, | 425 {&CodeGenerator::GenerateLog, "_Log"}, |
| 426 {&CodeGenerator::GenerateRandomPositiveSmi, "_RandomPositiveSmi"} | 426 {&CodeGenerator::GenerateRandomPositiveSmi, "_RandomPositiveSmi"}, |
| 427 {&CodeGenerator::GenerateMathSin, "_Math_sin"}, |
| 428 {&CodeGenerator::GenerateMathCos, "_Math_cos"} |
| 427 }; | 429 }; |
| 428 | 430 |
| 429 | 431 |
| 430 CodeGenerator::InlineRuntimeLUT* CodeGenerator::FindInlineRuntimeLUT( | 432 CodeGenerator::InlineRuntimeLUT* CodeGenerator::FindInlineRuntimeLUT( |
| 431 Handle<String> name) { | 433 Handle<String> name) { |
| 432 const int entries_count = | 434 const int entries_count = |
| 433 sizeof(kInlineRuntimeLUT) / sizeof(InlineRuntimeLUT); | 435 sizeof(kInlineRuntimeLUT) / sizeof(InlineRuntimeLUT); |
| 434 for (int i = 0; i < entries_count; i++) { | 436 for (int i = 0; i < entries_count; i++) { |
| 435 InlineRuntimeLUT* entry = &kInlineRuntimeLUT[i]; | 437 InlineRuntimeLUT* entry = &kInlineRuntimeLUT[i]; |
| 436 if (name->IsEqualTo(CStrVector(entry->name))) { | 438 if (name->IsEqualTo(CStrVector(entry->name))) { |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 648 void ArgumentsAccessStub::Generate(MacroAssembler* masm) { | 650 void ArgumentsAccessStub::Generate(MacroAssembler* masm) { |
| 649 switch (type_) { | 651 switch (type_) { |
| 650 case READ_LENGTH: GenerateReadLength(masm); break; | 652 case READ_LENGTH: GenerateReadLength(masm); break; |
| 651 case READ_ELEMENT: GenerateReadElement(masm); break; | 653 case READ_ELEMENT: GenerateReadElement(masm); break; |
| 652 case NEW_OBJECT: GenerateNewObject(masm); break; | 654 case NEW_OBJECT: GenerateNewObject(masm); break; |
| 653 } | 655 } |
| 654 } | 656 } |
| 655 | 657 |
| 656 | 658 |
| 657 } } // namespace v8::internal | 659 } } // namespace v8::internal |
| OLD | NEW |