| OLD | NEW | 
|   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 17 matching lines...) Expand all  Loading... | 
|  28  |  28  | 
|  29 #ifndef V8_ARM_CODEGEN_ARM_INL_H_ |  29 #ifndef V8_ARM_CODEGEN_ARM_INL_H_ | 
|  30 #define V8_ARM_CODEGEN_ARM_INL_H_ |  30 #define V8_ARM_CODEGEN_ARM_INL_H_ | 
|  31  |  31  | 
|  32 namespace v8 { |  32 namespace v8 { | 
|  33 namespace internal { |  33 namespace internal { | 
|  34  |  34  | 
|  35 #define __ ACCESS_MASM(masm_) |  35 #define __ ACCESS_MASM(masm_) | 
|  36  |  36  | 
|  37 void CodeGenerator::LoadConditionAndSpill(Expression* expression, |  37 void CodeGenerator::LoadConditionAndSpill(Expression* expression, | 
|  38                                           TypeofState typeof_state, |  | 
|  39                                           JumpTarget* true_target, |  38                                           JumpTarget* true_target, | 
|  40                                           JumpTarget* false_target, |  39                                           JumpTarget* false_target, | 
|  41                                           bool force_control) { |  40                                           bool force_control) { | 
|  42   LoadCondition(expression, typeof_state, true_target, false_target, |  41   LoadCondition(expression, true_target, false_target, force_control); | 
|  43                 force_control); |  | 
|  44 } |  42 } | 
|  45  |  43  | 
|  46  |  44  | 
|  47 void CodeGenerator::LoadAndSpill(Expression* expression, |  45 void CodeGenerator::LoadAndSpill(Expression* expression) { | 
|  48                                  TypeofState typeof_state) { |  46   Load(expression); | 
|  49   Load(expression, typeof_state); |  | 
|  50 } |  47 } | 
|  51  |  48  | 
|  52  |  49  | 
|  53 void CodeGenerator::VisitAndSpill(Statement* statement) { |  50 void CodeGenerator::VisitAndSpill(Statement* statement) { | 
|  54   Visit(statement); |  51   Visit(statement); | 
|  55 } |  52 } | 
|  56  |  53  | 
|  57  |  54  | 
|  58 void CodeGenerator::VisitStatementsAndSpill(ZoneList<Statement*>* statements) { |  55 void CodeGenerator::VisitStatementsAndSpill(ZoneList<Statement*>* statements) { | 
|  59   VisitStatements(statements); |  56   VisitStatements(statements); | 
|  60 } |  57 } | 
|  61  |  58  | 
|  62  |  59  | 
|  63 void Reference::GetValueAndSpill(TypeofState typeof_state) { |  60 void Reference::GetValueAndSpill() { | 
|  64   GetValue(typeof_state); |  61   GetValue(); | 
|  65 } |  62 } | 
|  66  |  63  | 
|  67  |  64  | 
|  68 // Platform-specific inline functions. |  65 // Platform-specific inline functions. | 
|  69  |  66  | 
|  70 void DeferredCode::Jump() { __ jmp(&entry_label_); } |  67 void DeferredCode::Jump() { __ jmp(&entry_label_); } | 
|  71 void DeferredCode::Branch(Condition cc) { __ b(cc, &entry_label_); } |  68 void DeferredCode::Branch(Condition cc) { __ b(cc, &entry_label_); } | 
|  72  |  69  | 
|  73 void CodeGenerator::GenerateMathSin(ZoneList<Expression*>* args) { |  70 void CodeGenerator::GenerateMathSin(ZoneList<Expression*>* args) { | 
|  74   GenerateFastMathOp(SIN, args); |  71   GenerateFastMathOp(SIN, args); | 
|  75 } |  72 } | 
|  76  |  73  | 
|  77  |  74  | 
|  78 void CodeGenerator::GenerateMathCos(ZoneList<Expression*>* args) { |  75 void CodeGenerator::GenerateMathCos(ZoneList<Expression*>* args) { | 
|  79   GenerateFastMathOp(COS, args); |  76   GenerateFastMathOp(COS, args); | 
|  80 } |  77 } | 
|  81  |  78  | 
|  82  |  79  | 
|  83 #undef __ |  80 #undef __ | 
|  84  |  81  | 
|  85 } }  // namespace v8::internal |  82 } }  // namespace v8::internal | 
|  86  |  83  | 
|  87 #endif  // V8_ARM_CODEGEN_ARM_INL_H_ |  84 #endif  // V8_ARM_CODEGEN_ARM_INL_H_ | 
| OLD | NEW |