| 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 5347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5358 | 5358 |
| 5359 | 5359 |
| 5360 // Construct a RegExp exec result with two in-object properties. | 5360 // Construct a RegExp exec result with two in-object properties. |
| 5361 void HGraphBuilder::GenerateRegExpConstructResult(int argument_count, | 5361 void HGraphBuilder::GenerateRegExpConstructResult(int argument_count, |
| 5362 int ast_id) { | 5362 int ast_id) { |
| 5363 ASSERT_EQ(3, argument_count); | 5363 ASSERT_EQ(3, argument_count); |
| 5364 PushArgumentsForStubCall(argument_count); | 5364 PushArgumentsForStubCall(argument_count); |
| 5365 HContext* context = new HContext; | 5365 HContext* context = new HContext; |
| 5366 AddInstruction(context); | 5366 AddInstruction(context); |
| 5367 HCallStub* result = | 5367 HCallStub* result = |
| 5368 new HCallStub(context,CodeStub::RegExpConstructResult, argument_count); | 5368 new HCallStub(context, CodeStub::RegExpConstructResult, argument_count); |
| 5369 ast_context()->ReturnInstruction(result, ast_id); | 5369 ast_context()->ReturnInstruction(result, ast_id); |
| 5370 } | 5370 } |
| 5371 | 5371 |
| 5372 | 5372 |
| 5373 // Support for fast native caches. | 5373 // Support for fast native caches. |
| 5374 void HGraphBuilder::GenerateGetFromCache(int argument_count, int ast_id) { | 5374 void HGraphBuilder::GenerateGetFromCache(int argument_count, int ast_id) { |
| 5375 BAILOUT("inlined runtime function: GetFromCache"); | 5375 BAILOUT("inlined runtime function: GetFromCache"); |
| 5376 } | 5376 } |
| 5377 | 5377 |
| 5378 | 5378 |
| (...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5978 } | 5978 } |
| 5979 } | 5979 } |
| 5980 | 5980 |
| 5981 #ifdef DEBUG | 5981 #ifdef DEBUG |
| 5982 if (graph_ != NULL) graph_->Verify(); | 5982 if (graph_ != NULL) graph_->Verify(); |
| 5983 if (allocator_ != NULL) allocator_->Verify(); | 5983 if (allocator_ != NULL) allocator_->Verify(); |
| 5984 #endif | 5984 #endif |
| 5985 } | 5985 } |
| 5986 | 5986 |
| 5987 } } // namespace v8::internal | 5987 } } // namespace v8::internal |
| OLD | NEW |