| 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 843 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 854 Code* code = Code::cast(result); | 854 Code* code = Code::cast(result); |
| 855 USE(code); | 855 USE(code); |
| 856 LOG(CodeCreateEvent("CallMiss", code, code->arguments_count())); | 856 LOG(CodeCreateEvent("CallMiss", code, code->arguments_count())); |
| 857 } | 857 } |
| 858 return result; | 858 return result; |
| 859 } | 859 } |
| 860 | 860 |
| 861 | 861 |
| 862 Object* StubCompiler::CompileCallDebugBreak(Code::Flags flags) { | 862 Object* StubCompiler::CompileCallDebugBreak(Code::Flags flags) { |
| 863 HandleScope scope; | 863 HandleScope scope; |
| 864 Builtins::Generate_CallIC_DebugBreak(masm()); | 864 Debug::GenerateCallICDebugBreak(masm()); |
| 865 Object* result = GetCodeWithFlags(flags); | 865 Object* result = GetCodeWithFlags(flags); |
| 866 if (!result->IsFailure()) { | 866 if (!result->IsFailure()) { |
| 867 Code* code = Code::cast(result); | 867 Code* code = Code::cast(result); |
| 868 USE(code); | 868 USE(code); |
| 869 LOG(CodeCreateEvent("CallDebugBreak", code, code->arguments_count())); | 869 LOG(CodeCreateEvent("CallDebugBreak", code, code->arguments_count())); |
| 870 } | 870 } |
| 871 return result; | 871 return result; |
| 872 } | 872 } |
| 873 | 873 |
| 874 | 874 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| OLD | NEW |