| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved.7 | 1 // Copyright 2012 the V8 project authors. All rights reserved.7 |
| 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 3111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3122 DCHECK(result.is(cp)); | 3122 DCHECK(result.is(cp)); |
| 3123 } | 3123 } |
| 3124 } | 3124 } |
| 3125 | 3125 |
| 3126 | 3126 |
| 3127 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) { | 3127 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) { |
| 3128 DCHECK(ToRegister(instr->context()).is(cp)); | 3128 DCHECK(ToRegister(instr->context()).is(cp)); |
| 3129 __ li(scratch0(), instr->hydrogen()->pairs()); | 3129 __ li(scratch0(), instr->hydrogen()->pairs()); |
| 3130 __ li(scratch1(), Operand(Smi::FromInt(instr->hydrogen()->flags()))); | 3130 __ li(scratch1(), Operand(Smi::FromInt(instr->hydrogen()->flags()))); |
| 3131 __ Push(scratch0(), scratch1()); | 3131 __ Push(scratch0(), scratch1()); |
| 3132 __ li(scratch0(), instr->hydrogen()->feedback_vector()); |
| 3133 __ Push(scratch0()); |
| 3132 CallRuntime(Runtime::kDeclareGlobals, instr); | 3134 CallRuntime(Runtime::kDeclareGlobals, instr); |
| 3133 } | 3135 } |
| 3134 | 3136 |
| 3135 void LCodeGen::CallKnownFunction(Handle<JSFunction> function, | 3137 void LCodeGen::CallKnownFunction(Handle<JSFunction> function, |
| 3136 int formal_parameter_count, int arity, | 3138 int formal_parameter_count, int arity, |
| 3137 bool is_tail_call, LInstruction* instr) { | 3139 bool is_tail_call, LInstruction* instr) { |
| 3138 bool dont_adapt_arguments = | 3140 bool dont_adapt_arguments = |
| 3139 formal_parameter_count == SharedFunctionInfo::kDontAdaptArgumentsSentinel; | 3141 formal_parameter_count == SharedFunctionInfo::kDontAdaptArgumentsSentinel; |
| 3140 bool can_invoke_directly = | 3142 bool can_invoke_directly = |
| 3141 dont_adapt_arguments || formal_parameter_count == arity; | 3143 dont_adapt_arguments || formal_parameter_count == arity; |
| (...skipping 2399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5541 __ lw(result, FieldMemOperand(scratch, | 5543 __ lw(result, FieldMemOperand(scratch, |
| 5542 FixedArray::kHeaderSize - kPointerSize)); | 5544 FixedArray::kHeaderSize - kPointerSize)); |
| 5543 __ bind(deferred->exit()); | 5545 __ bind(deferred->exit()); |
| 5544 __ bind(&done); | 5546 __ bind(&done); |
| 5545 } | 5547 } |
| 5546 | 5548 |
| 5547 #undef __ | 5549 #undef __ |
| 5548 | 5550 |
| 5549 } // namespace internal | 5551 } // namespace internal |
| 5550 } // namespace v8 | 5552 } // namespace v8 |
| OLD | NEW |