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 4442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4453 } else { | 4453 } else { |
4454 AddCheckConstantFunction(expr, receiver, receiver_map, true); | 4454 AddCheckConstantFunction(expr, receiver, receiver_map, true); |
4455 | 4455 |
4456 if (TryInline(expr)) return; | 4456 if (TryInline(expr)) return; |
4457 call = PreProcessCall( | 4457 call = PreProcessCall( |
4458 new(zone()) HCallConstantFunction(expr->target(), | 4458 new(zone()) HCallConstantFunction(expr->target(), |
4459 argument_count)); | 4459 argument_count)); |
4460 } | 4460 } |
4461 } else if (types != NULL && types->length() > 1) { | 4461 } else if (types != NULL && types->length() > 1) { |
4462 ASSERT(expr->check_type() == RECEIVER_MAP_CHECK); | 4462 ASSERT(expr->check_type() == RECEIVER_MAP_CHECK); |
4463 HandlePolymorphicCallNamed(expr, receiver, types, name) | 4463 HandlePolymorphicCallNamed(expr, receiver, types, name); |
4464 return; | 4464 return; |
4465 | 4465 |
4466 } else { | 4466 } else { |
4467 HContext* context = new(zone()) HContext; | 4467 HContext* context = new(zone()) HContext; |
4468 AddInstruction(context); | 4468 AddInstruction(context); |
4469 call = PreProcessCall( | 4469 call = PreProcessCall( |
4470 new(zone()) HCallNamed(context, name, argument_count)); | 4470 new(zone()) HCallNamed(context, name, argument_count)); |
4471 } | 4471 } |
4472 | 4472 |
4473 } else { | 4473 } else { |
(...skipping 1650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6124 } | 6124 } |
6125 } | 6125 } |
6126 | 6126 |
6127 #ifdef DEBUG | 6127 #ifdef DEBUG |
6128 if (graph_ != NULL) graph_->Verify(); | 6128 if (graph_ != NULL) graph_->Verify(); |
6129 if (allocator_ != NULL) allocator_->Verify(); | 6129 if (allocator_ != NULL) allocator_->Verify(); |
6130 #endif | 6130 #endif |
6131 } | 6131 } |
6132 | 6132 |
6133 } } // namespace v8::internal | 6133 } } // namespace v8::internal |
OLD | NEW |