~ubuntu-branches/ubuntu/saucy/libv8/saucy

« back to all changes in this revision

Viewing changes to src/execution.cc

  • Committer: Package Import Robot
  • Author(s): Jérémy Lal
  • Date: 2012-04-07 16:26:13 UTC
  • mfrom: (15.1.27 sid)
  • Revision ID: package-import@ubuntu.com-20120407162613-dqo1m6w9r3fh8tst
Tags: 3.8.9.16-3
* mipsel build fixes :
  + v8_use_mips_abi_hardfloat=false, this lowers EABI requirements.
  + v8_can_use_fpu_instructions=false, detect if FPU is present.
  + set -Wno-unused-but-set-variable only on mipsel.

Show diffs side-by-side

added added

removed removed

Lines of Context:
356
356
 
357
357
void StackGuard::SetStackLimit(uintptr_t limit) {
358
358
  ExecutionAccess access(isolate_);
359
 
  // If the current limits are special (eg due to a pending interrupt) then
 
359
  // If the current limits are special (e.g. due to a pending interrupt) then
360
360
  // leave them alone.
361
361
  uintptr_t jslimit = SimulatorStack::JsLimitFromCLimit(isolate_, limit);
362
362
  if (thread_local_.jslimit_ == thread_local_.real_jslimit_) {
845
845
  // Clear the debug break request flag.
846
846
  isolate->stack_guard()->Continue(DEBUGBREAK);
847
847
 
848
 
  ProcessDebugMesssages(debug_command_only);
 
848
  ProcessDebugMessages(debug_command_only);
849
849
 
850
850
  // Return to continue execution.
851
851
  return isolate->heap()->undefined_value();
852
852
}
853
853
 
854
 
void Execution::ProcessDebugMesssages(bool debug_command_only) {
 
854
void Execution::ProcessDebugMessages(bool debug_command_only) {
855
855
  Isolate* isolate = Isolate::Current();
856
856
  // Clear the debug command request flag.
857
857
  isolate->stack_guard()->Continue(DEBUGCOMMAND);
877
877
  StackGuard* stack_guard = isolate->stack_guard();
878
878
 
879
879
  if (stack_guard->IsGCRequest()) {
880
 
    isolate->heap()->CollectAllGarbage(false);
 
880
    isolate->heap()->CollectAllGarbage(false, "StackGuard GC request");
881
881
    stack_guard->Continue(GC_REQUEST);
882
882
  }
883
883