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 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 } | 308 } |
309 | 309 |
310 | 310 |
311 void FullCodeGenerator::EmitProfilingCounterReset() { | 311 void FullCodeGenerator::EmitProfilingCounterReset() { |
312 int reset_value = FLAG_interrupt_budget; | 312 int reset_value = FLAG_interrupt_budget; |
313 if (info_->ShouldSelfOptimize() && !FLAG_retry_self_opt) { | 313 if (info_->ShouldSelfOptimize() && !FLAG_retry_self_opt) { |
314 // Self-optimization is a one-off thing; if it fails, don't try again. | 314 // Self-optimization is a one-off thing; if it fails, don't try again. |
315 reset_value = Smi::kMaxValue; | 315 reset_value = Smi::kMaxValue; |
316 } | 316 } |
317 __ movq(rbx, profiling_counter_, RelocInfo::EMBEDDED_OBJECT); | 317 __ movq(rbx, profiling_counter_, RelocInfo::EMBEDDED_OBJECT); |
318 __ movq(kScratchRegister, | 318 __ Move(kScratchRegister, Smi::FromInt(reset_value)); |
319 reinterpret_cast<uint64_t>(Smi::FromInt(reset_value)), | |
320 RelocInfo::NONE64); | |
321 __ movq(FieldOperand(rbx, Cell::kValueOffset), kScratchRegister); | 319 __ movq(FieldOperand(rbx, Cell::kValueOffset), kScratchRegister); |
322 } | 320 } |
323 | 321 |
324 | 322 |
325 void FullCodeGenerator::EmitBackEdgeBookkeeping(IterationStatement* stmt, | 323 void FullCodeGenerator::EmitBackEdgeBookkeeping(IterationStatement* stmt, |
326 Label* back_edge_target) { | 324 Label* back_edge_target) { |
327 Comment cmnt(masm_, "[ Back edge bookkeeping"); | 325 Comment cmnt(masm_, "[ Back edge bookkeeping"); |
328 Label ok; | 326 Label ok; |
329 | 327 |
330 int weight = 1; | 328 int weight = 1; |
(...skipping 4613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4944 | 4942 |
4945 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), | 4943 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), |
4946 Assembler::target_address_at(call_target_address)); | 4944 Assembler::target_address_at(call_target_address)); |
4947 return OSR_AFTER_STACK_CHECK; | 4945 return OSR_AFTER_STACK_CHECK; |
4948 } | 4946 } |
4949 | 4947 |
4950 | 4948 |
4951 } } // namespace v8::internal | 4949 } } // namespace v8::internal |
4952 | 4950 |
4953 #endif // V8_TARGET_ARCH_X64 | 4951 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |