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

Side by Side Diff: src/ia32/regexp-macro-assembler-ia32.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/ia32/assembler-ia32.cc ('k') | src/objects.h » ('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 2008-2009 the V8 project authors. All rights reserved. 1 // Copyright 2008-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 854 matching lines...) Expand 10 before | Expand all | Expand 10 after
865 // If any of the code above needed to exit with an exception. 865 // If any of the code above needed to exit with an exception.
866 __ bind(&exit_with_exception); 866 __ bind(&exit_with_exception);
867 // Exit with Result EXCEPTION(-1) to signal thrown exception. 867 // Exit with Result EXCEPTION(-1) to signal thrown exception.
868 __ mov(eax, EXCEPTION); 868 __ mov(eax, EXCEPTION);
869 __ jmp(&exit_label_); 869 __ jmp(&exit_label_);
870 } 870 }
871 871
872 CodeDesc code_desc; 872 CodeDesc code_desc;
873 masm_->GetCode(&code_desc); 873 masm_->GetCode(&code_desc);
874 Handle<Code> code = Factory::NewCode(code_desc, 874 Handle<Code> code = Factory::NewCode(code_desc,
875 NULL,
876 Code::ComputeFlags(Code::REGEXP), 875 Code::ComputeFlags(Code::REGEXP),
877 masm_->CodeObject()); 876 masm_->CodeObject());
878 PROFILE(RegExpCodeCreateEvent(*code, *source)); 877 PROFILE(RegExpCodeCreateEvent(*code, *source));
879 return Handle<Object>::cast(code); 878 return Handle<Object>::cast(code);
880 } 879 }
881 880
882 881
883 void RegExpMacroAssemblerIA32::GoTo(Label* to) { 882 void RegExpMacroAssemblerIA32::GoTo(Label* to) {
884 BranchOrBacktrack(no_condition, to); 883 BranchOrBacktrack(no_condition, to);
885 } 884 }
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
1239 } 1238 }
1240 1239
1241 1240
1242 #undef __ 1241 #undef __
1243 1242
1244 #endif // V8_INTERPRETED_REGEXP 1243 #endif // V8_INTERPRETED_REGEXP
1245 1244
1246 }} // namespace v8::internal 1245 }} // namespace v8::internal
1247 1246
1248 #endif // V8_TARGET_ARCH_IA32 1247 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/assembler-ia32.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698