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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 const bool Debug::FramePaddingLayout::kIsSupported = false; | 110 const bool Debug::FramePaddingLayout::kIsSupported = false; |
111 | 111 |
112 | 112 |
113 #define __ ACCESS_MASM(masm) | 113 #define __ ACCESS_MASM(masm) |
114 | 114 |
115 | 115 |
116 static void Generate_DebugBreakCallHelper(MacroAssembler* masm, | 116 static void Generate_DebugBreakCallHelper(MacroAssembler* masm, |
117 RegList object_regs, | 117 RegList object_regs, |
118 RegList non_object_regs) { | 118 RegList non_object_regs) { |
119 { | 119 { |
120 FrameScope scope(masm, StackFrame::INTERNAL); | 120 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); |
121 | 121 |
122 // Store the registers containing live values on the expression stack to | 122 // Store the registers containing live values on the expression stack to |
123 // make sure that these are correctly updated during GC. Non object values | 123 // make sure that these are correctly updated during GC. Non object values |
124 // are stored as a smi causing it to be untouched by GC. | 124 // are stored as a smi causing it to be untouched by GC. |
125 ASSERT((object_regs & ~kJSCallerSaved) == 0); | 125 ASSERT((object_regs & ~kJSCallerSaved) == 0); |
126 ASSERT((non_object_regs & ~kJSCallerSaved) == 0); | 126 ASSERT((non_object_regs & ~kJSCallerSaved) == 0); |
127 ASSERT((object_regs & non_object_regs) == 0); | 127 ASSERT((object_regs & non_object_regs) == 0); |
128 if ((object_regs | non_object_regs) != 0) { | 128 if ((object_regs | non_object_regs) != 0) { |
129 for (int i = 0; i < kNumJSCallerSaved; i++) { | 129 for (int i = 0; i < kNumJSCallerSaved; i++) { |
130 int r = JSCallerSavedCode(i); | 130 int r = JSCallerSavedCode(i); |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 | 329 |
330 #undef __ | 330 #undef __ |
331 | 331 |
332 | 332 |
333 | 333 |
334 #endif // ENABLE_DEBUGGER_SUPPORT | 334 #endif // ENABLE_DEBUGGER_SUPPORT |
335 | 335 |
336 } } // namespace v8::internal | 336 } } // namespace v8::internal |
337 | 337 |
338 #endif // V8_TARGET_ARCH_ARM | 338 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |