| 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 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 {&CodeGenerator::GenerateArgumentsLength, "_ArgumentsLength"}, | 426 {&CodeGenerator::GenerateArgumentsLength, "_ArgumentsLength"}, |
| 427 {&CodeGenerator::GenerateArgumentsAccess, "_Arguments"}, | 427 {&CodeGenerator::GenerateArgumentsAccess, "_Arguments"}, |
| 428 {&CodeGenerator::GenerateClassOf, "_ClassOf"}, | 428 {&CodeGenerator::GenerateClassOf, "_ClassOf"}, |
| 429 {&CodeGenerator::GenerateValueOf, "_ValueOf"}, | 429 {&CodeGenerator::GenerateValueOf, "_ValueOf"}, |
| 430 {&CodeGenerator::GenerateSetValueOf, "_SetValueOf"}, | 430 {&CodeGenerator::GenerateSetValueOf, "_SetValueOf"}, |
| 431 {&CodeGenerator::GenerateFastCharCodeAt, "_FastCharCodeAt"}, | 431 {&CodeGenerator::GenerateFastCharCodeAt, "_FastCharCodeAt"}, |
| 432 {&CodeGenerator::GenerateObjectEquals, "_ObjectEquals"}, | 432 {&CodeGenerator::GenerateObjectEquals, "_ObjectEquals"}, |
| 433 {&CodeGenerator::GenerateLog, "_Log"}, | 433 {&CodeGenerator::GenerateLog, "_Log"}, |
| 434 {&CodeGenerator::GenerateRandomPositiveSmi, "_RandomPositiveSmi"}, | 434 {&CodeGenerator::GenerateRandomPositiveSmi, "_RandomPositiveSmi"}, |
| 435 {&CodeGenerator::GenerateMathSin, "_Math_sin"}, | 435 {&CodeGenerator::GenerateMathSin, "_Math_sin"}, |
| 436 {&CodeGenerator::GenerateMathCos, "_Math_cos"} | 436 {&CodeGenerator::GenerateMathCos, "_Math_cos"}, |
| 437 {&CodeGenerator::GenerateNumberMod, "_NumberMod"} |
| 437 }; | 438 }; |
| 438 | 439 |
| 439 | 440 |
| 440 CodeGenerator::InlineRuntimeLUT* CodeGenerator::FindInlineRuntimeLUT( | 441 CodeGenerator::InlineRuntimeLUT* CodeGenerator::FindInlineRuntimeLUT( |
| 441 Handle<String> name) { | 442 Handle<String> name) { |
| 442 const int entries_count = | 443 const int entries_count = |
| 443 sizeof(kInlineRuntimeLUT) / sizeof(InlineRuntimeLUT); | 444 sizeof(kInlineRuntimeLUT) / sizeof(InlineRuntimeLUT); |
| 444 for (int i = 0; i < entries_count; i++) { | 445 for (int i = 0; i < entries_count; i++) { |
| 445 InlineRuntimeLUT* entry = &kInlineRuntimeLUT[i]; | 446 InlineRuntimeLUT* entry = &kInlineRuntimeLUT[i]; |
| 446 if (name->IsEqualTo(CStrVector(entry->name))) { | 447 if (name->IsEqualTo(CStrVector(entry->name))) { |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 545 void ArgumentsAccessStub::Generate(MacroAssembler* masm) { | 546 void ArgumentsAccessStub::Generate(MacroAssembler* masm) { |
| 546 switch (type_) { | 547 switch (type_) { |
| 547 case READ_LENGTH: GenerateReadLength(masm); break; | 548 case READ_LENGTH: GenerateReadLength(masm); break; |
| 548 case READ_ELEMENT: GenerateReadElement(masm); break; | 549 case READ_ELEMENT: GenerateReadElement(masm); break; |
| 549 case NEW_OBJECT: GenerateNewObject(masm); break; | 550 case NEW_OBJECT: GenerateNewObject(masm); break; |
| 550 } | 551 } |
| 551 } | 552 } |
| 552 | 553 |
| 553 | 554 |
| 554 } } // namespace v8::internal | 555 } } // namespace v8::internal |
| OLD | NEW |