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 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
415 CodeGenerator::InlineRuntimeLUT CodeGenerator::kInlineRuntimeLUT[] = { | 415 CodeGenerator::InlineRuntimeLUT CodeGenerator::kInlineRuntimeLUT[] = { |
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 }; | 427 }; |
427 | 428 |
428 | 429 |
429 CodeGenerator::InlineRuntimeLUT* CodeGenerator::FindInlineRuntimeLUT( | 430 CodeGenerator::InlineRuntimeLUT* CodeGenerator::FindInlineRuntimeLUT( |
430 Handle<String> name) { | 431 Handle<String> name) { |
431 const int entries_count = | 432 const int entries_count = |
432 sizeof(kInlineRuntimeLUT) / sizeof(InlineRuntimeLUT); | 433 sizeof(kInlineRuntimeLUT) / sizeof(InlineRuntimeLUT); |
433 for (int i = 0; i < entries_count; i++) { | 434 for (int i = 0; i < entries_count; i++) { |
434 InlineRuntimeLUT* entry = &kInlineRuntimeLUT[i]; | 435 InlineRuntimeLUT* entry = &kInlineRuntimeLUT[i]; |
435 if (name->IsEqualTo(CStrVector(entry->name))) { | 436 if (name->IsEqualTo(CStrVector(entry->name))) { |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
647 void ArgumentsAccessStub::Generate(MacroAssembler* masm) { | 648 void ArgumentsAccessStub::Generate(MacroAssembler* masm) { |
648 switch (type_) { | 649 switch (type_) { |
649 case READ_LENGTH: GenerateReadLength(masm); break; | 650 case READ_LENGTH: GenerateReadLength(masm); break; |
650 case READ_ELEMENT: GenerateReadElement(masm); break; | 651 case READ_ELEMENT: GenerateReadElement(masm); break; |
651 case NEW_OBJECT: GenerateNewObject(masm); break; | 652 case NEW_OBJECT: GenerateNewObject(masm); break; |
652 } | 653 } |
653 } | 654 } |
654 | 655 |
655 | 656 |
656 } } // namespace v8::internal | 657 } } // namespace v8::internal |
OLD | NEW |