Index: test/cctest/test-macro-assembler-mips.cc |
diff --git a/test/cctest/test-macro-assembler-mips.cc b/test/cctest/test-macro-assembler-mips.cc |
index 3cb7dcdd32454751a23f069a502aa6d47adb4a06..e65f58ce01629824625dd7c3a4ba2815c8e1e519 100644 |
--- a/test/cctest/test-macro-assembler-mips.cc |
+++ b/test/cctest/test-macro-assembler-mips.cc |
@@ -25,6 +25,9 @@ |
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
+// TODO(jochen): Remove this after the setting is turned on globally. |
+#define V8_IMMINENT_DEPRECATION_WARNINGS |
+ |
#include <stdlib.h> |
#include <iostream> // NOLINT(readability/streams) |
@@ -142,8 +145,10 @@ static void TestNaN(const char *code) { |
v8::Local<v8::Context> context = CcTest::NewContext(PRINT_EXTENSION); |
v8::Context::Scope context_scope(context); |
- v8::Local<v8::Script> script = v8::Script::Compile(v8_str(code)); |
- v8::Local<v8::Object> result = v8::Local<v8::Object>::Cast(script->Run()); |
+ v8::Local<v8::Script> script = |
+ v8::Script::Compile(context, v8_str(code)).ToLocalChecked(); |
+ v8::Local<v8::Object> result = |
+ v8::Local<v8::Object>::Cast(script->Run(context).ToLocalChecked()); |
i::Handle<i::JSReceiver> o = v8::Utils::OpenHandle(*result); |
i::Handle<i::JSArray> array1(reinterpret_cast<i::JSArray*>(*o)); |
i::FixedDoubleArray* a = i::FixedDoubleArray::cast(array1->elements()); |