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

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

Issue 2815003: ARM: Change code generation for function return... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 6 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 | « no previous file | src/arm/codegen-arm.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 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 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 void VisitStatements(ZoneList<Statement*>* statements); 308 void VisitStatements(ZoneList<Statement*>* statements);
309 309
310 #define DEF_VISIT(type) \ 310 #define DEF_VISIT(type) \
311 void Visit##type(type* node); 311 void Visit##type(type* node);
312 AST_NODE_LIST(DEF_VISIT) 312 AST_NODE_LIST(DEF_VISIT)
313 #undef DEF_VISIT 313 #undef DEF_VISIT
314 314
315 // Main code generation function 315 // Main code generation function
316 void Generate(CompilationInfo* info); 316 void Generate(CompilationInfo* info);
317 317
318 // Generate the return sequence code. Should be called no more than
319 // once per compiled function, immediately after binding the return
320 // target (which can not be done more than once). The return value should
321 // be in r0.
322 void GenerateReturnSequence();
323
318 // Returns the arguments allocation mode. 324 // Returns the arguments allocation mode.
319 ArgumentsAllocationMode ArgumentsMode(); 325 ArgumentsAllocationMode ArgumentsMode();
320 326
321 // Store the arguments object and allocate it if necessary. 327 // Store the arguments object and allocate it if necessary.
322 void StoreArgumentsObject(bool initial); 328 void StoreArgumentsObject(bool initial);
323 329
324 // The following are used by class Reference. 330 // The following are used by class Reference.
325 void LoadReference(Reference* ref); 331 void LoadReference(Reference* ref);
326 void UnloadReference(Reference* ref); 332 void UnloadReference(Reference* ref);
327 333
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after
963 return ObjectBits::encode(object_.code()) | 969 return ObjectBits::encode(object_.code()) |
964 OffsetBits::encode(offset_.code()) | 970 OffsetBits::encode(offset_.code()) |
965 ScratchBits::encode(scratch_.code()); 971 ScratchBits::encode(scratch_.code());
966 } 972 }
967 }; 973 };
968 974
969 975
970 } } // namespace v8::internal 976 } } // namespace v8::internal
971 977
972 #endif // V8_ARM_CODEGEN_ARM_H_ 978 #endif // V8_ARM_CODEGEN_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698