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

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

Issue 141703018: Turn RegExpConstructResultStub into a HydrogenCodeStub. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/ia32/lithium-codegen-ia32.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 3702 matching lines...) Expand 10 before | Expand all | Expand 10 after
3713 } 3713 }
3714 3714
3715 3715
3716 void FullCodeGenerator::EmitRegExpConstructResult(CallRuntime* expr) { 3716 void FullCodeGenerator::EmitRegExpConstructResult(CallRuntime* expr) {
3717 // Load the arguments on the stack and call the stub. 3717 // Load the arguments on the stack and call the stub.
3718 RegExpConstructResultStub stub; 3718 RegExpConstructResultStub stub;
3719 ZoneList<Expression*>* args = expr->arguments(); 3719 ZoneList<Expression*>* args = expr->arguments();
3720 ASSERT(args->length() == 3); 3720 ASSERT(args->length() == 3);
3721 VisitForStackValue(args->at(0)); 3721 VisitForStackValue(args->at(0));
3722 VisitForStackValue(args->at(1)); 3722 VisitForStackValue(args->at(1));
3723 VisitForStackValue(args->at(2)); 3723 VisitForAccumulatorValue(args->at(2));
3724 __ pop(ebx);
3725 __ pop(ecx);
3724 __ CallStub(&stub); 3726 __ CallStub(&stub);
3725 context()->Plug(eax); 3727 context()->Plug(eax);
3726 } 3728 }
3727 3729
3728 3730
3729 void FullCodeGenerator::EmitGetFromCache(CallRuntime* expr) { 3731 void FullCodeGenerator::EmitGetFromCache(CallRuntime* expr) {
3730 ZoneList<Expression*>* args = expr->arguments(); 3732 ZoneList<Expression*>* args = expr->arguments();
3731 ASSERT_EQ(2, args->length()); 3733 ASSERT_EQ(2, args->length());
3732 3734
3733 ASSERT_NE(NULL, args->at(0)->AsLiteral()); 3735 ASSERT_NE(NULL, args->at(0)->AsLiteral());
(...skipping 1160 matching lines...) Expand 10 before | Expand all | Expand 10 after
4894 4896
4895 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 4897 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
4896 Assembler::target_address_at(call_target_address)); 4898 Assembler::target_address_at(call_target_address));
4897 return OSR_AFTER_STACK_CHECK; 4899 return OSR_AFTER_STACK_CHECK;
4898 } 4900 }
4899 4901
4900 4902
4901 } } // namespace v8::internal 4903 } } // namespace v8::internal
4902 4904
4903 #endif // V8_TARGET_ARCH_IA32 4905 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698