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/x64/regexp-macro-assembler-x64.cc

Issue 6696042: Adding 'isolates' argument to LOG to get rid of multiple TLS fetches in profiling. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/isolates
Patch Set: Addressing code review feedback + rebase Created 9 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 | Annotate | Revision Log
« no previous file with comments | « src/x64/assembler-x64.cc ('k') | src/x64/stub-cache-x64.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 937 matching lines...) Expand 10 before | Expand all | Expand 10 after
948 __ bind(&exit_with_exception); 948 __ bind(&exit_with_exception);
949 // Exit with Result EXCEPTION(-1) to signal thrown exception. 949 // Exit with Result EXCEPTION(-1) to signal thrown exception.
950 __ movq(rax, Immediate(EXCEPTION)); 950 __ movq(rax, Immediate(EXCEPTION));
951 __ jmp(&exit_label_); 951 __ jmp(&exit_label_);
952 } 952 }
953 953
954 FixupCodeRelativePositions(); 954 FixupCodeRelativePositions();
955 955
956 CodeDesc code_desc; 956 CodeDesc code_desc;
957 masm_->GetCode(&code_desc); 957 masm_->GetCode(&code_desc);
958 Handle<Code> code = FACTORY->NewCode(code_desc, 958 Isolate* isolate = ISOLATE;
959 Code::ComputeFlags(Code::REGEXP), 959 Handle<Code> code = isolate->factory()->NewCode(
960 masm_->CodeObject()); 960 code_desc, Code::ComputeFlags(Code::REGEXP),
961 PROFILE(RegExpCodeCreateEvent(*code, *source)); 961 masm_->CodeObject());
962 PROFILE(isolate, RegExpCodeCreateEvent(*code, *source));
962 return Handle<Object>::cast(code); 963 return Handle<Object>::cast(code);
963 } 964 }
964 965
965 966
966 void RegExpMacroAssemblerX64::GoTo(Label* to) { 967 void RegExpMacroAssemblerX64::GoTo(Label* to) {
967 BranchOrBacktrack(no_condition, to); 968 BranchOrBacktrack(no_condition, to);
968 } 969 }
969 970
970 971
971 void RegExpMacroAssemblerX64::IfRegisterGE(int reg, 972 void RegExpMacroAssemblerX64::IfRegisterGE(int reg,
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
1376 } 1377 }
1377 } 1378 }
1378 1379
1379 #undef __ 1380 #undef __
1380 1381
1381 #endif // V8_INTERPRETED_REGEXP 1382 #endif // V8_INTERPRETED_REGEXP
1382 1383
1383 }} // namespace v8::internal 1384 }} // namespace v8::internal
1384 1385
1385 #endif // V8_TARGET_ARCH_X64 1386 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/assembler-x64.cc ('k') | src/x64/stub-cache-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698