| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 3168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3179 } | 3179 } |
| 3180 } else { | 3180 } else { |
| 3181 // Slot is in the current function context. Move it into the | 3181 // Slot is in the current function context. Move it into the |
| 3182 // destination register in case we store into it (the write barrier | 3182 // destination register in case we store into it (the write barrier |
| 3183 // cannot be allowed to destroy the context in cp). | 3183 // cannot be allowed to destroy the context in cp). |
| 3184 Mov(dst, cp); | 3184 Mov(dst, cp); |
| 3185 } | 3185 } |
| 3186 } | 3186 } |
| 3187 | 3187 |
| 3188 | 3188 |
| 3189 #ifdef ENABLE_DEBUGGER_SUPPORT | |
| 3190 void MacroAssembler::DebugBreak() { | 3189 void MacroAssembler::DebugBreak() { |
| 3191 Mov(x0, 0); | 3190 Mov(x0, 0); |
| 3192 Mov(x1, ExternalReference(Runtime::kDebugBreak, isolate())); | 3191 Mov(x1, ExternalReference(Runtime::kDebugBreak, isolate())); |
| 3193 CEntryStub ces(isolate(), 1); | 3192 CEntryStub ces(isolate(), 1); |
| 3194 ASSERT(AllowThisStubCall(&ces)); | 3193 ASSERT(AllowThisStubCall(&ces)); |
| 3195 Call(ces.GetCode(), RelocInfo::DEBUG_BREAK); | 3194 Call(ces.GetCode(), RelocInfo::DEBUG_BREAK); |
| 3196 } | 3195 } |
| 3197 #endif | |
| 3198 | 3196 |
| 3199 | 3197 |
| 3200 void MacroAssembler::PushTryHandler(StackHandler::Kind kind, | 3198 void MacroAssembler::PushTryHandler(StackHandler::Kind kind, |
| 3201 int handler_index) { | 3199 int handler_index) { |
| 3202 ASSERT(jssp.Is(StackPointer())); | 3200 ASSERT(jssp.Is(StackPointer())); |
| 3203 // Adjust this code if the asserts don't hold. | 3201 // Adjust this code if the asserts don't hold. |
| 3204 STATIC_ASSERT(StackHandlerConstants::kSize == 5 * kPointerSize); | 3202 STATIC_ASSERT(StackHandlerConstants::kSize == 5 * kPointerSize); |
| 3205 STATIC_ASSERT(StackHandlerConstants::kNextOffset == 0 * kPointerSize); | 3203 STATIC_ASSERT(StackHandlerConstants::kNextOffset == 0 * kPointerSize); |
| 3206 STATIC_ASSERT(StackHandlerConstants::kCodeOffset == 1 * kPointerSize); | 3204 STATIC_ASSERT(StackHandlerConstants::kCodeOffset == 1 * kPointerSize); |
| 3207 STATIC_ASSERT(StackHandlerConstants::kStateOffset == 2 * kPointerSize); | 3205 STATIC_ASSERT(StackHandlerConstants::kStateOffset == 2 * kPointerSize); |
| (...skipping 2034 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5242 } | 5240 } |
| 5243 } | 5241 } |
| 5244 | 5242 |
| 5245 | 5243 |
| 5246 #undef __ | 5244 #undef __ |
| 5247 | 5245 |
| 5248 | 5246 |
| 5249 } } // namespace v8::internal | 5247 } } // namespace v8::internal |
| 5250 | 5248 |
| 5251 #endif // V8_TARGET_ARCH_ARM64 | 5249 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |