| 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 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 412 // inline instead of generating calls to them. They are used | 412 // inline instead of generating calls to them. They are used |
| 413 // for implementing Function.prototype.call() and | 413 // for implementing Function.prototype.call() and |
| 414 // Function.prototype.apply(). | 414 // Function.prototype.apply(). |
| 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::GenerateIsConstructCall, "_IsConstructCall"}, | 419 {&CodeGenerator::GenerateIsConstructCall, "_IsConstructCall"}, |
| 420 {&CodeGenerator::GenerateArgumentsLength, "_ArgumentsLength"}, | 420 {&CodeGenerator::GenerateArgumentsLength, "_ArgumentsLength"}, |
| 421 {&CodeGenerator::GenerateArgumentsAccess, "_Arguments"}, | 421 {&CodeGenerator::GenerateArgumentsAccess, "_Arguments"}, |
| 422 {&CodeGenerator::GenerateClassOf, "_ClassOf"}, |
| 422 {&CodeGenerator::GenerateValueOf, "_ValueOf"}, | 423 {&CodeGenerator::GenerateValueOf, "_ValueOf"}, |
| 423 {&CodeGenerator::GenerateSetValueOf, "_SetValueOf"}, | 424 {&CodeGenerator::GenerateSetValueOf, "_SetValueOf"}, |
| 424 {&CodeGenerator::GenerateFastCharCodeAt, "_FastCharCodeAt"}, | 425 {&CodeGenerator::GenerateFastCharCodeAt, "_FastCharCodeAt"}, |
| 425 {&CodeGenerator::GenerateObjectEquals, "_ObjectEquals"}, | 426 {&CodeGenerator::GenerateObjectEquals, "_ObjectEquals"}, |
| 426 {&CodeGenerator::GenerateLog, "_Log"}, | 427 {&CodeGenerator::GenerateLog, "_Log"}, |
| 427 {&CodeGenerator::GenerateRandomPositiveSmi, "_RandomPositiveSmi"}, | 428 {&CodeGenerator::GenerateRandomPositiveSmi, "_RandomPositiveSmi"}, |
| 428 {&CodeGenerator::GenerateMathSin, "_Math_sin"}, | 429 {&CodeGenerator::GenerateMathSin, "_Math_sin"}, |
| 429 {&CodeGenerator::GenerateMathCos, "_Math_cos"} | 430 {&CodeGenerator::GenerateMathCos, "_Math_cos"} |
| 430 }; | 431 }; |
| 431 | 432 |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 528 void ArgumentsAccessStub::Generate(MacroAssembler* masm) { | 529 void ArgumentsAccessStub::Generate(MacroAssembler* masm) { |
| 529 switch (type_) { | 530 switch (type_) { |
| 530 case READ_LENGTH: GenerateReadLength(masm); break; | 531 case READ_LENGTH: GenerateReadLength(masm); break; |
| 531 case READ_ELEMENT: GenerateReadElement(masm); break; | 532 case READ_ELEMENT: GenerateReadElement(masm); break; |
| 532 case NEW_OBJECT: GenerateNewObject(masm); break; | 533 case NEW_OBJECT: GenerateNewObject(masm); break; |
| 533 } | 534 } |
| 534 } | 535 } |
| 535 | 536 |
| 536 | 537 |
| 537 } } // namespace v8::internal | 538 } } // namespace v8::internal |
| OLD | NEW |