| 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 17 matching lines...) Expand all Loading... |
| 28 #include <signal.h> | 28 #include <signal.h> |
| 29 | 29 |
| 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" | |
| 39 #include "src/objects.h" | 38 #include "src/objects.h" |
| 40 #include "src/parser.h" | 39 #include "src/parser.h" |
| 41 #include "src/runtime/runtime.h" | 40 #include "src/runtime/runtime.h" |
| 42 #include "src/scopeinfo.h" | 41 #include "src/scopeinfo.h" |
| 43 #include "src/serialize.h" | 42 #include "src/snapshot/natives.h" |
| 44 #include "src/snapshot.h" | 43 #include "src/snapshot/serialize.h" |
| 44 #include "src/snapshot/snapshot.h" |
| 45 #include "test/cctest/cctest.h" | 45 #include "test/cctest/cctest.h" |
| 46 | 46 |
| 47 using namespace v8::internal; | 47 using namespace v8::internal; |
| 48 | 48 |
| 49 | 49 |
| 50 bool DefaultSnapshotAvailable() { | 50 bool DefaultSnapshotAvailable() { |
| 51 return i::Snapshot::DefaultSnapshotBlob() != NULL; | 51 return i::Snapshot::DefaultSnapshotBlob() != NULL; |
| 52 } | 52 } |
| 53 | 53 |
| 54 | 54 |
| (...skipping 1487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1542 CHECK_EQ(11, CompileRun("foo(0)")->ToInt32(isolate)->Int32Value()); | 1542 CHECK_EQ(11, CompileRun("foo(0)")->ToInt32(isolate)->Int32Value()); |
| 1543 CHECK_EQ(11, CompileRun("foo(1)")->ToInt32(isolate)->Int32Value()); | 1543 CHECK_EQ(11, CompileRun("foo(1)")->ToInt32(isolate)->Int32Value()); |
| 1544 CHECK_EQ(12, CompileRun("foo(2)")->ToInt32(isolate)->Int32Value()); | 1544 CHECK_EQ(12, CompileRun("foo(2)")->ToInt32(isolate)->Int32Value()); |
| 1545 CHECK_EQ(12, CompileRun("foo(3)")->ToInt32(isolate)->Int32Value()); | 1545 CHECK_EQ(12, CompileRun("foo(3)")->ToInt32(isolate)->Int32Value()); |
| 1546 CHECK_EQ(23, CompileRun("foo(4)")->ToInt32(isolate)->Int32Value()); | 1546 CHECK_EQ(23, CompileRun("foo(4)")->ToInt32(isolate)->Int32Value()); |
| 1547 CHECK_EQ(23, CompileRun("foo(5)")->ToInt32(isolate)->Int32Value()); | 1547 CHECK_EQ(23, CompileRun("foo(5)")->ToInt32(isolate)->Int32Value()); |
| 1548 CHECK_EQ(10, CompileRun("foo(6)")->ToInt32(isolate)->Int32Value()); | 1548 CHECK_EQ(10, CompileRun("foo(6)")->ToInt32(isolate)->Int32Value()); |
| 1549 } | 1549 } |
| 1550 isolate->Dispose(); | 1550 isolate->Dispose(); |
| 1551 } | 1551 } |
| OLD | NEW |