OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |