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 5418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5429 } | 5429 } |
5430 | 5430 |
5431 | 5431 |
5432 // Construct a RegExp exec result with two in-object properties. | 5432 // Construct a RegExp exec result with two in-object properties. |
5433 void HGraphBuilder::GenerateRegExpConstructResult(CallRuntime* call) { | 5433 void HGraphBuilder::GenerateRegExpConstructResult(CallRuntime* call) { |
5434 ASSERT_EQ(3, call->arguments()->length()); | 5434 ASSERT_EQ(3, call->arguments()->length()); |
5435 VisitArgumentList(call->arguments()); | 5435 VisitArgumentList(call->arguments()); |
5436 CHECK_BAILOUT; | 5436 CHECK_BAILOUT; |
5437 HContext* context = new HContext; | 5437 HContext* context = new HContext; |
5438 AddInstruction(context); | 5438 AddInstruction(context); |
5439 HCallStub* result = new HCallStub(context, CodeStub::RegExpConstructResult, 3)
; | 5439 HCallStub* result = |
| 5440 new HCallStub(context, CodeStub::RegExpConstructResult, 3); |
5440 Drop(3); | 5441 Drop(3); |
5441 ast_context()->ReturnInstruction(result, call->id()); | 5442 ast_context()->ReturnInstruction(result, call->id()); |
5442 } | 5443 } |
5443 | 5444 |
5444 | 5445 |
5445 // Support for fast native caches. | 5446 // Support for fast native caches. |
5446 void HGraphBuilder::GenerateGetFromCache(CallRuntime* call) { | 5447 void HGraphBuilder::GenerateGetFromCache(CallRuntime* call) { |
5447 BAILOUT("inlined runtime function: GetFromCache"); | 5448 BAILOUT("inlined runtime function: GetFromCache"); |
5448 } | 5449 } |
5449 | 5450 |
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6057 } | 6058 } |
6058 } | 6059 } |
6059 | 6060 |
6060 #ifdef DEBUG | 6061 #ifdef DEBUG |
6061 if (graph_ != NULL) graph_->Verify(); | 6062 if (graph_ != NULL) graph_->Verify(); |
6062 if (allocator_ != NULL) allocator_->Verify(); | 6063 if (allocator_ != NULL) allocator_->Verify(); |
6063 #endif | 6064 #endif |
6064 } | 6065 } |
6065 | 6066 |
6066 } } // namespace v8::internal | 6067 } } // namespace v8::internal |
OLD | NEW |