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

Side by Side Diff: src/mips/regexp-macro-assembler-mips.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/log.cc ('k') | src/sampler.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_MIPS 7 #if V8_TARGET_ARCH_MIPS
8 8
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/log.h" 10 #include "src/log.h"
(...skipping 843 matching lines...) Expand 10 before | Expand all | Expand 10 after
854 __ li(v0, Operand(EXCEPTION)); 854 __ li(v0, Operand(EXCEPTION));
855 __ jmp(&return_v0); 855 __ jmp(&return_v0);
856 } 856 }
857 } 857 }
858 858
859 CodeDesc code_desc; 859 CodeDesc code_desc;
860 masm_->GetCode(&code_desc); 860 masm_->GetCode(&code_desc);
861 Handle<Code> code = isolate()->factory()->NewCode( 861 Handle<Code> code = isolate()->factory()->NewCode(
862 code_desc, Code::ComputeFlags(Code::REGEXP), masm_->CodeObject()); 862 code_desc, Code::ComputeFlags(Code::REGEXP), masm_->CodeObject());
863 LOG(masm_->isolate(), RegExpCodeCreateEvent(*code, *source)); 863 LOG(masm_->isolate(), RegExpCodeCreateEvent(*code, *source));
864 masm_->isolate()->CodeCreateEvent(*code, *source);
864 return Handle<HeapObject>::cast(code); 865 return Handle<HeapObject>::cast(code);
865 } 866 }
866 867
867 868
868 void RegExpMacroAssemblerMIPS::GoTo(Label* to) { 869 void RegExpMacroAssemblerMIPS::GoTo(Label* to) {
869 if (to == NULL) { 870 if (to == NULL) {
870 Backtrack(); 871 Backtrack();
871 return; 872 return;
872 } 873 }
873 __ jmp(to); 874 __ jmp(to);
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
1317 } 1318 }
1318 1319
1319 1320
1320 #undef __ 1321 #undef __
1321 1322
1322 #endif // V8_INTERPRETED_REGEXP 1323 #endif // V8_INTERPRETED_REGEXP
1323 1324
1324 }} // namespace v8::internal 1325 }} // namespace v8::internal
1325 1326
1326 #endif // V8_TARGET_ARCH_MIPS 1327 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/log.cc ('k') | src/sampler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698