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

Side by Side Diff: src/arm/regexp-macro-assembler-arm.cc

Issue 16337005: Deprecate FACTORY helper macro. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 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/arm/full-codegen-arm.cc ('k') | src/ast.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 899 matching lines...) Expand 10 before | Expand all | Expand 10 after
910 if (exit_with_exception.is_linked()) { 910 if (exit_with_exception.is_linked()) {
911 // If any of the code above needed to exit with an exception. 911 // If any of the code above needed to exit with an exception.
912 __ bind(&exit_with_exception); 912 __ bind(&exit_with_exception);
913 // Exit with Result EXCEPTION(-1) to signal thrown exception. 913 // Exit with Result EXCEPTION(-1) to signal thrown exception.
914 __ mov(r0, Operand(EXCEPTION)); 914 __ mov(r0, Operand(EXCEPTION));
915 __ jmp(&return_r0); 915 __ jmp(&return_r0);
916 } 916 }
917 917
918 CodeDesc code_desc; 918 CodeDesc code_desc;
919 masm_->GetCode(&code_desc); 919 masm_->GetCode(&code_desc);
920 Handle<Code> code = FACTORY->NewCode(code_desc, 920 Handle<Code> code = isolate()->factory()->NewCode(
921 Code::ComputeFlags(Code::REGEXP), 921 code_desc, Code::ComputeFlags(Code::REGEXP), masm_->CodeObject());
922 masm_->CodeObject());
923 PROFILE(Isolate::Current(), RegExpCodeCreateEvent(*code, *source)); 922 PROFILE(Isolate::Current(), RegExpCodeCreateEvent(*code, *source));
924 return Handle<HeapObject>::cast(code); 923 return Handle<HeapObject>::cast(code);
925 } 924 }
926 925
927 926
928 void RegExpMacroAssemblerARM::GoTo(Label* to) { 927 void RegExpMacroAssemblerARM::GoTo(Label* to) {
929 BranchOrBacktrack(al, to); 928 BranchOrBacktrack(al, to);
930 } 929 }
931 930
932 931
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
1410 __ ldr(pc, MemOperand(sp, stack_alignment, PostIndex)); 1409 __ ldr(pc, MemOperand(sp, stack_alignment, PostIndex));
1411 } 1410 }
1412 1411
1413 #undef __ 1412 #undef __
1414 1413
1415 #endif // V8_INTERPRETED_REGEXP 1414 #endif // V8_INTERPRETED_REGEXP
1416 1415
1417 }} // namespace v8::internal 1416 }} // namespace v8::internal
1418 1417
1419 #endif // V8_TARGET_ARCH_ARM 1418 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/ast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698