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

Side by Side Diff: src/arm64/regexp-macro-assembler-arm64.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/arm/regexp-macro-assembler-arm.cc ('k') | src/builtins.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_ARM64 7 #if V8_TARGET_ARCH_ARM64
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 1023 matching lines...) Expand 10 before | Expand all | Expand 10 after
1034 __ Bind(&exit_with_exception); 1034 __ Bind(&exit_with_exception);
1035 __ Mov(w0, EXCEPTION); 1035 __ Mov(w0, EXCEPTION);
1036 __ B(&return_w0); 1036 __ B(&return_w0);
1037 } 1037 }
1038 1038
1039 CodeDesc code_desc; 1039 CodeDesc code_desc;
1040 masm_->GetCode(&code_desc); 1040 masm_->GetCode(&code_desc);
1041 Handle<Code> code = isolate()->factory()->NewCode( 1041 Handle<Code> code = isolate()->factory()->NewCode(
1042 code_desc, Code::ComputeFlags(Code::REGEXP), masm_->CodeObject()); 1042 code_desc, Code::ComputeFlags(Code::REGEXP), masm_->CodeObject());
1043 PROFILE(masm_->isolate(), RegExpCodeCreateEvent(*code, *source)); 1043 PROFILE(masm_->isolate(), RegExpCodeCreateEvent(*code, *source));
1044 masm_->isolate()->CodeCreateEvent(*code, *source);
1044 return Handle<HeapObject>::cast(code); 1045 return Handle<HeapObject>::cast(code);
1045 } 1046 }
1046 1047
1047 1048
1048 void RegExpMacroAssemblerARM64::GoTo(Label* to) { 1049 void RegExpMacroAssemblerARM64::GoTo(Label* to) {
1049 BranchOrBacktrack(al, to); 1050 BranchOrBacktrack(al, to);
1050 } 1051 }
1051 1052
1052 void RegExpMacroAssemblerARM64::IfRegisterGE(int reg, int comparand, 1053 void RegExpMacroAssemblerARM64::IfRegisterGE(int reg, int comparand,
1053 Label* if_ge) { 1054 Label* if_ge) {
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after
1699 __ Ldrh(current_character(), MemOperand(input_end(), offset, SXTW)); 1700 __ Ldrh(current_character(), MemOperand(input_end(), offset, SXTW));
1700 } 1701 }
1701 } 1702 }
1702 } 1703 }
1703 1704
1704 #endif // V8_INTERPRETED_REGEXP 1705 #endif // V8_INTERPRETED_REGEXP
1705 1706
1706 }} // namespace v8::internal 1707 }} // namespace v8::internal
1707 1708
1708 #endif // V8_TARGET_ARCH_ARM64 1709 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm/regexp-macro-assembler-arm.cc ('k') | src/builtins.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698