| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 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" | 28 #include "v8.h" |
| 29 | 29 |
| 30 #include "accessors.h" | 30 #include "accessors.h" |
| 31 #include "api.h" | 31 #include "api.h" |
| 32 #include "bootstrapper.h" |
| 32 #include "execution.h" | 33 #include "execution.h" |
| 33 #include "global-handles.h" | 34 #include "global-handles.h" |
| 34 #include "ic-inl.h" | 35 #include "ic-inl.h" |
| 35 #include "natives.h" | 36 #include "natives.h" |
| 36 #include "platform.h" | 37 #include "platform.h" |
| 37 #include "runtime.h" | 38 #include "runtime.h" |
| 38 #include "serialize.h" | 39 #include "serialize.h" |
| 39 #include "stub-cache.h" | 40 #include "stub-cache.h" |
| 40 #include "v8threads.h" | 41 #include "v8threads.h" |
| 41 #include "bootstrapper.h" | |
| 42 | 42 |
| 43 namespace v8 { | 43 namespace v8 { |
| 44 namespace internal { | 44 namespace internal { |
| 45 | 45 |
| 46 | 46 |
| 47 // ----------------------------------------------------------------------------- | 47 // ----------------------------------------------------------------------------- |
| 48 // Coding of external references. | 48 // Coding of external references. |
| 49 | 49 |
| 50 // The encoding of an external reference. The type is in the high word. | 50 // The encoding of an external reference. The type is in the high word. |
| 51 // The id is in the low word. | 51 // The id is in the low word. |
| (...skipping 1513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1565 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize); | 1565 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize); |
| 1566 } | 1566 } |
| 1567 } | 1567 } |
| 1568 int allocation_address = fullness_[space]; | 1568 int allocation_address = fullness_[space]; |
| 1569 fullness_[space] = allocation_address + size; | 1569 fullness_[space] = allocation_address + size; |
| 1570 return allocation_address; | 1570 return allocation_address; |
| 1571 } | 1571 } |
| 1572 | 1572 |
| 1573 | 1573 |
| 1574 } } // namespace v8::internal | 1574 } } // namespace v8::internal |
| OLD | NEW |