| 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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 // and overwrite this afterwards. | 292 // and overwrite this afterwards. |
| 293 if (r.is(rsp)) { | 293 if (r.is(rsp)) { |
| 294 ASSERT(i > 0); | 294 ASSERT(i > 0); |
| 295 r = Register::from_code(i - 1); | 295 r = Register::from_code(i - 1); |
| 296 } | 296 } |
| 297 __ popq(r); | 297 __ popq(r); |
| 298 } | 298 } |
| 299 | 299 |
| 300 // Set up the roots register. | 300 // Set up the roots register. |
| 301 __ InitializeRootRegister(); | 301 __ InitializeRootRegister(); |
| 302 __ InitializeSmiConstantRegister(); | |
| 303 | 302 |
| 304 // Return to the continuation point. | 303 // Return to the continuation point. |
| 305 __ ret(0); | 304 __ ret(0); |
| 306 } | 305 } |
| 307 | 306 |
| 308 | 307 |
| 309 void Deoptimizer::TableEntryGenerator::GeneratePrologue() { | 308 void Deoptimizer::TableEntryGenerator::GeneratePrologue() { |
| 310 // Create a sequence of deoptimization entries. | 309 // Create a sequence of deoptimization entries. |
| 311 Label done; | 310 Label done; |
| 312 for (int i = 0; i < count(); i++) { | 311 for (int i = 0; i < count(); i++) { |
| (...skipping 30 matching lines...) Expand all Loading... |
| 343 UNREACHABLE(); | 342 UNREACHABLE(); |
| 344 } | 343 } |
| 345 | 344 |
| 346 | 345 |
| 347 #undef __ | 346 #undef __ |
| 348 | 347 |
| 349 | 348 |
| 350 } } // namespace v8::internal | 349 } } // namespace v8::internal |
| 351 | 350 |
| 352 #endif // V8_TARGET_ARCH_X64 | 351 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |