| 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 2, | 328 2, |
| 329 "V8::FillHeapNumberWithRandom"); | 329 "V8::FillHeapNumberWithRandom"); |
| 330 | 330 |
| 331 Add(ExternalReference::random_uint32_function().address(), | 331 Add(ExternalReference::random_uint32_function().address(), |
| 332 RUNTIME_ENTRY, | 332 RUNTIME_ENTRY, |
| 333 3, | 333 3, |
| 334 "V8::Random"); | 334 "V8::Random"); |
| 335 | 335 |
| 336 Add(ExternalReference::delete_handle_scope_extensions().address(), | 336 Add(ExternalReference::delete_handle_scope_extensions().address(), |
| 337 RUNTIME_ENTRY, | 337 RUNTIME_ENTRY, |
| 338 3, | 338 4, |
| 339 "HandleScope::DeleteExtensions"); | 339 "HandleScope::DeleteExtensions"); |
| 340 | 340 |
| 341 // Miscellaneous | 341 // Miscellaneous |
| 342 Add(ExternalReference::the_hole_value_location().address(), | 342 Add(ExternalReference::the_hole_value_location().address(), |
| 343 UNCLASSIFIED, | 343 UNCLASSIFIED, |
| 344 2, | 344 2, |
| 345 "Factory::the_hole_value().location()"); | 345 "Factory::the_hole_value().location()"); |
| 346 Add(ExternalReference::roots_address().address(), | 346 Add(ExternalReference::roots_address().address(), |
| 347 UNCLASSIFIED, | 347 UNCLASSIFIED, |
| 348 3, | 348 3, |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 479 34, | 479 34, |
| 480 "Deoptimizer::ComputeOutputFrames()"); | 480 "Deoptimizer::ComputeOutputFrames()"); |
| 481 Add(ExternalReference::address_of_min_int().address(), | 481 Add(ExternalReference::address_of_min_int().address(), |
| 482 UNCLASSIFIED, | 482 UNCLASSIFIED, |
| 483 35, | 483 35, |
| 484 "LDoubleConstant::min_int"); | 484 "LDoubleConstant::min_int"); |
| 485 Add(ExternalReference::address_of_one_half().address(), | 485 Add(ExternalReference::address_of_one_half().address(), |
| 486 UNCLASSIFIED, | 486 UNCLASSIFIED, |
| 487 36, | 487 36, |
| 488 "LDoubleConstant::one_half"); | 488 "LDoubleConstant::one_half"); |
| 489 Add(ExternalReference::address_of_minus_zero().address(), |
| 490 UNCLASSIFIED, |
| 491 37, |
| 492 "LDoubleConstant::minus_zero"); |
| 489 Add(ExternalReference::address_of_negative_infinity().address(), | 493 Add(ExternalReference::address_of_negative_infinity().address(), |
| 490 UNCLASSIFIED, | 494 UNCLASSIFIED, |
| 491 37, | 495 38, |
| 492 "LDoubleConstant::negative_infinity"); | 496 "LDoubleConstant::negative_infinity"); |
| 493 Add(ExternalReference::power_double_double_function().address(), | 497 Add(ExternalReference::power_double_double_function().address(), |
| 494 UNCLASSIFIED, | 498 UNCLASSIFIED, |
| 495 38, | 499 39, |
| 496 "power_double_double_function"); | 500 "power_double_double_function"); |
| 497 Add(ExternalReference::power_double_int_function().address(), | 501 Add(ExternalReference::power_double_int_function().address(), |
| 498 UNCLASSIFIED, | 502 UNCLASSIFIED, |
| 499 39, | 503 40, |
| 500 "power_double_int_function"); | 504 "power_double_int_function"); |
| 501 Add(ExternalReference::store_buffer_top().address(), | 505 Add(ExternalReference::store_buffer_top().address(), |
| 502 UNCLASSIFIED, | 506 UNCLASSIFIED, |
| 503 40, | 507 41, |
| 504 "store_buffer_top"); | 508 "store_buffer_top"); |
| 509 Add(ExternalReference::arguments_marker_location().address(), |
| 510 UNCLASSIFIED, |
| 511 42, |
| 512 "Factory::arguments_marker().location()"); |
| 505 } | 513 } |
| 506 | 514 |
| 507 | 515 |
| 508 ExternalReferenceEncoder::ExternalReferenceEncoder() | 516 ExternalReferenceEncoder::ExternalReferenceEncoder() |
| 509 : encodings_(Match) { | 517 : encodings_(Match) { |
| 510 ExternalReferenceTable* external_references = | 518 ExternalReferenceTable* external_references = |
| 511 ExternalReferenceTable::instance(); | 519 ExternalReferenceTable::instance(); |
| 512 for (int i = 0; i < external_references->size(); ++i) { | 520 for (int i = 0; i < external_references->size(); ++i) { |
| 513 Put(external_references->address(i), i); | 521 Put(external_references->address(i), i); |
| 514 } | 522 } |
| (...skipping 1017 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1532 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize); | 1540 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize); |
| 1533 } | 1541 } |
| 1534 } | 1542 } |
| 1535 int allocation_address = fullness_[space]; | 1543 int allocation_address = fullness_[space]; |
| 1536 fullness_[space] = allocation_address + size; | 1544 fullness_[space] = allocation_address + size; |
| 1537 return allocation_address; | 1545 return allocation_address; |
| 1538 } | 1546 } |
| 1539 | 1547 |
| 1540 | 1548 |
| 1541 } } // namespace v8::internal | 1549 } } // namespace v8::internal |
| OLD | NEW |