| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 #endif | 100 #endif |
| 101 }; | 101 }; |
| 102 | 102 |
| 103 | 103 |
| 104 // Generate code for a JS function. On entry to the function the receiver | 104 // Generate code for a JS function. On entry to the function the receiver |
| 105 // and arguments have been pushed on the stack left to right, with the | 105 // and arguments have been pushed on the stack left to right, with the |
| 106 // return address on top of them. The actual argument count matches the | 106 // return address on top of them. The actual argument count matches the |
| 107 // formal parameter count expected by the function. | 107 // formal parameter count expected by the function. |
| 108 // | 108 // |
| 109 // The live registers are: | 109 // The live registers are: |
| 110 // o ecx: CallKind |
| 110 // o edi: the JS function object being called (i.e. ourselves) | 111 // o edi: the JS function object being called (i.e. ourselves) |
| 111 // o esi: our context | 112 // o esi: our context |
| 112 // o ebp: our caller's frame pointer | 113 // o ebp: our caller's frame pointer |
| 113 // o esp: stack pointer (pointing to return address) | 114 // o esp: stack pointer (pointing to return address) |
| 114 // | 115 // |
| 115 // The function builds a JS frame. Please see JavaScriptFrameConstants in | 116 // The function builds a JS frame. Please see JavaScriptFrameConstants in |
| 116 // frames-ia32.h for its layout. | 117 // frames-ia32.h for its layout. |
| 117 void FullCodeGenerator::Generate() { | 118 void FullCodeGenerator::Generate() { |
| 118 CompilationInfo* info = info_; | 119 CompilationInfo* info = info_; |
| 119 handler_table_ = | 120 handler_table_ = |
| (...skipping 4798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4918 *stack_depth = 0; | 4919 *stack_depth = 0; |
| 4919 *context_length = 0; | 4920 *context_length = 0; |
| 4920 return previous_; | 4921 return previous_; |
| 4921 } | 4922 } |
| 4922 | 4923 |
| 4923 #undef __ | 4924 #undef __ |
| 4924 | 4925 |
| 4925 } } // namespace v8::internal | 4926 } } // namespace v8::internal |
| 4926 | 4927 |
| 4927 #endif // V8_TARGET_ARCH_IA32 | 4928 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |