| 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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 665 | 669 |
| 666 friend class NestedStatement; | 670 friend class NestedStatement; |
| 667 | 671 |
| 668 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); | 672 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); |
| 669 }; | 673 }; |
| 670 | 674 |
| 671 | 675 |
| 672 } } // namespace v8::internal | 676 } } // namespace v8::internal |
| 673 | 677 |
| 674 #endif // V8_FULL_CODEGEN_H_ | 678 #endif // V8_FULL_CODEGEN_H_ |
| OLD | NEW |