Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(724)

Side by Side Diff: src/ia32/full-codegen-ia32.cc

Issue 3197011: Fixed remaining bugs in COW-regexp-results. (Closed)
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/ia32/codegen-ia32.cc ('k') | src/runtime.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
2651 void FullCodeGenerator::EmitSwapElements(ZoneList<Expression*>* args) { 2643 void FullCodeGenerator::EmitSwapElements(ZoneList<Expression*>* args) {
2652 ASSERT(args->length() == 3); 2644 ASSERT(args->length() == 3);
2653 VisitForValue(args->at(0), kStack); 2645 VisitForValue(args->at(0), kStack);
2654 VisitForValue(args->at(1), kStack); 2646 VisitForValue(args->at(1), kStack);
2655 VisitForValue(args->at(2), kStack); 2647 VisitForValue(args->at(2), kStack);
2656 __ CallRuntime(Runtime::kSwapElements, 3); 2648 __ CallRuntime(Runtime::kSwapElements, 3);
2657 Apply(context_, eax); 2649 Apply(context_, eax);
2658 } 2650 }
2659 2651
2660 2652
(...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after
3367 // And return. 3359 // And return.
3368 __ ret(0); 3360 __ ret(0);
3369 } 3361 }
3370 3362
3371 3363
3372 #undef __ 3364 #undef __
3373 3365
3374 } } // namespace v8::internal 3366 } } // namespace v8::internal
3375 3367
3376 #endif // V8_TARGET_ARCH_IA32 3368 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/codegen-ia32.cc ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698