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

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

Issue 354024: Emitting the common return sequence in the top-level compiler in one function... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 1 month 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/arm/fast-codegen-arm.cc ('k') | src/ia32/fast-codegen-ia32.cc » ('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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 void DropAndMove(Expression::Context destination, Register source); 66 void DropAndMove(Expression::Context destination, Register source);
67 67
68 // Test the JavaScript value in source as if in a test context, compile 68 // Test the JavaScript value in source as if in a test context, compile
69 // control flow to a pair of labels. 69 // control flow to a pair of labels.
70 void TestAndBranch(Register source, Label* true_label, Label* false_label); 70 void TestAndBranch(Register source, Label* true_label, Label* false_label);
71 71
72 void VisitDeclarations(ZoneList<Declaration*>* declarations); 72 void VisitDeclarations(ZoneList<Declaration*>* declarations);
73 Handle<JSFunction> BuildBoilerplate(FunctionLiteral* fun); 73 Handle<JSFunction> BuildBoilerplate(FunctionLiteral* fun);
74 void DeclareGlobals(Handle<FixedArray> pairs); 74 void DeclareGlobals(Handle<FixedArray> pairs);
75 75
76 // Platform-specific return sequence
77 void EmitReturnSequence(int position);
78
79 // Platform-specific code sequences for calls
76 void EmitCallWithStub(Call* expr); 80 void EmitCallWithStub(Call* expr);
77 void EmitCallWithIC(Call* expr, RelocInfo::Mode reloc_info); 81 void EmitCallWithIC(Call* expr, RelocInfo::Mode reloc_info);
78 82
79 // Platform-specific support for compiling assignments. 83 // Platform-specific support for compiling assignments.
80 84
81 // Complete a variable assignment. The right-hand-side value is expected 85 // Complete a variable assignment. The right-hand-side value is expected
82 // on top of the stack. 86 // on top of the stack.
83 void EmitVariableAssignment(Assignment* expr); 87 void EmitVariableAssignment(Assignment* expr);
84 88
85 // Complete a named property assignment. The receiver and right-hand-side 89 // Complete a named property assignment. The receiver and right-hand-side
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 Label* true_label_; 124 Label* true_label_;
121 Label* false_label_; 125 Label* false_label_;
122 126
123 DISALLOW_COPY_AND_ASSIGN(FastCodeGenerator); 127 DISALLOW_COPY_AND_ASSIGN(FastCodeGenerator);
124 }; 128 };
125 129
126 130
127 } } // namespace v8::internal 131 } } // namespace v8::internal
128 132
129 #endif // V8_FAST_CODEGEN_H_ 133 #endif // V8_FAST_CODEGEN_H_
OLDNEW
« no previous file with comments | « src/arm/fast-codegen-arm.cc ('k') | src/ia32/fast-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698