| 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 } | 94 } |
| 95 | 95 |
| 96 MacroAssembler* masm_; | 96 MacroAssembler* masm_; |
| 97 Label patch_site_; | 97 Label patch_site_; |
| 98 #ifdef DEBUG | 98 #ifdef DEBUG |
| 99 bool info_emitted_; | 99 bool info_emitted_; |
| 100 #endif | 100 #endif |
| 101 }; | 101 }; |
| 102 | 102 |
| 103 | 103 |
| 104 // TODO(jkummerow): Obsolete as soon as x64 is updated. Remove. | |
| 105 int FullCodeGenerator::self_optimization_header_size() { | |
| 106 UNREACHABLE(); | |
| 107 return 13; | |
| 108 } | |
| 109 | |
| 110 | |
| 111 // 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 |
| 112 // 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 |
| 113 // 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 |
| 114 // formal parameter count expected by the function. | 107 // formal parameter count expected by the function. |
| 115 // | 108 // |
| 116 // The live registers are: | 109 // The live registers are: |
| 117 // o edi: the JS function object being called (i.e. ourselves) | 110 // o edi: the JS function object being called (i.e. ourselves) |
| 118 // o esi: our context | 111 // o esi: our context |
| 119 // o ebp: our caller's frame pointer | 112 // o ebp: our caller's frame pointer |
| 120 // o esp: stack pointer (pointing to return address) | 113 // o esp: stack pointer (pointing to return address) |
| (...skipping 4388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4509 *context_length = 0; | 4502 *context_length = 0; |
| 4510 return previous_; | 4503 return previous_; |
| 4511 } | 4504 } |
| 4512 | 4505 |
| 4513 | 4506 |
| 4514 #undef __ | 4507 #undef __ |
| 4515 | 4508 |
| 4516 } } // namespace v8::internal | 4509 } } // namespace v8::internal |
| 4517 | 4510 |
| 4518 #endif // V8_TARGET_ARCH_IA32 | 4511 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |