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 int reset_value = FLAG_interrupt_budget; | 308 int reset_value = FLAG_interrupt_budget; |
309 if (info_->ShouldSelfOptimize() && !FLAG_retry_self_opt) { | 309 if (info_->ShouldSelfOptimize() && !FLAG_retry_self_opt) { |
310 // Self-optimization is a one-off thing; if it fails, don't try again. | 310 // Self-optimization is a one-off thing; if it fails, don't try again. |
311 reset_value = Smi::kMaxValue; | 311 reset_value = Smi::kMaxValue; |
312 } | 312 } |
313 if (isolate()->IsDebuggerActive()) { | 313 if (isolate()->IsDebuggerActive()) { |
314 // Detect debug break requests as soon as possible. | 314 // Detect debug break requests as soon as possible. |
315 reset_value = 10; | 315 reset_value = 10; |
316 } | 316 } |
317 __ movq(rbx, profiling_counter_, RelocInfo::EMBEDDED_OBJECT); | 317 __ movq(rbx, profiling_counter_, RelocInfo::EMBEDDED_OBJECT); |
318 __ Move(FieldOperand(rbx, JSGlobalPropertyCell::kValueOffset), | 318 __ movq(kScratchRegister, |
319 Smi::FromInt(reset_value)); | 319 reinterpret_cast<uint64_t>(Smi::FromInt(reset_value)), |
| 320 RelocInfo::NONE); |
| 321 __ movq(FieldOperand(rbx, JSGlobalPropertyCell::kValueOffset), |
| 322 kScratchRegister); |
320 } | 323 } |
321 | 324 |
322 | 325 |
323 static const int kMaxBackEdgeWeight = 127; | 326 static const int kMaxBackEdgeWeight = 127; |
324 static const int kBackEdgeDistanceDivisor = 162; | 327 static const int kBackEdgeDistanceDivisor = 162; |
325 | 328 |
326 | 329 |
327 void FullCodeGenerator::EmitStackCheck(IterationStatement* stmt, | 330 void FullCodeGenerator::EmitStackCheck(IterationStatement* stmt, |
328 Label* back_edge_target) { | 331 Label* back_edge_target) { |
329 Comment cmnt(masm_, "[ Stack check"); | 332 Comment cmnt(masm_, "[ Stack check"); |
(...skipping 4154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4484 *context_length = 0; | 4487 *context_length = 0; |
4485 return previous_; | 4488 return previous_; |
4486 } | 4489 } |
4487 | 4490 |
4488 | 4491 |
4489 #undef __ | 4492 #undef __ |
4490 | 4493 |
4491 } } // namespace v8::internal | 4494 } } // namespace v8::internal |
4492 | 4495 |
4493 #endif // V8_TARGET_ARCH_X64 | 4496 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |