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

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

Issue 10795074: Add a new API V8::SetJitCodeEventHandler to push code name and location to users such as profilers. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Back out unintentional changes. Created 8 years, 5 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
« include/v8.h ('K') | « src/api.cc ('k') | src/assembler.h » ('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 904 matching lines...) Expand 10 before | Expand all | Expand 10 after
915 __ mov(r0, Operand(EXCEPTION)); 915 __ mov(r0, Operand(EXCEPTION));
916 __ jmp(&return_r0); 916 __ jmp(&return_r0);
917 } 917 }
918 918
919 CodeDesc code_desc; 919 CodeDesc code_desc;
920 masm_->GetCode(&code_desc); 920 masm_->GetCode(&code_desc);
921 Handle<Code> code = FACTORY->NewCode(code_desc, 921 Handle<Code> code = FACTORY->NewCode(code_desc,
922 Code::ComputeFlags(Code::REGEXP), 922 Code::ComputeFlags(Code::REGEXP),
923 masm_->CodeObject()); 923 masm_->CodeObject());
924 PROFILE(Isolate::Current(), RegExpCodeCreateEvent(*code, *source)); 924 PROFILE(Isolate::Current(), RegExpCodeCreateEvent(*code, *source));
925 JIT_CODE_EVENT(AddCode(*source, *code));
925 return Handle<HeapObject>::cast(code); 926 return Handle<HeapObject>::cast(code);
926 } 927 }
927 928
928 929
929 void RegExpMacroAssemblerARM::GoTo(Label* to) { 930 void RegExpMacroAssemblerARM::GoTo(Label* to) {
930 BranchOrBacktrack(al, to); 931 BranchOrBacktrack(al, to);
931 } 932 }
932 933
933 934
934 void RegExpMacroAssemblerARM::IfRegisterGE(int reg, 935 void RegExpMacroAssemblerARM::IfRegisterGE(int reg,
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
1406 __ ldr(pc, MemOperand(sp, stack_alignment, PostIndex)); 1407 __ ldr(pc, MemOperand(sp, stack_alignment, PostIndex));
1407 } 1408 }
1408 1409
1409 #undef __ 1410 #undef __
1410 1411
1411 #endif // V8_INTERPRETED_REGEXP 1412 #endif // V8_INTERPRETED_REGEXP
1412 1413
1413 }} // namespace v8::internal 1414 }} // namespace v8::internal
1414 1415
1415 #endif // V8_TARGET_ARCH_ARM 1416 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« include/v8.h ('K') | « src/api.cc ('k') | src/assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698