| 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 24526 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  24537   v8::Local<v8::String> result = v8::String::Concat(str, str); |  24537   v8::Local<v8::String> result = v8::String::Concat(str, str); | 
|  24538   CHECK(result.IsEmpty()); |  24538   CHECK(result.IsEmpty()); | 
|  24539   CHECK(!try_catch.HasCaught()); |  24539   CHECK(!try_catch.HasCaught()); | 
|  24540 } |  24540 } | 
|  24541  |  24541  | 
|  24542  |  24542  | 
|  24543 TEST(TurboAsmDisablesNeuter) { |  24543 TEST(TurboAsmDisablesNeuter) { | 
|  24544   v8::V8::Initialize(); |  24544   v8::V8::Initialize(); | 
|  24545   v8::HandleScope scope(CcTest::isolate()); |  24545   v8::HandleScope scope(CcTest::isolate()); | 
|  24546   LocalContext context; |  24546   LocalContext context; | 
 |  24547 #if V8_TURBOFAN_TARGET | 
|  24547   bool should_be_neuterable = !i::FLAG_turbo_asm; |  24548   bool should_be_neuterable = !i::FLAG_turbo_asm; | 
|  24548  |  24549 #else | 
 |  24550   bool should_be_neuterable = true; | 
 |  24551 #endif | 
|  24549   const char* load = |  24552   const char* load = | 
|  24550       "function Module(stdlib, foreign, heap) {" |  24553       "function Module(stdlib, foreign, heap) {" | 
|  24551       "  'use asm';" |  24554       "  'use asm';" | 
|  24552       "  var MEM32 = new stdlib.Int32Array(heap);" |  24555       "  var MEM32 = new stdlib.Int32Array(heap);" | 
|  24553       "  function load() { return MEM32[0]; }" |  24556       "  function load() { return MEM32[0]; }" | 
|  24554       "  return { load: load };" |  24557       "  return { load: load };" | 
|  24555       "}" |  24558       "}" | 
|  24556       "var buffer = new ArrayBuffer(4);" |  24559       "var buffer = new ArrayBuffer(4);" | 
|  24557       "Module(this, {}, buffer).load();" |  24560       "Module(this, {}, buffer).load();" | 
|  24558       "buffer"; |  24561       "buffer"; | 
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  24620  |  24623  | 
|  24621   v8::Handle<v8::Value> result = CompileRun("%_GetPrototype(object)"); |  24624   v8::Handle<v8::Value> result = CompileRun("%_GetPrototype(object)"); | 
|  24622   CHECK(result->Equals(proto2)); |  24625   CHECK(result->Equals(proto2)); | 
|  24623  |  24626  | 
|  24624   result = CompileRun( |  24627   result = CompileRun( | 
|  24625       "function f() { return %_GetPrototype(object); }" |  24628       "function f() { return %_GetPrototype(object); }" | 
|  24626       "%OptimizeFunctionOnNextCall(f);" |  24629       "%OptimizeFunctionOnNextCall(f);" | 
|  24627       "f()"); |  24630       "f()"); | 
|  24628   CHECK(result->Equals(proto2)); |  24631   CHECK(result->Equals(proto2)); | 
|  24629 } |  24632 } | 
| OLD | NEW |