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

Side by Side Diff: src/stub-cache.cc

Issue 12427: Merge regexp2000 back into bleeding_edge (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years 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
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 874 matching lines...) Expand 10 before | Expand all | Expand 10 after
885 LOG(CodeCreateEvent("CallDebugPrepareStepIn", code, 885 LOG(CodeCreateEvent("CallDebugPrepareStepIn", code,
886 code->arguments_count())); 886 code->arguments_count()));
887 } 887 }
888 return result; 888 return result;
889 } 889 }
890 890
891 891
892 Object* StubCompiler::GetCodeWithFlags(Code::Flags flags) { 892 Object* StubCompiler::GetCodeWithFlags(Code::Flags flags) {
893 CodeDesc desc; 893 CodeDesc desc;
894 masm_.GetCode(&desc); 894 masm_.GetCode(&desc);
895 Object* result = Heap::CreateCode(desc, NULL, flags); 895 Object* result = Heap::CreateCode(desc, NULL, flags, NULL);
896 #ifdef DEBUG 896 #ifdef DEBUG
897 if (FLAG_print_code_stubs && !result->IsFailure()) { 897 if (FLAG_print_code_stubs && !result->IsFailure()) {
898 Code::cast(result)->Print(); 898 Code::cast(result)->Print();
899 } 899 }
900 #endif 900 #endif
901 return result; 901 return result;
902 } 902 }
903 903
904 904
905 Object* LoadStubCompiler::GetCode(PropertyType type) { 905 Object* LoadStubCompiler::GetCode(PropertyType type) {
(...skipping 19 matching lines...) Expand all
925 925
926 926
927 Object* CallStubCompiler::GetCode(PropertyType type) { 927 Object* CallStubCompiler::GetCode(PropertyType type) {
928 int argc = arguments_.immediate(); 928 int argc = arguments_.immediate();
929 Code::Flags flags = Code::ComputeMonomorphicFlags(Code::CALL_IC, type, argc); 929 Code::Flags flags = Code::ComputeMonomorphicFlags(Code::CALL_IC, type, argc);
930 return GetCodeWithFlags(flags); 930 return GetCodeWithFlags(flags);
931 } 931 }
932 932
933 933
934 } } // namespace v8::internal 934 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698