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 5438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5449 | 5449 |
5450 // Check whether two RegExps are equivalent | 5450 // Check whether two RegExps are equivalent |
5451 void HGraphBuilder::GenerateIsRegExpEquivalent(int argument_count, | 5451 void HGraphBuilder::GenerateIsRegExpEquivalent(int argument_count, |
5452 int ast_id) { | 5452 int ast_id) { |
5453 BAILOUT("inlined runtime function: IsRegExpEquivalent"); | 5453 BAILOUT("inlined runtime function: IsRegExpEquivalent"); |
5454 } | 5454 } |
5455 | 5455 |
5456 | 5456 |
5457 void HGraphBuilder::GenerateGetCachedArrayIndex(int argument_count, | 5457 void HGraphBuilder::GenerateGetCachedArrayIndex(int argument_count, |
5458 int ast_id) { | 5458 int ast_id) { |
5459 BAILOUT("inlined runtime function: GetCachedArrayIndex"); | 5459 ASSERT(argument_count == 1); |
| 5460 HValue* value = Pop(); |
| 5461 HGetCachedArrayIndex* result = new HGetCachedArrayIndex(value); |
| 5462 ast_context()->ReturnInstruction(result, ast_id); |
5460 } | 5463 } |
5461 | 5464 |
5462 | 5465 |
5463 void HGraphBuilder::GenerateFastAsciiArrayJoin(int argument_count, | 5466 void HGraphBuilder::GenerateFastAsciiArrayJoin(int argument_count, |
5464 int ast_id) { | 5467 int ast_id) { |
5465 BAILOUT("inlined runtime function: FastAsciiArrayJoin"); | 5468 BAILOUT("inlined runtime function: FastAsciiArrayJoin"); |
5466 } | 5469 } |
5467 | 5470 |
5468 | 5471 |
5469 #undef BAILOUT | 5472 #undef BAILOUT |
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5972 } | 5975 } |
5973 } | 5976 } |
5974 | 5977 |
5975 #ifdef DEBUG | 5978 #ifdef DEBUG |
5976 if (graph_ != NULL) graph_->Verify(); | 5979 if (graph_ != NULL) graph_->Verify(); |
5977 if (allocator_ != NULL) allocator_->Verify(); | 5980 if (allocator_ != NULL) allocator_->Verify(); |
5978 #endif | 5981 #endif |
5979 } | 5982 } |
5980 | 5983 |
5981 } } // namespace v8::internal | 5984 } } // namespace v8::internal |
OLD | NEW |