Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(162)

Side by Side Diff: src/runtime.h

Issue 2808030: [Isolates] Move InlineRuntimeFunctionTable from runtime.h to codegen.h.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/isolate.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « src/isolate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698