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

Side by Side Diff: src/arm/regexp-macro-assembler-arm.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/api.cc ('k') | src/arm64/regexp-macro-assembler-arm64.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 // 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_ARM 7 #if V8_TARGET_ARCH_ARM
8 8
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/cpu-profiler.h" 10 #include "src/cpu-profiler.h"
(...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after
843 // Exit with Result EXCEPTION(-1) to signal thrown exception. 843 // Exit with Result EXCEPTION(-1) to signal thrown exception.
844 __ mov(r0, Operand(EXCEPTION)); 844 __ mov(r0, Operand(EXCEPTION));
845 __ jmp(&return_r0); 845 __ jmp(&return_r0);
846 } 846 }
847 847
848 CodeDesc code_desc; 848 CodeDesc code_desc;
849 masm_->GetCode(&code_desc); 849 masm_->GetCode(&code_desc);
850 Handle<Code> code = isolate()->factory()->NewCode( 850 Handle<Code> code = isolate()->factory()->NewCode(
851 code_desc, Code::ComputeFlags(Code::REGEXP), masm_->CodeObject()); 851 code_desc, Code::ComputeFlags(Code::REGEXP), masm_->CodeObject());
852 PROFILE(masm_->isolate(), RegExpCodeCreateEvent(*code, *source)); 852 PROFILE(masm_->isolate(), RegExpCodeCreateEvent(*code, *source));
853 masm_->isolate()->CodeCreateEvent(*code, *source);
853 return Handle<HeapObject>::cast(code); 854 return Handle<HeapObject>::cast(code);
854 } 855 }
855 856
856 857
857 void RegExpMacroAssemblerARM::GoTo(Label* to) { 858 void RegExpMacroAssemblerARM::GoTo(Label* to) {
858 BranchOrBacktrack(al, to); 859 BranchOrBacktrack(al, to);
859 } 860 }
860 861
861 862
862 void RegExpMacroAssemblerARM::IfRegisterGE(int reg, 863 void RegExpMacroAssemblerARM::IfRegisterGE(int reg,
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
1270 } 1271 }
1271 1272
1272 1273
1273 #undef __ 1274 #undef __
1274 1275
1275 #endif // V8_INTERPRETED_REGEXP 1276 #endif // V8_INTERPRETED_REGEXP
1276 1277
1277 }} // namespace v8::internal 1278 }} // namespace v8::internal
1278 1279
1279 #endif // V8_TARGET_ARCH_ARM 1280 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/arm64/regexp-macro-assembler-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698