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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 kSavedRegistersAreaSize + (1 * kPointerSize)); | 178 kSavedRegistersAreaSize + (1 * kPointerSize)); |
179 __ Sub(fp_to_sp, fp, fp_to_sp); | 179 __ Sub(fp_to_sp, fp, fp_to_sp); |
180 | 180 |
181 // Allocate a new deoptimizer object. | 181 // Allocate a new deoptimizer object. |
182 __ Ldr(x0, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); | 182 __ Ldr(x0, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |
183 __ Mov(x1, type()); | 183 __ Mov(x1, type()); |
184 // Following arguments are already loaded: | 184 // Following arguments are already loaded: |
185 // - x2: bailout id | 185 // - x2: bailout id |
186 // - x3: code object address | 186 // - x3: code object address |
187 // - x4: fp-to-sp delta | 187 // - x4: fp-to-sp delta |
188 __ Mov(x5, Operand(ExternalReference::isolate_address(isolate()))); | 188 __ Mov(x5, ExternalReference::isolate_address(isolate())); |
189 | 189 |
190 { | 190 { |
191 // Call Deoptimizer::New(). | 191 // Call Deoptimizer::New(). |
192 AllowExternalCallThatCantCauseGC scope(masm()); | 192 AllowExternalCallThatCantCauseGC scope(masm()); |
193 __ CallCFunction(ExternalReference::new_deoptimizer_function(isolate()), 6); | 193 __ CallCFunction(ExternalReference::new_deoptimizer_function(isolate()), 6); |
194 } | 194 } |
195 | 195 |
196 // Preserve "deoptimizer" object in register x0. | 196 // Preserve "deoptimizer" object in register x0. |
197 Register deoptimizer = x0; | 197 Register deoptimizer = x0; |
198 | 198 |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 | 379 |
380 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) { | 380 void FrameDescription::SetCallerConstantPool(unsigned offset, intptr_t value) { |
381 // No out-of-line constant pool support. | 381 // No out-of-line constant pool support. |
382 UNREACHABLE(); | 382 UNREACHABLE(); |
383 } | 383 } |
384 | 384 |
385 | 385 |
386 #undef __ | 386 #undef __ |
387 | 387 |
388 } } // namespace v8::internal | 388 } } // namespace v8::internal |
OLD | NEW |