OLD | NEW |
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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 kLeftConstant, | 279 kLeftConstant, |
280 kRightConstant | 280 kRightConstant |
281 }; | 281 }; |
282 | 282 |
283 // Type of a member function that generates inline code for a native function. | 283 // Type of a member function that generates inline code for a native function. |
284 typedef void (FullCodeGenerator::*InlineFunctionGenerator) | 284 typedef void (FullCodeGenerator::*InlineFunctionGenerator) |
285 (ZoneList<Expression*>*); | 285 (ZoneList<Expression*>*); |
286 | 286 |
287 static const InlineFunctionGenerator kInlineFunctionGenerators[]; | 287 static const InlineFunctionGenerator kInlineFunctionGenerators[]; |
288 | 288 |
| 289 // A platform-specific utility to overwrite the accumulator register |
| 290 // with a GC-safe value. |
| 291 void ClearAccumulator(); |
| 292 |
289 // Compute the frame pointer relative offset for a given local or | 293 // Compute the frame pointer relative offset for a given local or |
290 // parameter slot. | 294 // parameter slot. |
291 int SlotOffset(Slot* slot); | 295 int SlotOffset(Slot* slot); |
292 | 296 |
293 // Determine whether or not to inline the smi case for the given | 297 // Determine whether or not to inline the smi case for the given |
294 // operation. | 298 // operation. |
295 bool ShouldInlineSmiCase(Token::Value op); | 299 bool ShouldInlineSmiCase(Token::Value op); |
296 | 300 |
297 // Compute which (if any) of the operands is a compile-time constant. | 301 // Compute which (if any) of the operands is a compile-time constant. |
298 ConstantOperand GetConstantOperand(Token::Value op, | 302 ConstantOperand GetConstantOperand(Token::Value op, |
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
763 | 767 |
764 friend class NestedStatement; | 768 friend class NestedStatement; |
765 | 769 |
766 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); | 770 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); |
767 }; | 771 }; |
768 | 772 |
769 | 773 |
770 } } // namespace v8::internal | 774 } } // namespace v8::internal |
771 | 775 |
772 #endif // V8_FULL_CODEGEN_H_ | 776 #endif // V8_FULL_CODEGEN_H_ |
OLD | NEW |