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 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 if (isolate()->IsDebuggerActive()) { | 333 if (isolate()->IsDebuggerActive()) { |
334 // Detect debug break requests as soon as possible. | 334 // Detect debug break requests as soon as possible. |
335 reset_value = FLAG_interrupt_budget >> 4; | 335 reset_value = FLAG_interrupt_budget >> 4; |
336 } | 336 } |
337 __ li(a2, Operand(profiling_counter_)); | 337 __ li(a2, Operand(profiling_counter_)); |
338 __ li(a3, Operand(Smi::FromInt(reset_value))); | 338 __ li(a3, Operand(Smi::FromInt(reset_value))); |
339 __ sw(a3, FieldMemOperand(a2, JSGlobalPropertyCell::kValueOffset)); | 339 __ sw(a3, FieldMemOperand(a2, JSGlobalPropertyCell::kValueOffset)); |
340 } | 340 } |
341 | 341 |
342 | 342 |
343 const int FullCodeGenerator::kMaxBackEdgeWeight = 127; | |
344 const int FullCodeGenerator::kBackEdgeDistanceUnit = 142; | |
345 | |
346 | |
347 void FullCodeGenerator::EmitStackCheck(IterationStatement* stmt, | 343 void FullCodeGenerator::EmitStackCheck(IterationStatement* stmt, |
348 Label* back_edge_target) { | 344 Label* back_edge_target) { |
349 // The generated code is used in Deoptimizer::PatchStackCheckCodeAt so we need | 345 // The generated code is used in Deoptimizer::PatchStackCheckCodeAt so we need |
350 // to make sure it is constant. Branch may emit a skip-or-jump sequence | 346 // to make sure it is constant. Branch may emit a skip-or-jump sequence |
351 // instead of the normal Branch. It seems that the "skip" part of that | 347 // instead of the normal Branch. It seems that the "skip" part of that |
352 // sequence is about as long as this Branch would be so it is safe to ignore | 348 // sequence is about as long as this Branch would be so it is safe to ignore |
353 // that. | 349 // that. |
354 Assembler::BlockTrampolinePoolScope block_trampoline_pool(masm_); | 350 Assembler::BlockTrampolinePoolScope block_trampoline_pool(masm_); |
355 Comment cmnt(masm_, "[ Stack check"); | 351 Comment cmnt(masm_, "[ Stack check"); |
356 Label ok; | 352 Label ok; |
(...skipping 4259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4616 *context_length = 0; | 4612 *context_length = 0; |
4617 return previous_; | 4613 return previous_; |
4618 } | 4614 } |
4619 | 4615 |
4620 | 4616 |
4621 #undef __ | 4617 #undef __ |
4622 | 4618 |
4623 } } // namespace v8::internal | 4619 } } // namespace v8::internal |
4624 | 4620 |
4625 #endif // V8_TARGET_ARCH_MIPS | 4621 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |