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

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

Issue 519543002: [WIP] Added CodeEventListener to the sampler API. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: CallbackEvent also logs as code-creation, added coverage for that. Created 6 years, 3 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/cpu-profiler.h ('k') | src/isolate.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_IA32 7 #if V8_TARGET_ARCH_IA32
8 8
9 #include "src/cpu-profiler.h" 9 #include "src/cpu-profiler.h"
10 #include "src/log.h" 10 #include "src/log.h"
(...skipping 887 matching lines...) Expand 10 before | Expand all | Expand 10 after
898 __ jmp(&return_eax); 898 __ jmp(&return_eax);
899 } 899 }
900 900
901 CodeDesc code_desc; 901 CodeDesc code_desc;
902 masm_->GetCode(&code_desc); 902 masm_->GetCode(&code_desc);
903 Handle<Code> code = 903 Handle<Code> code =
904 isolate()->factory()->NewCode(code_desc, 904 isolate()->factory()->NewCode(code_desc,
905 Code::ComputeFlags(Code::REGEXP), 905 Code::ComputeFlags(Code::REGEXP),
906 masm_->CodeObject()); 906 masm_->CodeObject());
907 PROFILE(isolate(), RegExpCodeCreateEvent(*code, *source)); 907 PROFILE(isolate(), RegExpCodeCreateEvent(*code, *source));
908 isolate()->CodeCreateEvent(*code, *source);
908 return Handle<HeapObject>::cast(code); 909 return Handle<HeapObject>::cast(code);
909 } 910 }
910 911
911 912
912 void RegExpMacroAssemblerIA32::GoTo(Label* to) { 913 void RegExpMacroAssemblerIA32::GoTo(Label* to) {
913 BranchOrBacktrack(no_condition, to); 914 BranchOrBacktrack(no_condition, to);
914 } 915 }
915 916
916 917
917 void RegExpMacroAssemblerIA32::IfRegisterGE(int reg, 918 void RegExpMacroAssemblerIA32::IfRegisterGE(int reg,
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
1301 } 1302 }
1302 1303
1303 1304
1304 #undef __ 1305 #undef __
1305 1306
1306 #endif // V8_INTERPRETED_REGEXP 1307 #endif // V8_INTERPRETED_REGEXP
1307 1308
1308 }} // namespace v8::internal 1309 }} // namespace v8::internal
1309 1310
1310 #endif // V8_TARGET_ARCH_IA32 1311 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/cpu-profiler.h ('k') | src/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698