| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 2979 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2990 __ LoadHeapObject(scratch0(), instr->hydrogen()->pairs()); | 2990 __ LoadHeapObject(scratch0(), instr->hydrogen()->pairs()); |
| 2991 __ li(scratch1(), Operand(Smi::FromInt(instr->hydrogen()->flags()))); | 2991 __ li(scratch1(), Operand(Smi::FromInt(instr->hydrogen()->flags()))); |
| 2992 // The context is the first argument. | 2992 // The context is the first argument. |
| 2993 __ Push(cp, scratch0(), scratch1()); | 2993 __ Push(cp, scratch0(), scratch1()); |
| 2994 CallRuntime(Runtime::kDeclareGlobals, 3, instr); | 2994 CallRuntime(Runtime::kDeclareGlobals, 3, instr); |
| 2995 } | 2995 } |
| 2996 | 2996 |
| 2997 | 2997 |
| 2998 void LCodeGen::DoGlobalObject(LGlobalObject* instr) { | 2998 void LCodeGen::DoGlobalObject(LGlobalObject* instr) { |
| 2999 Register result = ToRegister(instr->result()); | 2999 Register result = ToRegister(instr->result()); |
| 3000 __ lw(result, ContextOperand(cp, Context::GLOBAL_INDEX)); | 3000 __ lw(result, ContextOperand(cp, Context::GLOBAL_OBJECT_INDEX)); |
| 3001 } | 3001 } |
| 3002 | 3002 |
| 3003 | 3003 |
| 3004 void LCodeGen::DoGlobalReceiver(LGlobalReceiver* instr) { | 3004 void LCodeGen::DoGlobalReceiver(LGlobalReceiver* instr) { |
| 3005 Register global = ToRegister(instr->global()); | 3005 Register global = ToRegister(instr->global()); |
| 3006 Register result = ToRegister(instr->result()); | 3006 Register result = ToRegister(instr->result()); |
| 3007 __ lw(result, FieldMemOperand(global, GlobalObject::kGlobalReceiverOffset)); | 3007 __ lw(result, FieldMemOperand(global, GlobalObject::kGlobalReceiverOffset)); |
| 3008 } | 3008 } |
| 3009 | 3009 |
| 3010 | 3010 |
| (...skipping 2319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5330 __ Subu(scratch, result, scratch); | 5330 __ Subu(scratch, result, scratch); |
| 5331 __ lw(result, FieldMemOperand(scratch, | 5331 __ lw(result, FieldMemOperand(scratch, |
| 5332 FixedArray::kHeaderSize - kPointerSize)); | 5332 FixedArray::kHeaderSize - kPointerSize)); |
| 5333 __ bind(&done); | 5333 __ bind(&done); |
| 5334 } | 5334 } |
| 5335 | 5335 |
| 5336 | 5336 |
| 5337 #undef __ | 5337 #undef __ |
| 5338 | 5338 |
| 5339 } } // namespace v8::internal | 5339 } } // namespace v8::internal |
| OLD | NEW |