| 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 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 445 | 445 |
| 446 | 446 |
| 447 ExternalReferenceTable::ExternalReferenceTable() : refs_(64) { | 447 ExternalReferenceTable::ExternalReferenceTable() : refs_(64) { |
| 448 for (int type_code = 0; type_code < kTypeCodeCount; type_code++) { | 448 for (int type_code = 0; type_code < kTypeCodeCount; type_code++) { |
| 449 max_id_[type_code] = 0; | 449 max_id_[type_code] = 0; |
| 450 } | 450 } |
| 451 | 451 |
| 452 // Define all entries in the table. | 452 // Define all entries in the table. |
| 453 | 453 |
| 454 // Builtins | 454 // Builtins |
| 455 #define DEF_ENTRY_C(name, ignore) \ | 455 #define DEF_ENTRY_C(name) \ |
| 456 Add(Builtins::c_function_address(Builtins::c_##name), \ | 456 Add(Builtins::c_function_address(Builtins::c_##name), \ |
| 457 C_BUILTIN, \ | 457 C_BUILTIN, \ |
| 458 Builtins::c_##name, \ | 458 Builtins::c_##name, \ |
| 459 "Builtins::" #name); | 459 "Builtins::" #name); |
| 460 | 460 |
| 461 BUILTIN_LIST_C(DEF_ENTRY_C) | 461 BUILTIN_LIST_C(DEF_ENTRY_C) |
| 462 #undef DEF_ENTRY_C | 462 #undef DEF_ENTRY_C |
| 463 | 463 |
| 464 #define DEF_ENTRY_C(name, ignore) \ | 464 #define DEF_ENTRY_C(name) \ |
| 465 Add(Builtins::builtin_address(Builtins::name), \ | 465 Add(Builtins::builtin_address(Builtins::name), \ |
| 466 BUILTIN, \ | 466 BUILTIN, \ |
| 467 Builtins::name, \ | 467 Builtins::name, \ |
| 468 "Builtins::" #name); | 468 "Builtins::" #name); |
| 469 #define DEF_ENTRY_A(name, kind, state) DEF_ENTRY_C(name, _) | 469 #define DEF_ENTRY_A(name, kind, state) DEF_ENTRY_C(name) |
| 470 | 470 |
| 471 BUILTIN_LIST_C(DEF_ENTRY_C) | 471 BUILTIN_LIST_C(DEF_ENTRY_C) |
| 472 BUILTIN_LIST_A(DEF_ENTRY_A) | 472 BUILTIN_LIST_A(DEF_ENTRY_A) |
| 473 #undef DEF_ENTRY_C | 473 #undef DEF_ENTRY_C |
| 474 #undef DEF_ENTRY_A | 474 #undef DEF_ENTRY_A |
| 475 | 475 |
| 476 // Runtime functions | 476 // Runtime functions |
| 477 #define RUNTIME_ENTRY(name, nargs) \ | 477 #define RUNTIME_ENTRY(name, nargs) \ |
| 478 Add(Runtime::FunctionForId(Runtime::k##name)->entry, \ | 478 Add(Runtime::FunctionForId(Runtime::k##name)->entry, \ |
| 479 RUNTIME_FUNCTION, \ | 479 RUNTIME_FUNCTION, \ |
| (...skipping 1051 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1531 ASSERT(index < large_objects_.length()); | 1531 ASSERT(index < large_objects_.length()); |
| 1532 } | 1532 } |
| 1533 return large_objects_[index]; // s.page_offset() is ignored. | 1533 return large_objects_[index]; // s.page_offset() is ignored. |
| 1534 } | 1534 } |
| 1535 UNREACHABLE(); | 1535 UNREACHABLE(); |
| 1536 return NULL; | 1536 return NULL; |
| 1537 } | 1537 } |
| 1538 | 1538 |
| 1539 | 1539 |
| 1540 } } // namespace v8::internal | 1540 } } // namespace v8::internal |
| OLD | NEW |