| OLD | NEW |
| 1 // Copyright 2007-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2007-2008 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 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 {&v8::internal::CodeGenerator::GenerateSetValueOf, | 395 {&v8::internal::CodeGenerator::GenerateSetValueOf, |
| 396 "_SetValueOf"}, | 396 "_SetValueOf"}, |
| 397 {&v8::internal::CodeGenerator::GenerateFastCharCodeAt, | 397 {&v8::internal::CodeGenerator::GenerateFastCharCodeAt, |
| 398 "_FastCharCodeAt"}, | 398 "_FastCharCodeAt"}, |
| 399 {&v8::internal::CodeGenerator::GenerateObjectEquals, | 399 {&v8::internal::CodeGenerator::GenerateObjectEquals, |
| 400 "_ObjectEquals"}, | 400 "_ObjectEquals"}, |
| 401 {&v8::internal::CodeGenerator::GenerateLog, | 401 {&v8::internal::CodeGenerator::GenerateLog, |
| 402 "_Log"} | 402 "_Log"} |
| 403 }; | 403 }; |
| 404 Handle<String> name = node->name(); | 404 Handle<String> name = node->name(); |
| 405 StringShape shape(*name); | 405 if (name->length() > 0 && name->Get(0) == '_') { |
| 406 if (name->length(shape) > 0 && name->Get(shape, 0) == '_') { | |
| 407 for (unsigned i = 0; | 406 for (unsigned i = 0; |
| 408 i < sizeof(kInlineRuntimeLUT) / sizeof(InlineRuntimeLUT); | 407 i < sizeof(kInlineRuntimeLUT) / sizeof(InlineRuntimeLUT); |
| 409 i++) { | 408 i++) { |
| 410 const InlineRuntimeLUT* entry = kInlineRuntimeLUT + i; | 409 const InlineRuntimeLUT* entry = kInlineRuntimeLUT + i; |
| 411 if (name->IsEqualTo(CStrVector(entry->name))) { | 410 if (name->IsEqualTo(CStrVector(entry->name))) { |
| 412 ((*this).*(entry->method))(args); | 411 ((*this).*(entry->method))(args); |
| 413 return true; | 412 return true; |
| 414 } | 413 } |
| 415 } | 414 } |
| 416 } | 415 } |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 585 void ArgumentsAccessStub::Generate(MacroAssembler* masm) { | 584 void ArgumentsAccessStub::Generate(MacroAssembler* masm) { |
| 586 switch (type_) { | 585 switch (type_) { |
| 587 case READ_LENGTH: GenerateReadLength(masm); break; | 586 case READ_LENGTH: GenerateReadLength(masm); break; |
| 588 case READ_ELEMENT: GenerateReadElement(masm); break; | 587 case READ_ELEMENT: GenerateReadElement(masm); break; |
| 589 case NEW_OBJECT: GenerateNewObject(masm); break; | 588 case NEW_OBJECT: GenerateNewObject(masm); break; |
| 590 } | 589 } |
| 591 } | 590 } |
| 592 | 591 |
| 593 | 592 |
| 594 } } // namespace v8::internal | 593 } } // namespace v8::internal |
| OLD | NEW |