OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_X64 | 7 #if V8_TARGET_ARCH_X64 |
8 | 8 |
9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
10 #include "src/deoptimizer.h" | 10 #include "src/deoptimizer.h" |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 // and overwrite this afterwards. | 300 // and overwrite this afterwards. |
301 if (r.is(rsp)) { | 301 if (r.is(rsp)) { |
302 DCHECK(i > 0); | 302 DCHECK(i > 0); |
303 r = Register::from_code(i - 1); | 303 r = Register::from_code(i - 1); |
304 } | 304 } |
305 __ popq(r); | 305 __ popq(r); |
306 } | 306 } |
307 | 307 |
308 // Set up the roots register. | 308 // Set up the roots register. |
309 __ InitializeRootRegister(); | 309 __ InitializeRootRegister(); |
310 __ InitializeSmiConstantRegister(); | |
311 | 310 |
312 // Return to the continuation point. | 311 // Return to the continuation point. |
313 __ ret(0); | 312 __ ret(0); |
314 } | 313 } |
315 | 314 |
316 | 315 |
317 void Deoptimizer::TableEntryGenerator::GeneratePrologue() { | 316 void Deoptimizer::TableEntryGenerator::GeneratePrologue() { |
318 // Create a sequence of deoptimization entries. | 317 // Create a sequence of deoptimization entries. |
319 Label done; | 318 Label done; |
320 for (int i = 0; i < count(); i++) { | 319 for (int i = 0; i < count(); i++) { |
(...skipping 30 matching lines...) Expand all Loading... |
351 UNREACHABLE(); | 350 UNREACHABLE(); |
352 } | 351 } |
353 | 352 |
354 | 353 |
355 #undef __ | 354 #undef __ |
356 | 355 |
357 | 356 |
358 } } // namespace v8::internal | 357 } } // namespace v8::internal |
359 | 358 |
360 #endif // V8_TARGET_ARCH_X64 | 359 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |