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 |
11 // with the distribution. | 11 // with the distribution. |
12 // * Neither the name of Google Inc. nor the names of its | 12 // * Neither the name of Google Inc. nor the names of its |
13 // contributors may be used to endorse or promote products derived | 13 // contributors may be used to endorse or promote products derived |
14 // from this software without specific prior written permission. | 14 // from this software without specific prior written permission. |
15 // | 15 // |
16 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | 16 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
17 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | 17 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
18 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | 18 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
19 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | 19 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
20 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | 20 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
21 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 21 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | 27 |
28 #include "v8.h" | |
29 | |
30 #include "api.h" | 28 #include "api.h" |
31 | 29 |
32 #include "arguments.h" | 30 #include <math.h> // For isnan. |
| 31 #include <string.h> // For memcpy, strlen. |
| 32 #include "../include/v8-debug.h" |
| 33 #include "../include/v8-profiler.h" |
| 34 #include "../include/v8-testing.h" |
33 #include "bootstrapper.h" | 35 #include "bootstrapper.h" |
34 #include "compiler.h" | 36 #include "compiler.h" |
| 37 #include "conversions-inl.h" |
| 38 #include "counters.h" |
35 #include "debug.h" | 39 #include "debug.h" |
36 #include "deoptimizer.h" | 40 #include "deoptimizer.h" |
37 #include "execution.h" | 41 #include "execution.h" |
38 #include "flags.h" | |
39 #include "global-handles.h" | 42 #include "global-handles.h" |
40 #include "heap-profiler.h" | 43 #include "heap-profiler.h" |
41 #include "messages.h" | 44 #include "messages.h" |
42 #include "natives.h" | |
43 #include "parser.h" | 45 #include "parser.h" |
44 #include "platform.h" | 46 #include "platform.h" |
45 #include "profile-generator-inl.h" | 47 #include "profile-generator-inl.h" |
| 48 #include "property-details.h" |
| 49 #include "property.h" |
46 #include "runtime-profiler.h" | 50 #include "runtime-profiler.h" |
47 #include "scanner-character-streams.h" | 51 #include "scanner-character-streams.h" |
48 #include "serialize.h" | |
49 #include "snapshot.h" | 52 #include "snapshot.h" |
| 53 #include "unicode-inl.h" |
50 #include "v8threads.h" | 54 #include "v8threads.h" |
51 #include "version.h" | 55 #include "version.h" |
52 #include "vm-state-inl.h" | 56 #include "vm-state-inl.h" |
53 | 57 |
54 #include "../include/v8-profiler.h" | |
55 #include "../include/v8-testing.h" | |
56 | 58 |
57 #define LOG_API(isolate, expr) LOG(isolate, ApiEntryCall(expr)) | 59 #define LOG_API(isolate, expr) LOG(isolate, ApiEntryCall(expr)) |
58 | 60 |
59 #define ENTER_V8(isolate) \ | 61 #define ENTER_V8(isolate) \ |
60 ASSERT((isolate)->IsInitialized()); \ | 62 ASSERT((isolate)->IsInitialized()); \ |
61 i::VMState __state__((isolate), i::OTHER) | 63 i::VMState __state__((isolate), i::OTHER) |
62 #define LEAVE_V8(isolate) \ | 64 #define LEAVE_V8(isolate) \ |
63 i::VMState __state__((isolate), i::EXTERNAL) | 65 i::VMState __state__((isolate), i::EXTERNAL) |
64 | 66 |
65 namespace v8 { | 67 namespace v8 { |
(...skipping 6100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6166 | 6168 |
6167 | 6169 |
6168 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { | 6170 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { |
6169 HandleScopeImplementer* scope_implementer = | 6171 HandleScopeImplementer* scope_implementer = |
6170 reinterpret_cast<HandleScopeImplementer*>(storage); | 6172 reinterpret_cast<HandleScopeImplementer*>(storage); |
6171 scope_implementer->IterateThis(v); | 6173 scope_implementer->IterateThis(v); |
6172 return storage + ArchiveSpacePerThread(); | 6174 return storage + ArchiveSpacePerThread(); |
6173 } | 6175 } |
6174 | 6176 |
6175 } } // namespace v8::internal | 6177 } } // namespace v8::internal |
OLD | NEW |