| OLD | NEW |
| 1 // Copyright 2007-2010 the V8 project authors. All rights reserved. | 1 // Copyright 2007-2010 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 19 matching lines...) Expand all Loading... |
| 30 #include <sys/stat.h> | 30 #include <sys/stat.h> |
| 31 | 31 |
| 32 #include "src/v8.h" | 32 #include "src/v8.h" |
| 33 | 33 |
| 34 #include "src/bootstrapper.h" | 34 #include "src/bootstrapper.h" |
| 35 #include "src/compilation-cache.h" | 35 #include "src/compilation-cache.h" |
| 36 #include "src/debug.h" | 36 #include "src/debug.h" |
| 37 #include "src/heap/spaces.h" | 37 #include "src/heap/spaces.h" |
| 38 #include "src/natives.h" | 38 #include "src/natives.h" |
| 39 #include "src/objects.h" | 39 #include "src/objects.h" |
| 40 #include "src/parser.h" |
| 40 #include "src/runtime/runtime.h" | 41 #include "src/runtime/runtime.h" |
| 41 #include "src/scopeinfo.h" | 42 #include "src/scopeinfo.h" |
| 42 #include "src/serialize.h" | 43 #include "src/serialize.h" |
| 43 #include "src/snapshot.h" | 44 #include "src/snapshot.h" |
| 44 #include "test/cctest/cctest.h" | 45 #include "test/cctest/cctest.h" |
| 45 | 46 |
| 46 using namespace v8::internal; | 47 using namespace v8::internal; |
| 47 | 48 |
| 48 | 49 |
| 49 bool DefaultSnapshotAvailable() { | 50 bool DefaultSnapshotAvailable() { |
| (...skipping 1440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1490 v8::Local<v8::Context> context = v8::Context::New(isolate); | 1491 v8::Local<v8::Context> context = v8::Context::New(isolate); |
| 1491 delete[] data.data; // We can dispose of the snapshot blob now. | 1492 delete[] data.data; // We can dispose of the snapshot blob now. |
| 1492 v8::Context::Scope c_scope(context); | 1493 v8::Context::Scope c_scope(context); |
| 1493 v8::Handle<v8::Function> foo = | 1494 v8::Handle<v8::Function> foo = |
| 1494 v8::Handle<v8::Function>::Cast(CompileRun("foo")); | 1495 v8::Handle<v8::Function>::Cast(CompileRun("foo")); |
| 1495 CHECK(v8::Utils::OpenHandle(*foo)->code()->is_turbofanned()); | 1496 CHECK(v8::Utils::OpenHandle(*foo)->code()->is_turbofanned()); |
| 1496 CHECK_EQ(3, CompileRun("foo(4)")->ToInt32(isolate)->Int32Value()); | 1497 CHECK_EQ(3, CompileRun("foo(4)")->ToInt32(isolate)->Int32Value()); |
| 1497 } | 1498 } |
| 1498 isolate->Dispose(); | 1499 isolate->Dispose(); |
| 1499 } | 1500 } |
| OLD | NEW |