| 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 3224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3235 __ LoadHeapObject(scratch0(), instr->hydrogen()->pairs()); | 3235 __ LoadHeapObject(scratch0(), instr->hydrogen()->pairs()); |
| 3236 __ push(scratch0()); | 3236 __ push(scratch0()); |
| 3237 __ mov(scratch0(), Operand(Smi::FromInt(instr->hydrogen()->flags()))); | 3237 __ mov(scratch0(), Operand(Smi::FromInt(instr->hydrogen()->flags()))); |
| 3238 __ push(scratch0()); | 3238 __ push(scratch0()); |
| 3239 CallRuntime(Runtime::kDeclareGlobals, 3, instr); | 3239 CallRuntime(Runtime::kDeclareGlobals, 3, instr); |
| 3240 } | 3240 } |
| 3241 | 3241 |
| 3242 | 3242 |
| 3243 void LCodeGen::DoGlobalObject(LGlobalObject* instr) { | 3243 void LCodeGen::DoGlobalObject(LGlobalObject* instr) { |
| 3244 Register result = ToRegister(instr->result()); | 3244 Register result = ToRegister(instr->result()); |
| 3245 __ ldr(result, ContextOperand(cp, Context::GLOBAL_INDEX)); | 3245 __ ldr(result, ContextOperand(cp, Context::GLOBAL_OBJECT_INDEX)); |
| 3246 } | 3246 } |
| 3247 | 3247 |
| 3248 | 3248 |
| 3249 void LCodeGen::DoGlobalReceiver(LGlobalReceiver* instr) { | 3249 void LCodeGen::DoGlobalReceiver(LGlobalReceiver* instr) { |
| 3250 Register global = ToRegister(instr->global()); | 3250 Register global = ToRegister(instr->global()); |
| 3251 Register result = ToRegister(instr->result()); | 3251 Register result = ToRegister(instr->result()); |
| 3252 __ ldr(result, FieldMemOperand(global, GlobalObject::kGlobalReceiverOffset)); | 3252 __ ldr(result, FieldMemOperand(global, GlobalObject::kGlobalReceiverOffset)); |
| 3253 } | 3253 } |
| 3254 | 3254 |
| 3255 | 3255 |
| (...skipping 2273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5529 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); | 5529 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); |
| 5530 __ ldr(result, FieldMemOperand(scratch, | 5530 __ ldr(result, FieldMemOperand(scratch, |
| 5531 FixedArray::kHeaderSize - kPointerSize)); | 5531 FixedArray::kHeaderSize - kPointerSize)); |
| 5532 __ bind(&done); | 5532 __ bind(&done); |
| 5533 } | 5533 } |
| 5534 | 5534 |
| 5535 | 5535 |
| 5536 #undef __ | 5536 #undef __ |
| 5537 | 5537 |
| 5538 } } // namespace v8::internal | 5538 } } // namespace v8::internal |
| OLD | NEW |