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

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

Issue 40100: Fix the 64-bit build. Implicit conversion from string constant to... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 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/stub-cache.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 871 matching lines...) Expand 10 before | Expand all | Expand 10 after
882 if (!result->IsFailure()) { 882 if (!result->IsFailure()) {
883 Code* code = Code::cast(result); 883 Code* code = Code::cast(result);
884 USE(code); 884 USE(code);
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, char* name) { 892 Object* StubCompiler::GetCodeWithFlags(Code::Flags flags, const char* name) {
893 CodeDesc desc; 893 CodeDesc desc;
894 masm_.GetCode(&desc); 894 masm_.GetCode(&desc);
895 Object* result = Heap::CreateCode(desc, NULL, flags, masm_.CodeObject()); 895 Object* result = Heap::CreateCode(desc, NULL, flags, masm_.CodeObject());
896 #ifdef ENABLE_DISASSEMBLER 896 #ifdef ENABLE_DISASSEMBLER
897 if (FLAG_print_code_stubs && !result->IsFailure()) { 897 if (FLAG_print_code_stubs && !result->IsFailure()) {
898 Code::cast(result)->Disassemble(name); 898 Code::cast(result)->Disassemble(name);
899 } 899 }
900 #endif 900 #endif
901 return result; 901 return result;
902 } 902 }
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
935 935
936 936
937 Object* CallStubCompiler::GetCode(PropertyType type, String* name) { 937 Object* CallStubCompiler::GetCode(PropertyType type, String* name) {
938 int argc = arguments_.immediate(); 938 int argc = arguments_.immediate();
939 Code::Flags flags = Code::ComputeMonomorphicFlags(Code::CALL_IC, type, argc); 939 Code::Flags flags = Code::ComputeMonomorphicFlags(Code::CALL_IC, type, argc);
940 return GetCodeWithFlags(flags, name); 940 return GetCodeWithFlags(flags, name);
941 } 941 }
942 942
943 943
944 } } // namespace v8::internal 944 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/stub-cache.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698