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

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

Issue 6052004: Merge bleeding edge r6035 to 2.5 branch. Fix for push of random value... (Closed) Base URL: http://v8.googlecode.com/svn/branches/2.5/
Patch Set: Created 9 years, 12 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/arm/full-codegen-arm.cc ('k') | src/full-codegen.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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 kLeftConstant, 234 kLeftConstant,
235 kRightConstant 235 kRightConstant
236 }; 236 };
237 237
238 // Type of a member function that generates inline code for a native function. 238 // Type of a member function that generates inline code for a native function.
239 typedef void (FullCodeGenerator::*InlineFunctionGenerator) 239 typedef void (FullCodeGenerator::*InlineFunctionGenerator)
240 (ZoneList<Expression*>*); 240 (ZoneList<Expression*>*);
241 241
242 static const InlineFunctionGenerator kInlineFunctionGenerators[]; 242 static const InlineFunctionGenerator kInlineFunctionGenerators[];
243 243
244 // A platform-specific utility to overwrite the accumulator register
245 // with a GC-safe value.
246 void ClearAccumulator();
247
244 // Compute the frame pointer relative offset for a given local or 248 // Compute the frame pointer relative offset for a given local or
245 // parameter slot. 249 // parameter slot.
246 int SlotOffset(Slot* slot); 250 int SlotOffset(Slot* slot);
247 251
248 // Determine whether or not to inline the smi case for the given 252 // Determine whether or not to inline the smi case for the given
249 // operation. 253 // operation.
250 bool ShouldInlineSmiCase(Token::Value op); 254 bool ShouldInlineSmiCase(Token::Value op);
251 255
252 // Compute which (if any) of the operands is a compile-time constant. 256 // Compute which (if any) of the operands is a compile-time constant.
253 ConstantOperand GetConstantOperand(Token::Value op, 257 ConstantOperand GetConstantOperand(Token::Value op,
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
664 668
665 friend class NestedStatement; 669 friend class NestedStatement;
666 670
667 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); 671 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator);
668 }; 672 };
669 673
670 674
671 } } // namespace v8::internal 675 } } // namespace v8::internal
672 676
673 #endif // V8_FULL_CODEGEN_H_ 677 #endif // V8_FULL_CODEGEN_H_
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/full-codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698