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

Side by Side Diff: src/ia32/codegen-ia32.h

Issue 3311002: Remove CodeGenerator::PatchInlineRuntimeEntry and replace its single use in t... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 3 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/codegen.cc ('k') | src/mips/codegen-mips.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 614 matching lines...) Expand 10 before | Expand all | Expand 10 after
625 void CheckStack(); 625 void CheckStack();
626 626
627 struct InlineRuntimeLUT { 627 struct InlineRuntimeLUT {
628 void (CodeGenerator::*method)(ZoneList<Expression*>*); 628 void (CodeGenerator::*method)(ZoneList<Expression*>*);
629 const char* name; 629 const char* name;
630 int nargs; 630 int nargs;
631 }; 631 };
632 632
633 static InlineRuntimeLUT* FindInlineRuntimeLUT(Handle<String> name); 633 static InlineRuntimeLUT* FindInlineRuntimeLUT(Handle<String> name);
634 bool CheckForInlineRuntimeCall(CallRuntime* node); 634 bool CheckForInlineRuntimeCall(CallRuntime* node);
635 static bool PatchInlineRuntimeEntry(Handle<String> name,
636 const InlineRuntimeLUT& new_entry,
637 InlineRuntimeLUT* old_entry);
638 635
639 void ProcessDeclarations(ZoneList<Declaration*>* declarations); 636 void ProcessDeclarations(ZoneList<Declaration*>* declarations);
640 637
641 static Handle<Code> ComputeCallInitialize(int argc, InLoopFlag in_loop); 638 static Handle<Code> ComputeCallInitialize(int argc, InLoopFlag in_loop);
642 639
643 static Handle<Code> ComputeKeyedCallInitialize(int argc, InLoopFlag in_loop); 640 static Handle<Code> ComputeKeyedCallInitialize(int argc, InLoopFlag in_loop);
644 641
645 // Declare global variables and functions in the given array of 642 // Declare global variables and functions in the given array of
646 // name/value pairs. 643 // name/value pairs.
647 void DeclareGlobals(Handle<FixedArray> pairs); 644 void DeclareGlobals(Handle<FixedArray> pairs);
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
807 804
808 friend class CodeGeneratorPatcher; // Used in test-log-stack-tracer.cc 805 friend class CodeGeneratorPatcher; // Used in test-log-stack-tracer.cc
809 806
810 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); 807 DISALLOW_COPY_AND_ASSIGN(CodeGenerator);
811 }; 808 };
812 809
813 810
814 } } // namespace v8::internal 811 } } // namespace v8::internal
815 812
816 #endif // V8_IA32_CODEGEN_IA32_H_ 813 #endif // V8_IA32_CODEGEN_IA32_H_
OLDNEW
« no previous file with comments | « src/codegen.cc ('k') | src/mips/codegen-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698