| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 __ Assert(zero, "Unable to encode value as smi"); | 120 __ Assert(zero, "Unable to encode value as smi"); |
| 121 } | 121 } |
| 122 __ SmiTag(reg); | 122 __ SmiTag(reg); |
| 123 __ push(reg); | 123 __ push(reg); |
| 124 } | 124 } |
| 125 } | 125 } |
| 126 | 126 |
| 127 #ifdef DEBUG | 127 #ifdef DEBUG |
| 128 __ RecordComment("// Calling from debug break to runtime - come in - over"); | 128 __ RecordComment("// Calling from debug break to runtime - come in - over"); |
| 129 #endif | 129 #endif |
| 130 __ Set(eax, Immediate(0)); // no arguments | 130 __ Set(eax, Immediate(0)); // No arguments. |
| 131 __ mov(ebx, Immediate(ExternalReference::debug_break())); | 131 __ mov(ebx, Immediate(ExternalReference::debug_break())); |
| 132 | 132 |
| 133 CEntryStub ceb(1); | 133 CEntryStub ceb(1); |
| 134 __ CallStub(&ceb); | 134 __ CallStub(&ceb); |
| 135 | 135 |
| 136 // Restore the register values containing object pointers from the expression | 136 // Restore the register values containing object pointers from the expression |
| 137 // stack. | 137 // stack. |
| 138 for (int i = kNumJSCallerSaved; --i >= 0;) { | 138 for (int i = kNumJSCallerSaved; --i >= 0;) { |
| 139 int r = JSCallerSavedCode(i); | 139 int r = JSCallerSavedCode(i); |
| 140 Register reg = { r }; | 140 Register reg = { r }; |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 | 302 |
| 303 const bool Debug::kFrameDropperSupported = true; | 303 const bool Debug::kFrameDropperSupported = true; |
| 304 | 304 |
| 305 #undef __ | 305 #undef __ |
| 306 | 306 |
| 307 #endif // ENABLE_DEBUGGER_SUPPORT | 307 #endif // ENABLE_DEBUGGER_SUPPORT |
| 308 | 308 |
| 309 } } // namespace v8::internal | 309 } } // namespace v8::internal |
| 310 | 310 |
| 311 #endif // V8_TARGET_ARCH_IA32 | 311 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |