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

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

Issue 1728593002: [Interpreter] Add support for cpu profiler logging. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 10 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
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 #if V8_TARGET_ARCH_X64 5 #if V8_TARGET_ARCH_X64
6 6
7 #include "src/regexp/x64/regexp-macro-assembler-x64.h" 7 #include "src/regexp/x64/regexp-macro-assembler-x64.h"
8 8
9 #include "src/log.h" 9 #include "src/log.h"
10 #include "src/macro-assembler.h" 10 #include "src/macro-assembler.h"
(...skipping 990 matching lines...) Expand 10 before | Expand all | Expand 10 after
1001 } 1001 }
1002 1002
1003 FixupCodeRelativePositions(); 1003 FixupCodeRelativePositions();
1004 1004
1005 CodeDesc code_desc; 1005 CodeDesc code_desc;
1006 masm_.GetCode(&code_desc); 1006 masm_.GetCode(&code_desc);
1007 Isolate* isolate = this->isolate(); 1007 Isolate* isolate = this->isolate();
1008 Handle<Code> code = isolate->factory()->NewCode( 1008 Handle<Code> code = isolate->factory()->NewCode(
1009 code_desc, Code::ComputeFlags(Code::REGEXP), 1009 code_desc, Code::ComputeFlags(Code::REGEXP),
1010 masm_.CodeObject()); 1010 masm_.CodeObject());
1011 PROFILE(isolate, RegExpCodeCreateEvent(*code, *source)); 1011 PROFILE(isolate, RegExpCodeCreateEvent(AbstractCode::cast(*code), *source));
1012 return Handle<HeapObject>::cast(code); 1012 return Handle<HeapObject>::cast(code);
1013 } 1013 }
1014 1014
1015 1015
1016 void RegExpMacroAssemblerX64::GoTo(Label* to) { 1016 void RegExpMacroAssemblerX64::GoTo(Label* to) {
1017 BranchOrBacktrack(no_condition, to); 1017 BranchOrBacktrack(no_condition, to);
1018 } 1018 }
1019 1019
1020 1020
1021 void RegExpMacroAssemblerX64::IfRegisterGE(int reg, 1021 void RegExpMacroAssemblerX64::IfRegisterGE(int reg,
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
1394 } 1394 }
1395 1395
1396 #undef __ 1396 #undef __
1397 1397
1398 #endif // V8_INTERPRETED_REGEXP 1398 #endif // V8_INTERPRETED_REGEXP
1399 1399
1400 } // namespace internal 1400 } // namespace internal
1401 } // namespace v8 1401 } // namespace v8
1402 1402
1403 #endif // V8_TARGET_ARCH_X64 1403 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/regexp/ppc/regexp-macro-assembler-ppc.cc ('k') | src/regexp/x87/regexp-macro-assembler-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698