Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 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 913 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 924 | 924 |
| 925 | 925 |
| 926 Result VirtualFrame::CallRuntime(Runtime::FunctionId id, int arg_count) { | 926 Result VirtualFrame::CallRuntime(Runtime::FunctionId id, int arg_count) { |
| 927 PrepareForCall(arg_count, arg_count); | 927 PrepareForCall(arg_count, arg_count); |
| 928 ASSERT(cgen()->HasValidEntryRegisters()); | 928 ASSERT(cgen()->HasValidEntryRegisters()); |
| 929 __ CallRuntime(id, arg_count); | 929 __ CallRuntime(id, arg_count); |
| 930 Result result = cgen()->allocator()->Allocate(rax); | 930 Result result = cgen()->allocator()->Allocate(rax); |
| 931 ASSERT(result.is_valid()); | 931 ASSERT(result.is_valid()); |
| 932 return result; | 932 return result; |
| 933 } | 933 } |
| 934 | 934 |
|
Søren Thygesen Gjesse
2009/08/18 13:10:44
Accidental edit?
Lasse Reichstein
2009/08/19 07:07:55
Indeed. Fixed.
| |
| 935 | |
| 936 Result VirtualFrame::CallLoadIC(RelocInfo::Mode mode) { | 935 Result VirtualFrame::CallLoadIC(RelocInfo::Mode mode) { |
| 937 // Name and receiver are on the top of the frame. The IC expects | 936 // Name and receiver are on the top of the frame. The IC expects |
| 938 // name in rcx and receiver on the stack. It does not drop the | 937 // name in rcx and receiver on the stack. It does not drop the |
| 939 // receiver. | 938 // receiver. |
| 940 Handle<Code> ic(Builtins::builtin(Builtins::LoadIC_Initialize)); | 939 Handle<Code> ic(Builtins::builtin(Builtins::LoadIC_Initialize)); |
| 941 Result name = Pop(); | 940 Result name = Pop(); |
| 942 PrepareForCall(1, 0); // One stack arg, not callee-dropped. | 941 PrepareForCall(1, 0); // One stack arg, not callee-dropped. |
| 943 name.ToRegister(rcx); | 942 name.ToRegister(rcx); |
| 944 name.Unuse(); | 943 name.Unuse(); |
| 945 return RawCallCodeObject(ic, mode); | 944 return RawCallCodeObject(ic, mode); |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1044 // Grow the expression stack by handler size less one (the return | 1043 // Grow the expression stack by handler size less one (the return |
| 1045 // address is already pushed by a call instruction). | 1044 // address is already pushed by a call instruction). |
| 1046 Adjust(kHandlerSize - 1); | 1045 Adjust(kHandlerSize - 1); |
| 1047 __ PushTryHandler(IN_JAVASCRIPT, type); | 1046 __ PushTryHandler(IN_JAVASCRIPT, type); |
| 1048 } | 1047 } |
| 1049 | 1048 |
| 1050 | 1049 |
| 1051 #undef __ | 1050 #undef __ |
| 1052 | 1051 |
| 1053 } } // namespace v8::internal | 1052 } } // namespace v8::internal |
| OLD | NEW |