| 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 1020 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1031 name.ToRegister(rcx); | 1031 name.ToRegister(rcx); |
| 1032 value.ToRegister(rax); | 1032 value.ToRegister(rax); |
| 1033 } | 1033 } |
| 1034 | 1034 |
| 1035 name.Unuse(); | 1035 name.Unuse(); |
| 1036 value.Unuse(); | 1036 value.Unuse(); |
| 1037 return RawCallCodeObject(ic, RelocInfo::CODE_TARGET); | 1037 return RawCallCodeObject(ic, RelocInfo::CODE_TARGET); |
| 1038 } | 1038 } |
| 1039 | 1039 |
| 1040 | 1040 |
| 1041 void VirtualFrame::PushTryHandler(HandlerType type) { |
| 1042 ASSERT(cgen()->HasValidEntryRegisters()); |
| 1043 // Grow the expression stack by handler size less one (the return |
| 1044 // address is already pushed by a call instruction). |
| 1045 Adjust(kHandlerSize - 1); |
| 1046 __ PushTryHandler(IN_JAVASCRIPT, type); |
| 1047 } |
| 1048 |
| 1049 |
| 1041 #undef __ | 1050 #undef __ |
| 1042 | 1051 |
| 1043 } } // namespace v8::internal | 1052 } } // namespace v8::internal |
| OLD | NEW |