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

Side by Side Diff: src/regexp/mips64/regexp-macro-assembler-mips64.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, 9 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_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
6 6
7 #include "src/regexp/mips64/regexp-macro-assembler-mips64.h" 7 #include "src/regexp/mips64/regexp-macro-assembler-mips64.h"
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 924 matching lines...) Expand 10 before | Expand all | Expand 10 after
935 // Exit with Result EXCEPTION(-1) to signal thrown exception. 935 // Exit with Result EXCEPTION(-1) to signal thrown exception.
936 __ li(v0, Operand(EXCEPTION)); 936 __ li(v0, Operand(EXCEPTION));
937 __ jmp(&return_v0); 937 __ jmp(&return_v0);
938 } 938 }
939 } 939 }
940 940
941 CodeDesc code_desc; 941 CodeDesc code_desc;
942 masm_->GetCode(&code_desc); 942 masm_->GetCode(&code_desc);
943 Handle<Code> code = isolate()->factory()->NewCode( 943 Handle<Code> code = isolate()->factory()->NewCode(
944 code_desc, Code::ComputeFlags(Code::REGEXP), masm_->CodeObject()); 944 code_desc, Code::ComputeFlags(Code::REGEXP), masm_->CodeObject());
945 LOG(masm_->isolate(), RegExpCodeCreateEvent(*code, *source)); 945 LOG(masm_->isolate(),
946 RegExpCodeCreateEvent(AbstractCode::cast(*code), *source));
946 return Handle<HeapObject>::cast(code); 947 return Handle<HeapObject>::cast(code);
947 } 948 }
948 949
949 950
950 void RegExpMacroAssemblerMIPS::GoTo(Label* to) { 951 void RegExpMacroAssemblerMIPS::GoTo(Label* to) {
951 if (to == NULL) { 952 if (to == NULL) {
952 Backtrack(); 953 Backtrack();
953 return; 954 return;
954 } 955 }
955 __ jmp(to); 956 __ jmp(to);
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
1327 } 1328 }
1328 1329
1329 #undef __ 1330 #undef __
1330 1331
1331 #endif // V8_INTERPRETED_REGEXP 1332 #endif // V8_INTERPRETED_REGEXP
1332 1333
1333 } // namespace internal 1334 } // namespace internal
1334 } // namespace v8 1335 } // namespace v8
1335 1336
1336 #endif // V8_TARGET_ARCH_MIPS64 1337 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/regexp/mips/regexp-macro-assembler-mips.cc ('k') | src/regexp/ppc/regexp-macro-assembler-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698