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

« back to all changes in this revision

Viewing changes to test/cctest/test-compiler.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:
1
 
// Copyright 2011 the V8 project authors. All rights reserved.
 
1
// Copyright 2012 the V8 project authors. All rights reserved.
2
2
// Redistribution and use in source and binary forms, with or without
3
3
// modification, are permitted provided that the following conditions are
4
4
// met:
270
270
  CHECK(!fun.is_null());
271
271
  bool has_pending_exception;
272
272
  Handle<JSObject> global(Isolate::Current()->context()->global());
273
 
  Handle<Object> result(
274
 
      Execution::Call(fun, global, 0, NULL, &has_pending_exception));
 
273
  Execution::Call(fun, global, 0, NULL, &has_pending_exception);
275
274
  CHECK(has_pending_exception);
276
275
  CHECK_EQ(42.0, Isolate::Current()->pending_exception()->
277
276
           ToObjectChecked()->Number());