| 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 581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 592 int smi_lexicographic_compare_x_elms_[10]; | 592 int smi_lexicographic_compare_x_elms_[10]; |
| 593 int smi_lexicographic_compare_y_elms_[10]; | 593 int smi_lexicographic_compare_y_elms_[10]; |
| 594 | 594 |
| 595 friend class Isolate; | 595 friend class Isolate; |
| 596 friend class Runtime; | 596 friend class Runtime; |
| 597 | 597 |
| 598 DISALLOW_COPY_AND_ASSIGN(RuntimeState); | 598 DISALLOW_COPY_AND_ASSIGN(RuntimeState); |
| 599 }; | 599 }; |
| 600 | 600 |
| 601 | 601 |
| 602 class InlineRuntimeFunctionsTable { | |
| 603 public: | |
| 604 enum { | |
| 605 #define LUT_ENTRY(name, argc, resize) __##name, | |
| 606 INLINE_RUNTIME_FUNCTION_LIST(LUT_ENTRY) | |
| 607 kInlineRuntimeFunctionsTableSize | |
| 608 #undef LUT_ENTRY | |
| 609 }; | |
| 610 | |
| 611 struct Entry { | |
| 612 void (CodeGenerator::*method)(ZoneList<Expression*>*); | |
| 613 const char* name; | |
| 614 int nargs; | |
| 615 }; | |
| 616 | |
| 617 Entry* entries() { return entries_; } | |
| 618 | |
| 619 private: | |
| 620 InlineRuntimeFunctionsTable(); | |
| 621 | |
| 622 Entry entries_[kInlineRuntimeFunctionsTableSize]; | |
| 623 | |
| 624 friend class Isolate; | |
| 625 | |
| 626 DISALLOW_COPY_AND_ASSIGN(InlineRuntimeFunctionsTable); | |
| 627 }; | |
| 628 | |
| 629 | |
| 630 } } // namespace v8::internal | 602 } } // namespace v8::internal |
| 631 | 603 |
| 632 #endif // V8_RUNTIME_H_ | 604 #endif // V8_RUNTIME_H_ |
| OLD | NEW |