| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 58   //   rsp: stack pointer, points to return address from this function. | 58   //   rsp: stack pointer, points to return address from this function. | 
| 59   //   rbp: base pointer, points to previous JS, ArgumentsAdaptor, or | 59   //   rbp: base pointer, points to previous JS, ArgumentsAdaptor, or | 
| 60   //        Trampoline frame. | 60   //        Trampoline frame. | 
| 61   //   rsi: context of this function call. | 61   //   rsi: context of this function call. | 
| 62   //   rdi: pointer to this function object. | 62   //   rdi: pointer to this function object. | 
| 63   Comment cmnt(masm(), "[ Enter JS frame"); | 63   Comment cmnt(masm(), "[ Enter JS frame"); | 
| 64 | 64 | 
| 65 #ifdef DEBUG | 65 #ifdef DEBUG | 
| 66   // Verify that rdi contains a JS function.  The following code | 66   // Verify that rdi contains a JS function.  The following code | 
| 67   // relies on rax being available for use. | 67   // relies on rax being available for use. | 
| 68   __ testl(rdi, Immediate(kSmiTagMask)); | 68   Condition not_smi = masm()->CheckNotSmi(rdi); | 
| 69   __ Check(not_zero, | 69   __ Check(not_smi, | 
| 70            "VirtualFrame::Enter - rdi is not a function (smi check)."); | 70            "VirtualFrame::Enter - rdi is not a function (smi check)."); | 
| 71   __ CmpObjectType(rdi, JS_FUNCTION_TYPE, rax); | 71   __ CmpObjectType(rdi, JS_FUNCTION_TYPE, rax); | 
| 72   __ Check(equal, | 72   __ Check(equal, | 
| 73            "VirtualFrame::Enter - rdi is not a function (map check)."); | 73            "VirtualFrame::Enter - rdi is not a function (map check)."); | 
| 74 #endif | 74 #endif | 
| 75 | 75 | 
| 76   EmitPush(rbp); | 76   EmitPush(rbp); | 
| 77 | 77 | 
| 78   __ movq(rbp, rsp); | 78   __ movq(rbp, rsp); | 
| 79 | 79 | 
| (...skipping 972 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1052   // Grow the expression stack by handler size less one (the return | 1052   // Grow the expression stack by handler size less one (the return | 
| 1053   // address is already pushed by a call instruction). | 1053   // address is already pushed by a call instruction). | 
| 1054   Adjust(kHandlerSize - 1); | 1054   Adjust(kHandlerSize - 1); | 
| 1055   __ PushTryHandler(IN_JAVASCRIPT, type); | 1055   __ PushTryHandler(IN_JAVASCRIPT, type); | 
| 1056 } | 1056 } | 
| 1057 | 1057 | 
| 1058 | 1058 | 
| 1059 #undef __ | 1059 #undef __ | 
| 1060 | 1060 | 
| 1061 } }  // namespace v8::internal | 1061 } }  // namespace v8::internal | 
| OLD | NEW | 
|---|