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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 Builtins::c_##name, \ | 185 Builtins::c_##name, \ |
186 "Builtins::" #name }, | 186 "Builtins::" #name }, |
187 | 187 |
188 BUILTIN_LIST_C(DEF_ENTRY_C) | 188 BUILTIN_LIST_C(DEF_ENTRY_C) |
189 #undef DEF_ENTRY_C | 189 #undef DEF_ENTRY_C |
190 | 190 |
191 #define DEF_ENTRY_C(name, ignored) \ | 191 #define DEF_ENTRY_C(name, ignored) \ |
192 { BUILTIN, \ | 192 { BUILTIN, \ |
193 Builtins::name, \ | 193 Builtins::name, \ |
194 "Builtins::" #name }, | 194 "Builtins::" #name }, |
195 #define DEF_ENTRY_A(name, kind, state) DEF_ENTRY_C(name, ignored) | 195 #define DEF_ENTRY_A(name, kind, state, extra) DEF_ENTRY_C(name, ignored) |
196 | 196 |
197 BUILTIN_LIST_C(DEF_ENTRY_C) | 197 BUILTIN_LIST_C(DEF_ENTRY_C) |
198 BUILTIN_LIST_A(DEF_ENTRY_A) | 198 BUILTIN_LIST_A(DEF_ENTRY_A) |
199 BUILTIN_LIST_DEBUG_A(DEF_ENTRY_A) | 199 BUILTIN_LIST_DEBUG_A(DEF_ENTRY_A) |
200 #undef DEF_ENTRY_C | 200 #undef DEF_ENTRY_C |
201 #undef DEF_ENTRY_A | 201 #undef DEF_ENTRY_A |
202 | 202 |
203 // Runtime functions | 203 // Runtime functions |
204 #define RUNTIME_ENTRY(name, nargs, ressize) \ | 204 #define RUNTIME_ENTRY(name, nargs, ressize) \ |
205 { RUNTIME_FUNCTION, \ | 205 { RUNTIME_FUNCTION, \ |
(...skipping 1320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1526 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize); | 1526 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize); |
1527 } | 1527 } |
1528 } | 1528 } |
1529 int allocation_address = fullness_[space]; | 1529 int allocation_address = fullness_[space]; |
1530 fullness_[space] = allocation_address + size; | 1530 fullness_[space] = allocation_address + size; |
1531 return allocation_address; | 1531 return allocation_address; |
1532 } | 1532 } |
1533 | 1533 |
1534 | 1534 |
1535 } } // namespace v8::internal | 1535 } } // namespace v8::internal |
OLD | NEW |