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 2622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2633 void FullCodeGenerator::EmitRegExpConstructResult(ZoneList<Expression*>* args) { | 2633 void FullCodeGenerator::EmitRegExpConstructResult(ZoneList<Expression*>* args) { |
2634 ASSERT(args->length() == 3); | 2634 ASSERT(args->length() == 3); |
2635 VisitForValue(args->at(0), kStack); | 2635 VisitForValue(args->at(0), kStack); |
2636 VisitForValue(args->at(1), kStack); | 2636 VisitForValue(args->at(1), kStack); |
2637 VisitForValue(args->at(2), kStack); | 2637 VisitForValue(args->at(2), kStack); |
2638 __ CallRuntime(Runtime::kRegExpConstructResult, 3); | 2638 __ CallRuntime(Runtime::kRegExpConstructResult, 3); |
2639 Apply(context_, eax); | 2639 Apply(context_, eax); |
2640 } | 2640 } |
2641 | 2641 |
2642 | 2642 |
| 2643 void FullCodeGenerator::EmitRegExpCloneResult(ZoneList<Expression*>* args) { |
| 2644 ASSERT(args->length() == 1); |
| 2645 VisitForValue(args->at(0), kStack); |
| 2646 __ CallRuntime(Runtime::kRegExpCloneResult, 1); |
| 2647 Apply(context_, eax); |
| 2648 } |
| 2649 |
| 2650 |
2643 void FullCodeGenerator::EmitSwapElements(ZoneList<Expression*>* args) { | 2651 void FullCodeGenerator::EmitSwapElements(ZoneList<Expression*>* args) { |
2644 ASSERT(args->length() == 3); | 2652 ASSERT(args->length() == 3); |
2645 VisitForValue(args->at(0), kStack); | 2653 VisitForValue(args->at(0), kStack); |
2646 VisitForValue(args->at(1), kStack); | 2654 VisitForValue(args->at(1), kStack); |
2647 VisitForValue(args->at(2), kStack); | 2655 VisitForValue(args->at(2), kStack); |
2648 __ CallRuntime(Runtime::kSwapElements, 3); | 2656 __ CallRuntime(Runtime::kSwapElements, 3); |
2649 Apply(context_, eax); | 2657 Apply(context_, eax); |
2650 } | 2658 } |
2651 | 2659 |
2652 | 2660 |
(...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3359 // And return. | 3367 // And return. |
3360 __ ret(0); | 3368 __ ret(0); |
3361 } | 3369 } |
3362 | 3370 |
3363 | 3371 |
3364 #undef __ | 3372 #undef __ |
3365 | 3373 |
3366 } } // namespace v8::internal | 3374 } } // namespace v8::internal |
3367 | 3375 |
3368 #endif // V8_TARGET_ARCH_IA32 | 3376 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |