OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 "accessors.h" | 30 #include "accessors.h" |
31 #include "api.h" | 31 #include "api.h" |
32 #include "bootstrapper.h" | 32 #include "bootstrapper.h" |
33 #include "compiler.h" | 33 #include "compiler.h" |
34 #include "debug.h" | 34 #include "debug.h" |
35 #include "execution.h" | 35 #include "execution.h" |
36 #include "global-handles.h" | 36 #include "global-handles.h" |
37 #include "macro-assembler.h" | 37 #include "macro-assembler.h" |
38 #include "natives.h" | 38 #include "natives.h" |
39 | 39 |
40 namespace v8 { namespace internal { | 40 namespace v8 { |
| 41 namespace internal { |
41 | 42 |
42 // A SourceCodeCache uses a FixedArray to store pairs of | 43 // A SourceCodeCache uses a FixedArray to store pairs of |
43 // (AsciiString*, JSFunction*), mapping names of native code files | 44 // (AsciiString*, JSFunction*), mapping names of native code files |
44 // (runtime.js, etc.) to precompiled functions. Instead of mapping | 45 // (runtime.js, etc.) to precompiled functions. Instead of mapping |
45 // names to functions it might make sense to let the JS2C tool | 46 // names to functions it might make sense to let the JS2C tool |
46 // generate an index for each native JS file. | 47 // generate an index for each native JS file. |
47 class SourceCodeCache BASE_EMBEDDED { | 48 class SourceCodeCache BASE_EMBEDDED { |
48 public: | 49 public: |
49 explicit SourceCodeCache(ScriptType type): type_(type) { } | 50 explicit SourceCodeCache(ScriptType type): type_(type) { } |
50 | 51 |
(...skipping 1537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1588 } | 1589 } |
1589 | 1590 |
1590 | 1591 |
1591 // Restore statics that are thread local. | 1592 // Restore statics that are thread local. |
1592 char* Genesis::RestoreState(char* from) { | 1593 char* Genesis::RestoreState(char* from) { |
1593 current_ = *reinterpret_cast<Genesis**>(from); | 1594 current_ = *reinterpret_cast<Genesis**>(from); |
1594 return from + sizeof(current_); | 1595 return from + sizeof(current_); |
1595 } | 1596 } |
1596 | 1597 |
1597 } } // namespace v8::internal | 1598 } } // namespace v8::internal |
OLD | NEW |