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 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 | 321 |
322 | 322 |
323 void FullCodeGenerator::EmitProfilingCounterReset() { | 323 void FullCodeGenerator::EmitProfilingCounterReset() { |
324 int reset_value = FLAG_interrupt_budget; | 324 int reset_value = FLAG_interrupt_budget; |
325 if (info_->ShouldSelfOptimize() && !FLAG_retry_self_opt) { | 325 if (info_->ShouldSelfOptimize() && !FLAG_retry_self_opt) { |
326 // Self-optimization is a one-off thing: if it fails, don't try again. | 326 // Self-optimization is a one-off thing: if it fails, don't try again. |
327 reset_value = Smi::kMaxValue; | 327 reset_value = Smi::kMaxValue; |
328 } | 328 } |
329 if (isolate()->IsDebuggerActive()) { | 329 if (isolate()->IsDebuggerActive()) { |
330 // Detect debug break requests as soon as possible. | 330 // Detect debug break requests as soon as possible. |
331 reset_value = 10; | 331 reset_value = FLAG_interrupt_budget >> 4; |
332 } | 332 } |
333 __ mov(r2, Operand(profiling_counter_)); | 333 __ mov(r2, Operand(profiling_counter_)); |
334 __ mov(r3, Operand(Smi::FromInt(reset_value))); | 334 __ mov(r3, Operand(Smi::FromInt(reset_value))); |
335 __ str(r3, FieldMemOperand(r2, JSGlobalPropertyCell::kValueOffset)); | 335 __ str(r3, FieldMemOperand(r2, JSGlobalPropertyCell::kValueOffset)); |
336 } | 336 } |
337 | 337 |
338 | 338 |
339 static const int kMaxBackEdgeWeight = 127; | 339 static const int kMaxBackEdgeWeight = 127; |
340 static const int kBackEdgeDistanceDivisor = 142; | 340 static const int kBackEdgeDistanceDivisor = 142; |
341 | 341 |
(...skipping 4235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4577 *context_length = 0; | 4577 *context_length = 0; |
4578 return previous_; | 4578 return previous_; |
4579 } | 4579 } |
4580 | 4580 |
4581 | 4581 |
4582 #undef __ | 4582 #undef __ |
4583 | 4583 |
4584 } } // namespace v8::internal | 4584 } } // namespace v8::internal |
4585 | 4585 |
4586 #endif // V8_TARGET_ARCH_ARM | 4586 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |