OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 2610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2621 void FullCodeGenerator::EmitRegExpConstructResult(ZoneList<Expression*>* args) { | 2621 void FullCodeGenerator::EmitRegExpConstructResult(ZoneList<Expression*>* args) { |
2622 ASSERT(args->length() == 3); | 2622 ASSERT(args->length() == 3); |
2623 VisitForValue(args->at(0), kStack); | 2623 VisitForValue(args->at(0), kStack); |
2624 VisitForValue(args->at(1), kStack); | 2624 VisitForValue(args->at(1), kStack); |
2625 VisitForValue(args->at(2), kStack); | 2625 VisitForValue(args->at(2), kStack); |
2626 __ CallRuntime(Runtime::kRegExpConstructResult, 3); | 2626 __ CallRuntime(Runtime::kRegExpConstructResult, 3); |
2627 Apply(context_, rax); | 2627 Apply(context_, rax); |
2628 } | 2628 } |
2629 | 2629 |
2630 | 2630 |
| 2631 void FullCodeGenerator::EmitRegExpCloneResult(ZoneList<Expression*>* args) { |
| 2632 ASSERT(args->length() == 1); |
| 2633 VisitForValue(args->at(0), kStack); |
| 2634 __ CallRuntime(Runtime::kRegExpCloneResult, 1); |
| 2635 Apply(context_, rax); |
| 2636 } |
| 2637 |
| 2638 |
2631 void FullCodeGenerator::EmitSwapElements(ZoneList<Expression*>* args) { | 2639 void FullCodeGenerator::EmitSwapElements(ZoneList<Expression*>* args) { |
2632 ASSERT(args->length() == 3); | 2640 ASSERT(args->length() == 3); |
2633 VisitForValue(args->at(0), kStack); | 2641 VisitForValue(args->at(0), kStack); |
2634 VisitForValue(args->at(1), kStack); | 2642 VisitForValue(args->at(1), kStack); |
2635 VisitForValue(args->at(2), kStack); | 2643 VisitForValue(args->at(2), kStack); |
2636 __ CallRuntime(Runtime::kSwapElements, 3); | 2644 __ CallRuntime(Runtime::kSwapElements, 3); |
2637 Apply(context_, rax); | 2645 Apply(context_, rax); |
2638 } | 2646 } |
2639 | 2647 |
2640 | 2648 |
(...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3350 __ ret(0); | 3358 __ ret(0); |
3351 } | 3359 } |
3352 | 3360 |
3353 | 3361 |
3354 #undef __ | 3362 #undef __ |
3355 | 3363 |
3356 | 3364 |
3357 } } // namespace v8::internal | 3365 } } // namespace v8::internal |
3358 | 3366 |
3359 #endif // V8_TARGET_ARCH_X64 | 3367 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |