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

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

Issue 2918001: Move serialized scope info from Code object to SharedFunctionInfo. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 5 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') | test/cctest/test-assembler-arm.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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 942 matching lines...) Expand 10 before | Expand all | Expand 10 after
953 // Exit with Result EXCEPTION(-1) to signal thrown exception. 953 // Exit with Result EXCEPTION(-1) to signal thrown exception.
954 __ movq(rax, Immediate(EXCEPTION)); 954 __ movq(rax, Immediate(EXCEPTION));
955 __ jmp(&exit_label_); 955 __ jmp(&exit_label_);
956 } 956 }
957 957
958 FixupCodeRelativePositions(); 958 FixupCodeRelativePositions();
959 959
960 CodeDesc code_desc; 960 CodeDesc code_desc;
961 masm_->GetCode(&code_desc); 961 masm_->GetCode(&code_desc);
962 Handle<Code> code = Factory::NewCode(code_desc, 962 Handle<Code> code = Factory::NewCode(code_desc,
963 NULL,
964 Code::ComputeFlags(Code::REGEXP), 963 Code::ComputeFlags(Code::REGEXP),
965 masm_->CodeObject()); 964 masm_->CodeObject());
966 PROFILE(RegExpCodeCreateEvent(*code, *source)); 965 PROFILE(RegExpCodeCreateEvent(*code, *source));
967 return Handle<Object>::cast(code); 966 return Handle<Object>::cast(code);
968 } 967 }
969 968
970 969
971 void RegExpMacroAssemblerX64::GoTo(Label* to) { 970 void RegExpMacroAssemblerX64::GoTo(Label* to) {
972 BranchOrBacktrack(no_condition, to); 971 BranchOrBacktrack(no_condition, to);
973 } 972 }
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
1366 } 1365 }
1367 } 1366 }
1368 1367
1369 #undef __ 1368 #undef __
1370 1369
1371 #endif // V8_INTERPRETED_REGEXP 1370 #endif // V8_INTERPRETED_REGEXP
1372 1371
1373 }} // namespace v8::internal 1372 }} // namespace v8::internal
1374 1373
1375 #endif // V8_TARGET_ARCH_X64 1374 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/assembler-x64.cc ('k') | test/cctest/test-assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698