OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
679 static_cast<int>(id) - static_cast<int>(Runtime::kFirstInlineFunction); | 679 static_cast<int>(id) - static_cast<int>(Runtime::kFirstInlineFunction); |
680 ASSERT(lookup_index >= 0); | 680 ASSERT(lookup_index >= 0); |
681 ASSERT(static_cast<size_t>(lookup_index) < | 681 ASSERT(static_cast<size_t>(lookup_index) < |
682 ARRAY_SIZE(kInlineFunctionGenerators)); | 682 ARRAY_SIZE(kInlineFunctionGenerators)); |
683 return kInlineFunctionGenerators[lookup_index]; | 683 return kInlineFunctionGenerators[lookup_index]; |
684 } | 684 } |
685 | 685 |
686 | 686 |
687 void FullCodeGenerator::EmitInlineRuntimeCall(CallRuntime* node) { | 687 void FullCodeGenerator::EmitInlineRuntimeCall(CallRuntime* node) { |
688 ZoneList<Expression*>* args = node->arguments(); | 688 ZoneList<Expression*>* args = node->arguments(); |
689 Handle<String> name = node->name(); | |
690 const Runtime::Function* function = node->function(); | 689 const Runtime::Function* function = node->function(); |
691 ASSERT(function != NULL); | 690 ASSERT(function != NULL); |
692 ASSERT(function->intrinsic_type == Runtime::INLINE); | 691 ASSERT(function->intrinsic_type == Runtime::INLINE); |
693 InlineFunctionGenerator generator = | 692 InlineFunctionGenerator generator = |
694 FindInlineFunctionGenerator(function->function_id); | 693 FindInlineFunctionGenerator(function->function_id); |
695 ((*this).*(generator))(args); | 694 ((*this).*(generator))(args); |
696 } | 695 } |
697 | 696 |
698 | 697 |
699 void FullCodeGenerator::VisitBinaryOperation(BinaryOperation* expr) { | 698 void FullCodeGenerator::VisitBinaryOperation(BinaryOperation* expr) { |
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1316 } | 1315 } |
1317 | 1316 |
1318 return false; | 1317 return false; |
1319 } | 1318 } |
1320 | 1319 |
1321 | 1320 |
1322 #undef __ | 1321 #undef __ |
1323 | 1322 |
1324 | 1323 |
1325 } } // namespace v8::internal | 1324 } } // namespace v8::internal |
OLD | NEW |